Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jul 2008 19:56:12 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Sergey Babkin <babkin@verizon.net>
Cc:        arch@FreeBSD.org, Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: Proposal: a revoke() system call 
Message-ID:  <59733.1215460572@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 07 Jul 2008 12:49:17 EST." <9820978.224231215452958017.JavaMail.root@vms227.mailsrvcs.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <9820978.224231215452958017.JavaMail.root@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59733.1215460572>