[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1110221223480.20346-100000@netrider.rowland.org>
Date: Sat, 22 Oct 2011 12:31:58 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: NeilBrown <neilb@...e.de>
cc: John Stultz <john.stultz@...aro.org>,
"Rafael J. Wysocki" <rjw@...k.pl>,
mark gross <markgross@...gnar.org>,
Linux PM list <linux-pm@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: lsusd - The Linux SUSpend Daemon
On Fri, 21 Oct 2011, Alan Stern wrote:
> > Maybe we could do something with futexes...
>
> Not easily -- as far as I can tell, futexes enjoy relatively little
> support. In any case, they provide the same service as a mutex, which
> means you'd have to build a shared lock on top of them.
It occurred to me that we could create a new type of special file, one
intended to help with interprocess synchronization. It would support
locking (shared or exclusive, blocking or non-blocking) and the poll
system call -- the file would appear to be ready for reading whenever a
shared lock wouldn't block and ready for writing whenever an exclusive
lock wouldn't block. Actual reads and writes wouldn't have to do
anything, although maybe someone could suggest a use for them.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists