[][src]Module syscall::flag

Flags used as an argument to many system calls

Structs

CloneFlags
EventFlags
MapFlags
PhysallocFlags

Extra flags for physalloc2 or physalloc3.

PhysmapFlags
PtraceFlags
SigActionFlags
WaitFlags

Enums

PartialAllocStrategy

Constants

CLOCK_MONOTONIC
CLOCK_REALTIME
CLONE_FILES
CLONE_FS
CLONE_SIGHAND
CLONE_STACK
CLONE_THREAD
CLONE_VFORK
CLONE_VM
EVENT_NONE
EVENT_READ

The event represents a file being able to be read from.

EVENT_URING

The event represents an io_uring getting a new submission or completion pushed onto it, which means that a process receiving this event can poll that queue and process its events.

EVENT_WRITE

The event represents a file being able to be written to.

FUTEX_REQUEUE
FUTEX_WAIT
FUTEX_WAKE
F_DUPFD
F_GETFD
F_GETFL
F_SETFD
F_SETFL
MAP_PRIVATE
MAP_SHARED
MODE_CHR
MODE_DIR
MODE_FIFO
MODE_FILE
MODE_PERM
MODE_SETGID
MODE_SETUID
MODE_SYMLINK
MODE_TYPE
O_ACCMODE
O_APPEND
O_ASYNC
O_CLOEXEC
O_CREAT
O_DIRECTORY
O_EXCL
O_EXLOCK
O_FSYNC
O_NOFOLLOW
O_NONBLOCK
O_RDONLY
O_RDWR
O_SHLOCK
O_STAT
O_SYMLINK
O_TRUNC
O_WRONLY
PARTIAL_ALLOC

Do a "partial allocation", which means that not all of the frames specified in the frame count size actually have to be allocated. This means that if the allocator was unable to find a physical memory range large enough, it can instead return whatever range it decides is optimal. Thus, instead of letting one driver get an expensive 128MiB physical memory range when the physical memory has become fragmented, and failing, it can instead be given a more optimal range. If the device supports scatter-gather lists, then the driver only has to allocate more ranges, and the device will do vectored I/O.

PARTIAL_ALLOC_STRATEGY_MASK

The bitmask of the partial allocation strategy. Currently four different strategies are supported. If PARTIAL_ALLOC is not set, this bitmask is no longer reserved.

PHYSMAP_NO_CACHE
PHYSMAP_WRITE
PHYSMAP_WRITE_COMBINE
PROT_EXEC
PROT_NONE
PROT_READ
PROT_WRITE
PTRACE_EVENT_CLONE
PTRACE_EVENT_MASK
PTRACE_FLAG_IGNORE
PTRACE_FLAG_MASK
PTRACE_STOP_BREAKPOINT
PTRACE_STOP_EXEC
PTRACE_STOP_EXIT
PTRACE_STOP_MASK
PTRACE_STOP_POST_SYSCALL
PTRACE_STOP_PRE_SYSCALL
PTRACE_STOP_SIGNAL
PTRACE_STOP_SINGLESTEP
SA_NOCLDSTOP
SA_NOCLDWAIT
SA_NODEFER
SA_ONSTACK
SA_RESETHAND
SA_RESTART
SA_RESTORER
SA_SIGINFO
SEEK_CUR
SEEK_END
SEEK_SET
SIGABRT
SIGALRM
SIGBUS
SIGCHLD
SIGCONT
SIGFPE
SIGHUP
SIGILL
SIGINT
SIGIO
SIGKILL
SIGPIPE
SIGPROF
SIGPWR
SIGQUIT
SIGSEGV
SIGSTKFLT
SIGSTOP
SIGSYS
SIGTERM
SIGTRAP
SIGTSTP
SIGTTIN
SIGTTOU
SIGURG
SIGUSR1
SIGUSR2
SIGVTALRM
SIGWINCH
SIGXCPU
SIGXFSZ
SIG_BLOCK
SIG_DFL
SIG_IGN
SIG_SETMASK
SIG_UNBLOCK
SPACE_32

Only allocate memory within the 32-bit physical memory space. This is necessary for some devices may not support 64-bit memory.

SPACE_64

The frame that will be allocated, is going to reside anywhere in 64-bit space. This flag is redundant for the most part, except when overriding some other default.

WCONTINUED
WNOHANG
WUNTRACED

Functions

wcoredump

True if status indicates a core dump was created.

wexitstatus

If wifexited(status), the exit status.

wifcontinued

True if status indicates the child continued after a stop.

wifexited

True if status indicates normal termination.

wifsignaled

True if STATUS indicates termination by a signal.

wifstopped

True if status indicates the child is stopped.

wstopsig

If wifstopped(status), the signal that stopped the child.

wtermsig

If wifsignaled(status), the terminating signal.