Messages in this thread | | | From | laredo@gnu ... | Subject | Re: [linux-usb] Re: USB device allocation | Date | Fri, 8 Oct 1999 13:03:40 -0400 (EDT) |
| |
> > A much better interface for getting the information out to the daemon in > > one fell swoop would be something like /proc/devices (except we would > > want to list the minor and major mode devices). There would also need > > to be an interface where a user-mode daemon could be informed of > > changes; some kind of synthentic file which the daemon could select() or > > poll(), and read() from to find new devices. Surely this is better than > > forcing the daemon to periodically run readdir() over all of /devfs > > looking for new devices! > > My original post was meant to suggest that your proposed notification > method is not the right interface. There's a generic problem with the > UNIX fs design that there is no way to be notified when an inode > changes, and I think this problem could/should be fixed in a way that
Couldn't you define select() on a directory to exit when the directory is modified? Or is this behavior already defined? I seem to remember something in the back of my head about this working on one os or another.
-- Nathan Laredo laredo@gnu.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |