Re: Thread implementations...

Albert D. Cahalan (acahalan@cs.uml.edu)
Sun, 28 Jun 1998 03:27:28 -0400 (EDT)


Linus Torvalds writes:

> It _would_ perhaps be interesting to see if it is worthwhile to change the
> sendfile() interface to do the open-close inside sendfile, and pass
> sendfile a filename.

Evil thoughts:

Allow both, since it should to possible to tell them apart.
When cast to a pointer, file descriptors fall on the zero page.

If that isn't good enough (you want to allow millions of file descriptors)
then either the file descriptor or string can be negated. Then the file
descriptors match up with the kernel address space.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu