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

My idea is to read it in kernel space the same way like in user-space
with 'cat dev/ttyS01'.

But I dont know how.

Erik Mouw schrieb:
> -----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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - GPGrelay v0.959

iD8DBQFGSGZ1AAomYJ1taN8RArJjAJ9o1NWtyAwWav+9Zy+0HVEjc9EQjwCdFrtr
fWGvpXjktZA1F8n3XYUzG2k=
=/TP2
-----END PGP SIGNATURE-----
begin:vcard
fn:Lars K.W. Gohlke
n:Gohlke;Lars K.W.
email;internet:lkwg82@xxxxxx
x-mozilla-html:FALSE
version:2.1
end:vcard


[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