summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-11-16 01:02:00 +0000
committerpjd <pjd@FreeBSD.org>2006-11-16 01:02:00 +0000
commit63d82b700dad091f36b4fdf7ac55bfe272a625ba (patch)
treefefa626382a1e038e96529f97a2dd9ce533319d8 /share
parentb33232cde3fde704b882dff91db2b12776b4b38f (diff)
downloadFreeBSD-src-63d82b700dad091f36b4fdf7ac55bfe272a625ba.zip
FreeBSD-src-63d82b700dad091f36b4fdf7ac55bfe272a625ba.tar.gz
Change sleepq_add(9) argument from 'struct mtx *' to 'struct lock_object *',
which allows to use it with different kinds of locks. For example it allows to implement Solaris conditions variables which will be used in ZFS port on top of sx(9) locks. Reviewed by: jhb
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/sleepqueue.96
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/sleepqueue.9 b/share/man/man9/sleepqueue.9
index 5d28b66..2432d59 100644
--- a/share/man/man9/sleepqueue.9
+++ b/share/man/man9/sleepqueue.9
@@ -54,7 +54,7 @@
.Ft void
.Fn sleepq_abort "struct thread *td"
.Ft void
-.Fn sleepq_add "void *wchan" "struct mtx *lock" "const char *wmesg" "int flags"
+.Fn sleepq_add "void *wchan" "struct lock_object *lock" "const char *wmesg" "int flags"
.Ft struct sleepqueue *
.Fn sleepq_alloc "void"
.Ft void
@@ -157,12 +157,12 @@ The sleep queue chain associated with argument
must be locked by a prior call to
.Fn sleepq_lock
when this function is called.
-If a mutex is specified via the
+If a lock is specified via the
.Fa lock
argument, and if the kernel was compiled with
.Cd "options INVARIANTS" ,
then the sleep queue code will perform extra checks to ensure that
-the mutex is used by all threads sleeping on
+the lock is used by all threads sleeping on
.Fa wchan .
The
.Fa wmesg
OpenPOWER on IntegriCloud