From: Eli Carter <eli.carter@inet.com>
To: linux-kernel@vger.kernel.org
Subject: generic sleeping locks?
Date: Mon, 18 Dec 2000 16:54:43 -0600 [thread overview]
Message-ID: <3A3E95B3.19E51EEE@inet.com> (raw)
Allow me to display my ignorance a moment.
Are there blocking lock primitives already defined somewhere in the
kernel?
It just seems that
while( lockvar )
sleep_on( &lockwaitq );
along with its various permutations would be commonly used and worthy of
being made into a generic sleep lock. A few blind greps through the
source didn't find anything that caught my eye.
If there aren't, would a patch to add them be of interest to anyone?
Input on design details welcome.
TIA,
Eli
--------------------. "To the systems programmer, users and applications
Eli Carter | serve only to provide a test load."
eli.carter@inet.com `---------------------------------- (random fortune)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2000-12-18 23:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-18 22:54 Eli Carter [this message]
2000-12-18 23:01 ` generic sleeping locks? Alan Cox
2000-12-18 23:08 ` Eli Carter
2000-12-19 0:06 ` Rusty Russell
2000-12-19 15:19 ` Eli Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A3E95B3.19E51EEE@inet.com \
--to=eli.carter@inet.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.