From: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org
Cc: mingo@redhat.com
Subject: include/linux/mutex.h file is unclear about software interrupts and mutex_trylock
Date: Sat, 15 Sep 2007 02:04:13 -0700 (PDT) [thread overview]
Message-ID: <79726.86356.qm@web52004.mail.re2.yahoo.com> (raw)
From: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
include/linux/mutex.h file is unclear about software interrupts and the return value of mutex_trylock.
Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
---
--- linux-2.6.23-rc6/include/linux/mutex.h 2007-09-09 09:55:34.917468000 +0300
+++ linux-2.6.23/include/linux/mutex.h 2007-09-15 11:49:28.353291500 +0300
@@ -29,7 +29,8 @@
* - task may not exit with mutex held
* - memory areas where held locks reside must not be freed
* - held mutexes must not be reinitialized
- * - mutexes may not be used in irq contexts
+ * - mutexes may not be used in hardware or software interrupt
+ * contexts such as tasklets and timers
*
* These semantics are fully enforced when DEBUG_MUTEXES is
* enabled. Furthermore, besides enforcing the above rules, the mutex
@@ -133,6 +134,7 @@ extern int __must_check mutex_lock_inter
#endif
/*
+ * mutex_trylock returns nonzero on success or 0 on failure to lock.
* NOTE: mutex_trylock() follows the spin_trylock() convention,
* not the down_trylock() convention!
*/
Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever
reply other threads:[~2007-09-15 9:04 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=79726.86356.qm@web52004.mail.re2.yahoo.com \
--to=mattilinnanvuori@yahoo.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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
Powered by JetHome