Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/sleep.9
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
.Nm wakeup_one , | .Nm wakeup_one , | ||||
.Nm wakeup_any | .Nm wakeup_any | ||||
.Nd wait for events | .Nd wait for events | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/systm.h | .In sys/systm.h | ||||
.In sys/proc.h | .In sys/proc.h | ||||
.Ft int | .Ft int | ||||
.Fn msleep "void *chan" "struct mtx *mtx" "int priority" "const char *wmesg" "int timo" | .Fn msleep "const void *chan" "struct mtx *mtx" "int priority" "const char *wmesg" "int timo" | ||||
.Ft int | .Ft int | ||||
.Fn msleep_sbt "void *chan" "struct mtx *mtx" "int priority" \ | .Fn msleep_sbt "const void *chan" "struct mtx *mtx" "int priority" \ | ||||
"const char *wmesg" "sbintime_t sbt" "sbintime_t pr" "int flags" | "const char *wmesg" "sbintime_t sbt" "sbintime_t pr" "int flags" | ||||
.Ft int | .Ft int | ||||
.Fn msleep_spin "void *chan" "struct mtx *mtx" "const char *wmesg" "int timo" | .Fn msleep_spin "const void *chan" "struct mtx *mtx" "const char *wmesg" "int timo" | ||||
.Ft int | .Ft int | ||||
.Fn msleep_spin_sbt "void *chan" "struct mtx *mtx" "const char *wmesg" \ | .Fn msleep_spin_sbt "const void *chan" "struct mtx *mtx" "const char *wmesg" \ | ||||
"sbintime_t sbt" "sbintime_t pr" "int flags" | "sbintime_t sbt" "sbintime_t pr" "int flags" | ||||
.Ft int | .Ft int | ||||
.Fn pause "const char *wmesg" "int timo" | .Fn pause "const char *wmesg" "int timo" | ||||
.Ft int | .Ft int | ||||
.Fn pause_sig "const char *wmesg" "int timo" | .Fn pause_sig "const char *wmesg" "int timo" | ||||
.Ft int | .Ft int | ||||
.Fn pause_sbt "const char *wmesg" "sbintime_t sbt" "sbintime_t pr" \ | .Fn pause_sbt "const char *wmesg" "sbintime_t sbt" "sbintime_t pr" \ | ||||
"int flags" | "int flags" | ||||
.Ft int | .Ft int | ||||
.Fn tsleep "void *chan" "int priority" "const char *wmesg" "int timo" | .Fn tsleep "const void *chan" "int priority" "const char *wmesg" "int timo" | ||||
.Ft int | .Ft int | ||||
.Fn tsleep_sbt "void *chan" "int priority" "const char *wmesg" \ | .Fn tsleep_sbt "const void *chan" "int priority" "const char *wmesg" \ | ||||
"sbintime_t sbt" "sbintime_t pr" "int flags" | "sbintime_t sbt" "sbintime_t pr" "int flags" | ||||
.Ft void | .Ft void | ||||
.Fn wakeup "void *chan" | .Fn wakeup "const void *chan" | ||||
.Ft void | .Ft void | ||||
.Fn wakeup_one "void *chan" | .Fn wakeup_one "const void *chan" | ||||
.Ft void | .Ft void | ||||
.Fn wakeup_any "void *chan" | .Fn wakeup_any "const void *chan" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The functions | The functions | ||||
.Fn tsleep , | .Fn tsleep , | ||||
.Fn msleep , | .Fn msleep , | ||||
.Fn msleep_spin , | .Fn msleep_spin , | ||||
.Fn pause , | .Fn pause , | ||||
.Fn pause_sig , | .Fn pause_sig , | ||||
.Fn pause_sbt , | .Fn pause_sbt , | ||||
▲ Show 20 Lines • Show All 339 Lines • Show Last 20 Lines |