using select() on /proc filesystem entries

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

 



On Thu, Nov 22, 2007 at 04:24:33PM +0900, Alex White wrote:
> Hi,
> 
> (I hope this is a reasonable place to ask this question. I was going to  
> post to lkml, but it didn't seem quite appropriate)

Why not?  Or kernelnewbies, that would also work.

> I've written a kernel module that provides some custom I/O between an  
> external peripheral and a linux userspace application.
> 
> I've used the /proc interface to allow the application in userspace to  
> talk to the kernel module.

Ick, not /proc.  /proc is ONLY for process information, not driver
stuff, and never for I/O to userspace.  There are so many other ways to
properly to this (device nodes, sysfs, configfs, debugfs, custom
filesystem, etc.)

What specifically are you trying to do with your /proc files?

> I'm using the debian sarge 2.4 kernel.

2.4?  That's _very_ old.  Please try the 2.6 kernel tree.

thanks,

greg k-h


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux