On Fri, 9 Jun 2000, Sharad Joshi wrote:
> Hello folks,
> Can anyone please tell me how do i send chatacters over a serial line (say
> ttyS0). I want to make use of the serial driver (serial.c) functions. But
> the problem is, most of the functions are static. How do i interact with
> the driver. (uh.. the driver is built with the kernel). Never done any
> serious kernel hacking, but i think i'll need to generate some kind of
> software interrupt, isn't it?
> Any guiding link or pointer would be very helpful.
> Using slack 7, 2.2.13k here.
Depending on exactly what you are trying to do, you normaly treat
/dev/ttyS0 as a file, and use normal file I/O. You might want to take a
look at the serial programing HOWTO.
-- Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup.
- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to email@example.com
This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:40 EST