mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
- Both <sys/sx.h> and <sys/mutex.h> depend on <sys/types.h> and
<sys/lock.h>. - <sys/sx.h> depends on <sys/mutex.h>.
This commit is contained in:
parent
a57fa8ae36
commit
ad84c9eb36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74932
|
@ -50,6 +50,8 @@
|
|||
.Nm mtx_assert
|
||||
.Nd kernel synchronization primitives
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <sys/lock.h>
|
||||
.Fd #include <sys/mutex.h>
|
||||
.Ft int
|
||||
.Fn mtx_init "struct mtx *mutex" "char *name" "int opts"
|
||||
|
|
|
@ -39,6 +39,9 @@
|
|||
.Nm sx_xunlock
|
||||
.Nd kernel shared/exclusive lock.
|
||||
.Sh SYNOPSIS
|
||||
.Fd #include <sys/types.h>
|
||||
.Fd #include <sys/lock.h>
|
||||
.Fd #include <sys/mutex.h>
|
||||
.Fd #include <sys/sx.h>
|
||||
.Ft void
|
||||
.Fn sx_init "struct sx *sx" "const char *description"
|
||||
|
|
Loading…
Reference in a new issue