From: Kallol Biswas <kallol@efi.com>
To: linux-kernel@vger.kernel.org
Subject: get into sleep and release the lock in an atomic operation
Date: 29 Sep 2003 17:17:23 -0700 [thread overview]
Message-ID: <1064881043.8221.21.camel@wskallol> (raw)
Consider the few lines of code:
spinlock()
if (num == 0) {
sleep and release the spinlock in an atomic operation.
}
In the OS like HP-UX there was a sleep lock concept, the
code would look like:
get_sleeplock()
if (num== 0) {
sleep and release the lock
}
Is there any primitive that implements this kind of spinlock and
sleep in linux? I could not find it.
I know it can be implemented.
Kallol
reply other threads:[~2003-09-30 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1064881043.8221.21.camel@wskallol \
--to=kallol@efi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®