Skip to contentSkip to conversation

Accessing serial port from kernel space

DISCUSSION Tcendrovskii Vladislav 2 participants 2 messages Dec 16, 2012

lore
Share & tools
lore
#0 lore raw

Hello!

I need to access serial port from my module. But I haven't found functions to access it. And as i understood, all work with serial port goes through TTY system.

So, if it exist some documentation on this system, and how can i use it from kernel space? In tty.txt i've found only line discipline, which is not, what i need.

#1 lore raw

Hi Tcendrovskii,

I found the following threads that might be useful for you

http://forum.kernelnewbies.org/read.php?12,213,224
http://stackoverflow.com/questions/5379720/accessing-a-serial-port-from-a-linux-kernel-module

This isn't something I've tried myself, but hopefully these help a little

Cheers,
Stephen

Quoted 11 lines · Tcendrovskii Vladislav

Hello!

I need to access serial port from my module. But I haven't found functions to access it. And as i understood, all work with serial port goes through TTY system.

So, if it exist some documentation on this system, and how can i use it from kernel space? In tty.txt i've found only line discipline, which is not, what i need.

Quoted 5 lines

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121217/df12e250/attachment.html