The
sysdecode_mask
functions are used to generate a text description of an integer value
built from a mask of bitfields.
The text description lists the C macros for field values joined by pipe
'|'
characters matching the format used in C source code.
Most of the values decoded by these functions are passed as arguments to
system calls,
though some of these values are used internally in the kernel.
Each function writes the text description to
fp.
The second argument should contain the integer value to be decoded.
The
rem
argument is set to the value of any bits that were not decoded
(bit fields that do not have a corresponding C macro).
rem
may be set to
NULL
if the caller does not need this value.
Each function returns
true
if any bit fields in the value were decoded and
false
if no bit fields were decoded.
Most of these functions decode an argument passed to a system call:
Other functions decode the values described below:
sysdecode_fcntl_fileflags()
|
|
The file flags used with the
F_GETFL
and
F_SETFL
fcntl(2)
commands.
|
sysdecode_sctp_nxt_flags()
|
|
The
nxt_flags
member of a
struct sctp_nxtinfo.
|
sysdecode_sctp_rcv_flags()
|
|
The
rcv_flags
member of a
struct sctp_rcvinfo.
|
sysdecode_sctp_snd_flags()
|
|
The
snd_flags
member of a
struct sctp_sndinfo.
|
sysdecode_umtx_cvwait_flags()
|
|
The
val
argument to
_umtx_op(2)
for
UMTX_OP_CV_WAIT
operations.
|
sysdecode_umtx_rwlock_flags()
|
|
The
val
argument to
_umtx_op(2)
for
UMTX_OP_RW_RDLOCK
operations.
|
sysdecode_vmprot()
|
|
The memory protection flags stored in
vm_prot_t
variables.
|