diff options
author | davidc <davidc@FreeBSD.org> | 2002-04-12 05:55:17 +0000 |
---|---|---|
committer | davidc <davidc@FreeBSD.org> | 2002-04-12 05:55:17 +0000 |
commit | 861f8487049d5c89c59e33befc00d17ef8dfe6b4 (patch) | |
tree | a6b537df3b5f544dd536de362c03c0b34852b1e5 /share/man/man9/mutex.9 | |
parent | 7f437a4ed46fb88114cdf1660f4aec3eb64dca4b (diff) | |
download | FreeBSD-src-861f8487049d5c89c59e33befc00d17ef8dfe6b4.zip FreeBSD-src-861f8487049d5c89c59e33befc00d17ef8dfe6b4.tar.gz |
Add text describing the new type parameter, and rename description
to name as that is what it is called in mutex.h.
Diffstat (limited to 'share/man/man9/mutex.9')
-rw-r--r-- | share/man/man9/mutex.9 | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9 index 5003b94..5674b0f 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" "const char *type" "int opts" +.Fn mtx_init "struct mtx *mutex" "const char *name" "const char *type" "int opts" .Ft void .Fn mtx_lock "struct mtx *mutex" .Ft void @@ -144,11 +144,22 @@ function must be used to initialize a mutex before it can be passed to .Fn mtx_lock . The -.Fa description -argument is used by the witness code -to classify a mutex when doing checks of lock ordering. -The pointer passed in as the -.Fa description +.Fa name +option is used to identify the lock in debugging output etc. +The +.Fa type +option is used by the witness code to classify a mutex when doing checks +of lock ordering. +If +.Fa type +is +.Dv NULL , +.Fa name +is used in its place. +The pointer passed in as +.Fa name +and +.Fa type is saved rather than the data it points to. The data pointed to must remain stable until the mutex is destroyed. |