From owner-freebsd-hackers Mon Nov 11 11:58:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B64337B401 for ; Mon, 11 Nov 2002 11:58:42 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id D22B143E4A for ; Mon, 11 Nov 2002 11:58:41 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 33767 invoked by uid 1000); 11 Nov 2002 19:58:42 -0000 Date: Mon, 11 Nov 2002 11:58:42 -0800 (PST) From: Nate Lawson To: the evil toor Cc: freebsd-hackers@freebsd.org Subject: Re: sio howto In-Reply-To: <20021111171109.P13478-100000@x12.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 11 Nov 2002, the evil toor wrote: > I just followed the recent sio thread, but it did not answer my questions. > I have a program that needs to set RTS and DTR and then later set them > again and again.. I could go for the open /dev/io and then the IO adr of > the serial port.. but as far as i've seen it would lock up the kernel, but > is there a good way to this? Don't access the port directly, use /usr/include/sys/ttycom.h, see TIOCSDTR -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message