Proposal: a revoke() system call
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jul 7 19:56:15 UTC 2008
In message <9820978.224231215452958017.JavaMail.root at vms227.mailsrvcs.net>, Ser
gey Babkin writes:
>Maybe make a new entry in devsw, requesting the driver to wake up
>all the sleepers (either coming from a particular file descriptor, or all
>the sleepers at all) and return EINTR for them.
We have that, it's called ->d_purge(), but the semantics are "driver
or hardware going away", not "get rid of this thread/fd".
As I said earlier, this requires careful thought.
If the only reason we are dicussing this, is that people find the
magic pipe to select ugly, then I would even argue that we have not
reached critical mass for even thinking.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list