diff options
author | Scott Long <scottl@FreeBSD.org> | 2002-04-12 05:05:19 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2002-04-12 05:05:19 +0000 |
commit | 6a00ed1536d2b83408794b1568fcbd5775558886 (patch) | |
tree | 1756058409c8ea95a8357065e41403af9c47e898 /share/man/man9/mutex.9 | |
parent | 44f9a04673213aeec30e07ba5508cdc8c3ba829e (diff) |
Document the lock type argument of mtx_init().
Notes
Notes:
svn path=/head/; revision=94478
Diffstat (limited to 'share/man/man9/mutex.9')
-rw-r--r-- | share/man/man9/mutex.9 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9 index b686c3fa014f..5003b9434078 100644 --- a/share/man/man9/mutex.9 +++ b/share/man/man9/mutex.9 @@ -56,7 +56,7 @@ .In sys/lock.h .In sys/mutex.h .Ft void -.Fn mtx_init "struct mtx *mutex" "const char *description" "int opts" +.Fn mtx_init "struct mtx *mutex" "const char *description" "const char *type" "int opts" .Ft void .Fn mtx_lock "struct mtx *mutex" .Ft void @@ -153,6 +153,10 @@ is saved rather than the data it points to. The data pointed to must remain stable until the mutex is destroyed. The +.Fa type +argument is the generic lock type for use with witness. If this argument is +NULL then the lock name is used as the lock type. +The .Fa opts argument is used to set the type of mutex. It may contain either |