Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2002 11:58:42 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        the evil toor <xride@x12.dk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sio howto
Message-ID:  <Pine.BSF.4.21.0211111155330.33702-100000@root.org>
In-Reply-To: <20021111171109.P13478-100000@x12.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211111155330.33702-100000>