can /proc files be poll()ed?

From: Mathias Waack (mathias@atoll-net.de)
Date: Tue Jun 20 2000 - 05:18:54 EST


Hi all,

I have a daemon process which does most of the work for
a device driver and beside this it works as a server for
some user programs. So most of its time the daemon sleeps
in a poll to some sockets. From time to time I want to
wake up the daemon from my driver to present it some
infos. My first idea was it to add a file in /proc
which can be read by the daemon. The daemon simply opens
this file and adds the fd to the list of sockets it
polls on. But the poll returns immediatly and the poll
method of the /proc-file gets never called. Is this
the right behaviour? If so, why have the proc-fs this
constraint?

Mathias

-
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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:19 EST