1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Document the lock type argument of mtx_init().

This commit is contained in:
Scott Long 2002-04-12 05:05:19 +00:00
parent 44f9a04673
commit 6a00ed1536
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94478

View File

@ -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