Re: Serial Port access from kernel

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

 





On Wed, 26 Dec 2001, Chirag Kantharia wrote:

> On Tue, Dec 25, 2001 at 05:18:32PM +0100, Erik Mouw wrote:
> | > Morever, I don't have a filesystem in the kernel, and so I guess, this
> | > won't work. Is there any other way?
> | Sure, do it in userland. Opening and using a serial port smells like
> | policy, and policy should always be done in userland.
> 
> Thanx for the reply. But, is there a way to invoke userland process
> without a filesystem?
> 
Most OS's provide a filesystem interface to serial port. For eg.: LPT0/1
in dos. I found /dev/lp0 /dev/lp1 /dev/lp2 in my devices directory. They
might be a possible interface you need. Can someone confirm on this.

-Pradeep
-----------------------------------
Let us be the change, we wish to see in this world.
                        --- Mahatma Gandhi
-----------------------------------
Pradeep Jagannath
pradeep@it.iitb.ac.in
http://www.it.iitb.ac.in/~pradeep

-----------------------------------

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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