diff options
author | scottl <scottl@FreeBSD.org> | 2002-04-12 05:05:19 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-04-12 05:05:19 +0000 |
commit | 75c226393123e681c5dc62c176821aabb0aded39 (patch) | |
tree | 1756058409c8ea95a8357065e41403af9c47e898 /share/man/man9/mutex.9 | |
parent | 8fd9529d1e9db78e2404a66e5ae7abf20af234b8 (diff) | |
download | FreeBSD-src-75c226393123e681c5dc62c176821aabb0aded39.zip FreeBSD-src-75c226393123e681c5dc62c176821aabb0aded39.tar.gz |
Document the lock type argument of mtx_init().
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 b686c3fa..5003b94 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 |