Re: inerfacing with serial driver

From: Mikkel L. Ellertson (mikkel@Infinity-ltd.com)
Date: Fri Jun 09 2000 - 06:10:39 EST


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.
>
> TIA,
> Sharad.
>
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.

Mikkel

-- 
    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 majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:40 EST