diff options
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 |