[lkml]   [2007]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux
On Mon, Feb 19, 2007 at 06:56:20PM -0800, H. Peter Anvin wrote:

> It's not a precondition for a file descriptor, either. There are plenty
> of ioctl-only device drivers in existence.
> Furthermore, a file descriptor doesn't imply a device entry. Consider
> pipe(2), for example.
> As far as the kernel is concerned, a file handle is a nice, uniform
> system for providing communication between the kernel and user space.
> It doesn't matter if one can read() or write() on it; it's perfectly
> normal to support only a subset of the normal operations.

The problem is that sometimes you cannot have a filedescriptor at
all. Think about a PPS source connected with a CPU's GPIO pin. You
have no filedes to use and defining one just for a PPS source or for a
class of PPS sources, I think, is a non sense.

RFC simply doesn't consider the fact that you can have a PPS source
__without__ a filedes connected with, and a single filedes is
considered __always__ connected with a single PPS source.




GNU/Linux Solutions e-mail:
Linux Device Driver
Embedded Systems
UNIX programming phone: +39 349 2432127
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-02-21 13:07    [W:0.156 / U:6.396 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site