Re: how to read from serial device from within kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, May 14, 2007 at 12:36:06PM +0200, Lars K.W. Gohlke wrote:
> I would like to read data from /dev/ttyS0 from within kernel module,
> 
> but I have no clue where to start?

The clue is that you don't read files or devices from within the
kernel. See the FAQ in the wiki for reasons.

In the serial case you might need a line discipline, like ppp is.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGSF4w/PlVHJtIto0RAmrbAJ9D94AfHdnGzd/VxJQY4yjmeCVncgCgj9B2
0ClUQpQyAWWE8h9FMryUO9c=
=sdZp
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux