$RodHat_/search

$ apropos flags

Flags & arguments

Know the constant but forgot which call takes it? Find it here, then jump straight to the relevant line of the syscall reference. Some entries are named structures or operations rather than bit flags.

The short explanations below come from those cards. Open the card for the synopsis, example and cited sources.

337 entries

#

  • _LINUX_CAPABILITY_VERSION_3capset(2) · Security · Linux 2.6.26

    Header version for 64-bit capability sets (datap[0] and datap[1]). V2 (2.6.25) was a glitch; V1 is 32-bit.

  • 0setns(2) · Processes

    Join whatever namespace type fd refers to; fine when you don't need the type checked.

  • 0 (no flags)fallocate(2) · Filesystem

    Allocate blocks in [offset, offset+len); extend st_size if needed. Returns EOPNOTSUPP if the filesystem does not support native allocation.

A

  • Ambientcapset(2) · Security · Linux 4.3

    Caps kept across execve of unprivileged binaries; always a subset of permitted and inheritable. Set via prctl.

  • any advice (self)process_madvise(2) · Memory · Linux 6.13

    When pidfd refers to the calling process, any madvise advice is permitted.

  • AT_EMPTY_PATHexecveat(2) · Processes

    When pathname is "", treat dirfd as the file to execute directly. dirfd must reference a regular file (O_PATH or O_RDONLY). Enables exec of an already-open, possibly-unlinked inode.

  • AT_EMPTY_PATHmount_setattr(2) · Filesystem

    Operate on dirfd itself (pass "" as pathname) rather than resolving a path; useful with open_tree(2) fds.

  • AT_EMPTY_PATHname_to_handle_at / open_by_handle_at(2) · Filesystem

    Get a handle for the file referred to by dirfd itself, ignoring pathname (which must be ""). No path traversal.

  • AT_RECURSIVEmount_setattr(2) · Filesystem

    Apply changes to the entire mount subtree rooted at dirfd/pathname, not just the top-level mount.

  • AT_STATX_DONT_SYNCstatx(2) · Filesystem

    Flags: return cached attributes even if stale; no server round trip.

  • AT_STATX_FORCE_SYNCstatx(2) · Filesystem

    Flags: force attribute sync with the server (network filesystems).

  • AT_STATX_SYNC_AS_STATstatx(2) · Filesystem

    Flags: do whatever stat(2) does about syncing attributes with a remote server.

  • AT_SYMLINK_FOLLOWname_to_handle_at / open_by_handle_at(2) · Filesystem

    Follow a trailing symlink in pathname (default behavior; included for clarity).

  • AT_SYMLINK_NOFOLLOWexecveat(2) · Processes

    Fail with ELOOP if the last component of pathname is a symlink. Not applicable with AT_EMPTY_PATH.

  • AT_SYMLINK_NOFOLLOWstatx(2) · Filesystem

    Flags: if path is a symlink, report on the link itself.

B

  • Boundingcapset(2) · Security · Linux 2.6.25 (per-thread)

    Caps file capabilities can grant at exec. Shrink with PR_CAPBSET_DROP (needs CAP_SETPCAP); can't be restored.

  • BPF_PROG_TYPE_SK_REUSEPORTSO_REUSEPORT · I/O · Linux 4.19

    eBPF program type returning SK_PASS/SK_DROP; selects via bpf_sk_select_reuseport.

  • btrfs reflinkcopy_file_range(2) · I/O

    On btrfs, extents are shared via reflink; an instantaneous copy regardless of file size.

C

  • cunveil(2) · Sandboxing

    Path may be created and removed; corresponds to pledge cpath, dpath and unix.

  • CAP_PERFMONperf_event_open(2) · Tracing · Linux 5.8

    Required for system-wide (pid=-1) access; replaces CAP_SYS_ADMIN for perf in Linux 5.8.

  • CLOCK_BOOTTIMEtimerfd_create(2) · Events · Linux 3.15

    Like CLOCK_MONOTONIC but keeps counting while the system is suspended.

  • CLOCK_MONOTONICtimerfd_create(2) · Events

    Nonsettable monotonic clock; the right choice for intervals.

  • CLOCK_REALTIMEtimerfd_create(2) · Events

    Settable wall clock; use with TFD_TIMER_ABSTIME for wall-clock deadlines.

  • CLOCK_REALTIME_ALARM / CLOCK_BOOTTIME_ALARMtimerfd_create(2) · Events · Linux 3.11

    Wake the system from suspend; setting requires CAP_WAKE_ALARM.

  • CLONE_CLEAR_SIGHANDclone3(2) · Processes · Linux 5.3

    Reset all signal handlers to SIG_DFL in the child; SIG_IGN handlers are not touched (they follow exec semantics).

  • CLONE_INTO_CGROUPclone3(2) · Processes · Linux 5.7

    Place the child in the cgroup v2 specified by args.cgroup (a cgroup fd) from the first instruction; no fork-then-move race.

  • CLONE_NEWCGROUPsetns(2) · Processes · Linux 4.6

    fd must refer to a cgroup namespace.

  • CLONE_NEWCGROUPunshare(2) · Processes · Linux 4.6

    New cgroup namespace; the caller sees its current cgroup as root.

  • CLONE_NEWIPCsetns(2) · Processes · Linux 3.0

    fd must refer to an IPC namespace.

  • CLONE_NEWIPCunshare(2) · Processes · Linux 2.6.19

    New IPC namespace; SysV IPC objects and POSIX message queues are isolated.

  • CLONE_NEWNETsetns(2) · Processes · Linux 3.0

    fd must refer to a network namespace.

  • CLONE_NEWNETunshare(2) · Processes · Linux 2.6.24

    New network namespace; private network stack, interfaces, routing tables.

  • CLONE_NEWNSsetns(2) · Processes · Linux 3.8

    Mount namespace. Needs CAP_SYS_CHROOT and CAP_SYS_ADMIN; caller must not share CLONE_FS state.

  • CLONE_NEWNSunshare(2) · Processes · Linux 2.4.19

    New mount namespace; the caller gets a private copy of the mount table.

  • CLONE_NEWPIDsetns(2) · Processes · Linux 3.8

    Descendant PID namespace. Only affects children created afterwards, not the caller.

  • CLONE_NEWPIDunshare(2) · Processes · Linux 3.8

    New PID namespace for future children only. The caller stays in its original namespace; the next forked child becomes PID 1 in the new namespace.

  • CLONE_NEWTIMEsetns(2) · Processes · Linux 5.8

    fd must refer to a time namespace.

  • CLONE_NEWTIMEunshare(2) · Processes · Linux 5.6

    New time namespace; CLOCK_MONOTONIC and CLOCK_BOOTTIME can be offset independently.

  • CLONE_NEWUSERsetns(2) · Processes · Linux 3.8

    User namespace. Caller must be single-threaded; needs CAP_SYS_ADMIN in the target namespace.

  • CLONE_NEWUSERunshare(2) · Processes · Linux 3.8

    New user namespace; unprivileged processes may call this and then write uid_map/gid_map to appear as root inside.

  • CLONE_NEWUTSsetns(2) · Processes · Linux 3.0

    fd must refer to a UTS namespace.

  • CLONE_NEWUTSunshare(2) · Processes · Linux 2.6.19

    New UTS namespace; hostname and domainname changes are private.

  • CLONE_PIDFDclone3(2) · Processes

    Write a pidfd to args.pidfd on return in the parent; the handle is written before any return, eliminating the PID-reuse race of fork+pidfd_open.

  • CLOSE_RANGE_CLOEXECclose_range(2) · File descriptors · Linux 5.11

    Set close-on-exec on the range instead of closing the descriptors.

  • CLOSE_RANGE_UNSHAREclose_range(2) · File descriptors

    Unshare the fd table first, so closing doesn't race other threads sharing it.

  • CMSG_SPACE / CMSG_LENSCM_RIGHTS · IPC

    Size the control buffer and cmsg_len for n descriptors: CMSG_SPACE(n * sizeof(int)).

  • cpathpledge(2) · Sandboxing

    Like wpath, but files can also be created and removed.

  • cpusetsizesched_setaffinity(2) · Processes

    Size of mask in bytes; normally sizeof(cpu_set_t).

D

  • dnspledge(2) · Sandboxing

    Resolver support: reads resolv.conf, hosts, services; sockets restricted to SOCK_DNS.

E

  • EFD_CLOEXECeventfd(2) · Events · Linux 2.6.27

    Set close-on-exec on the new descriptor.

  • EFD_NONBLOCKeventfd(2) · Events · Linux 2.6.27

    Set O_NONBLOCK; read on zero or write past the max returns EAGAIN.

  • EFD_SEMAPHOREeventfd(2) · Events · Linux 2.6.30

    read(2) returns 1 and decrements by 1 instead of returning and resetting the whole count.

  • Effectivecapset(2) · Security

    The set the kernel actually checks for permission decisions.

  • enforce_statfsjail(2) · Sandboxing

    Jail parameter limiting what statfs(2) and friends reveal: 0 all mounts, 1 only below the jail root, 2 (default) only the root's own mount.

  • errorpledge(2) · Sandboxing

    Return ENOSYS on violation instead of killing the process; requests for more promises are ignored.

  • execpledge(2) · Sandboxing

    Allow execve(2). The new program starts with execpromises if set, otherwise unpledged.

F

  • F_SEAL_FUTURE_WRITEmemfd_create(2) · Memory

    fcntl(2) seal blocking future writes while allowing existing writable mappings to remain.

  • F_SEAL_SEALmemfd_create(2) · Memory

    fcntl(2) seal preventing any further seals from being added.

  • F_SEAL_SHRINK / F_SEAL_GROWmemfd_create(2) · Memory

    fcntl(2) seals that lock the file size against shrinking or growing.

  • F_SEAL_WRITEmemfd_create(2) · Memory

    fcntl(2) seal blocking writes; can't be added while writable shared mappings exist.

  • FALLOC_FL_COLLAPSE_RANGEfallocate(2) · Filesystem · Linux 3.15

    Physically remove [offset, offset+len) from the file, shifting subsequent data. File shrinks by len. Offset and len must be block-aligned.

  • FALLOC_FL_INSERT_RANGEfallocate(2) · Filesystem · Linux 4.1

    Insert a hole of len bytes at offset, shifting existing data forward. File grows by len.

  • FALLOC_FL_KEEP_SIZEfallocate(2) · Filesystem

    Allocate extents but do not change st_size. Reads past the original EOF still return zero bytes.

  • FALLOC_FL_PUNCH_HOLEfallocate(2) · Filesystem · Linux 3.5

    Free the blocks in [offset, offset+len); range reads as zeros. Must be combined with FALLOC_FL_KEEP_SIZE. Range is rounded to filesystem block boundaries.

  • FALLOC_FL_ZERO_RANGEfallocate(2) · Filesystem · Linux 3.15

    Zero the byte range without necessarily freeing blocks; may be implemented as a hole punch or as explicit zeroing depending on the filesystem.

  • FAN_CLASS_CONTENTfanotify_init(2) · Events

    Notification plus permission events, for listeners that need files with their final content (e.g. malware scanners). CAP_SYS_ADMIN.

  • FAN_CLASS_NOTIFfanotify_init(2) · Events

    Default class. Notification only; no permission decisions possible.

  • FAN_CLASS_PRE_CONTENTfanotify_init(2) · Events

    Notification plus permission events, for listeners that may write data before it's accessed (e.g. HSMs). CAP_SYS_ADMIN.

  • FAN_CLOEXECfanotify_init(2) · Events

    Set close-on-exec on the group fd.

  • FAN_NONBLOCKfanotify_init(2) · Events

    Make the group fd nonblocking; read(2) returns EAGAIN when the queue is empty.

  • FAN_REPORT_DFID_NAMEfanotify_init(2) · Events

    Synonym for FAN_REPORT_DIR_FID|FAN_REPORT_NAME (both since Linux 5.9): report parent dir handle plus entry name.

  • FAN_REPORT_FIDfanotify_init(2) · Events · Linux 5.1

    Identify objects by file handle instead of an open fd; not allowed with the CONTENT/PRE_CONTENT classes.

  • FAN_REPORT_PIDFDfanotify_init(2) · Events · Linux 5.15 and 5.10.220

    Attach a pidfd for the process that caused the event, so PID reuse can't fool you.

  • FAN_REPORT_TIDfanotify_init(2) · Events · Linux 4.20

    Report the thread ID instead of the process ID in the event metadata pid field.

  • FAN_UNLIMITED_QUEUEfanotify_init(2) · Events

    Remove the event queue limit. Requires CAP_SYS_ADMIN.

  • fd = -1signalfd(2) · Events

    Create a new signalfd; pass an existing signalfd instead to replace its mask.

  • FD_CLOEXECpidfd_getfd(2) · File descriptors

    Always set on the returned descriptor.

  • flagscopy_file_range(2) · I/O

    Must be 0; no flags are defined.

  • flagspidfd_getfd(2) · File descriptors

    Reserved; must be 0, otherwise EINVAL.

  • flagsprocess_madvise(2) · Memory

    Reserved; must be 0.

  • flags (reserved)mseal(2) · Memory

    Must be 0. Non-zero returns EINVAL. Reserved for future use.

  • flags (reserved)process_vm_readv(2) · Memory

    Must be 0. Reserved for future use.

  • FSCONFIG_CMD_CREATEfsopen(2) · Filesystem

    fsconfig(): commit the configuration and create (or reuse) the superblock.

  • FSCONFIG_CMD_CREATE_EXCLfsopen(2) · Filesystem · Linux 6.6

    Like FSCONFIG_CMD_CREATE but fail instead of silently reusing an existing matching superblock.

  • FSCONFIG_CMD_RECONFIGUREfsopen(2) · Filesystem

    fsconfig(): apply changes to an existing superblock (context from fspick(2) or a used fsmount context).

  • FSCONFIG_SET_FDfsopen(2) · Filesystem

    fsconfig(): pass an open file descriptor as the option value.

  • FSCONFIG_SET_FLAGfsopen(2) · Filesystem

    fsconfig(): set a boolean option with no value, e.g. "ro".

  • FSCONFIG_SET_STRINGfsopen(2) · Filesystem

    fsconfig(): set a string option such as "source" or "errors".

  • FSMOUNT_CLOEXECfsopen(2) · Filesystem

    fsmount(): set close-on-exec on the returned detached mount fd. attr_flags takes MOUNT_ATTR_* values.

  • FSOPEN_CLOEXECfsopen(2) · Filesystem

    fsopen(): set close-on-exec on the new filesystem context fd.

  • FUTEX_CLOCK_REALTIMEfutex(2) · IPC · Linux 2.6.28

    Measure the timeout against CLOCK_REALTIME instead of CLOCK_MONOTONIC (for ops that accept it).

  • FUTEX_CMP_REQUEUEfutex(2) · IPC · Linux 2.6.7

    Wake some waiters and move the rest to a second futex, after checking *uaddr still equals val3.

  • FUTEX_LOCK_PIfutex(2) · IPC · Linux 2.6.18

    Priority-inheritance lock: futex word holds the owner TID and the kernel boosts the owner while others wait.

  • FUTEX_PRIVATE_FLAGfutex(2) · IPC · Linux 2.6.22

    OR into op when the futex isn't shared between processes; lets the kernel skip cross-process bookkeeping.

  • FUTEX_REQUEUEfutex(2) · IPC · Linux 2.6.0

    Same as FUTEX_CMP_REQUEUE but without the value comparison.

  • FUTEX_UNLOCK_PIfutex(2) · IPC · Linux 2.6.18

    Release a PI futex taken with FUTEX_LOCK_PI.

  • FUTEX_WAITfutex(2) · IPC · Linux 2.6.0

    Sleep if *uaddr still equals val; the compare and the enqueue are atomic, so a wake can't slip in between.

  • FUTEX_WAIT_BITSETfutex(2) · IPC · Linux 2.6.25

    FUTEX_WAIT with a bitmask so wakers can target a subset of waiters.

  • FUTEX_WAKEfutex(2) · IPC · Linux 2.6.0

    Wake up to val waiters sleeping on uaddr; returns how many were actually woken.

G

  • GRND_INSECUREgetrandom(2) · Security · Linux 5.6

    Return bytes even before the pool is seeded, with no cryptographic guarantee. Early-boot use only.

  • GRND_NONBLOCKgetrandom(2) · Security

    Don't block if the pool isn't initialized (or random source is empty); fail with EAGAIN instead.

  • GRND_RANDOMgetrandom(2) · Security

    Draw from the random source (/dev/random) instead of urandom; may return fewer bytes than asked.

H

  • handled_access_fslandlock_create_ruleset(2) · Sandboxing

    Filesystem rights this ruleset handles. Rights not listed here are not restricted at all.

  • handled_access_netlandlock_create_ruleset(2) · Sandboxing

    Network rights (TCP bind/connect) this ruleset handles.

I

  • IN_CLOSE_WRITEinotify_add_watch(2) · Events

    File opened for writing was closed. Fires once per close; prefer this over IN_MODIFY for config-reload triggers.

  • IN_CREATEinotify_add_watch(2) · Events

    File or directory was created inside a watched directory.

  • IN_DELETEinotify_add_watch(2) · Events

    File or directory inside a watched directory was deleted.

  • IN_MODIFYinotify_add_watch(2) · Events

    File content was modified. Fires on every write(2) call, not per-close. Noisy and wrong for watching targets of atomic renames.

  • IN_MOVED_TOinotify_add_watch(2) · Events

    File was renamed into the watched directory. Required when the writer does an atomic temp-file-plus-rename.

  • IN_Q_OVERFLOWinotify_add_watch(2) · Events

    Event queue overflowed; events were dropped. The kernel queues exactly one of these then discards until the queue drains. Always check for this flag or you have a silent failure mode.

  • inetpledge(2) · Sandboxing

    socket/connect/bind/listen/accept and friends in AF_INET and AF_INET6, with reduced setsockopt.

  • info = NULLpidfd_send_signal(2) · Processes

    Equivalent to kill(2): the kernel fills in si_signo, si_code = SI_USER, sender PID and UID.

  • Inheritablecapset(2) · Security

    Caps preserved across execve; only useful combined with file inheritable caps or ambient.

  • initvaleventfd(2) · Events

    Initial value of the counter.

  • IOPRIO_CLASS_BEioprio_set(2) · I/O

    Best-effort class, levels 0 (highest) to 7; the default.

  • IOPRIO_CLASS_IDLEioprio_set(2) · I/O

    Only gets disk time when nobody else wants it. No CAP_SYS_ADMIN needed since Linux 2.6.25.

  • IOPRIO_CLASS_RTioprio_set(2) · I/O

    Real-time class, levels 0-7; gets the disk first and can starve everyone. Needs CAP_SYS_ADMIN.

  • IOPRIO_PRIO_VALUE(class, data)ioprio_set(2) · I/O

    Macro that packs class and level into the ioprio argument.

  • IOPRIO_WHO_PGRPioprio_set(2) · I/O

    who is a process group ID; 0 means the caller's process group.

  • IOPRIO_WHO_PROCESSioprio_set(2) · I/O

    who is a process or thread ID; 0 means the calling thread.

  • IOPRIO_WHO_USERioprio_set(2) · I/O

    who is a UID; applies to all processes with that real UID.

  • IORING_SETUP_COOP_TASKRUNio_uring_setup(2) · I/O · Linux 5.19

    Don't interrupt the task with IPIs on completion; process at the next kernel transition.

  • IORING_SETUP_CQSIZEio_uring_setup(2) · I/O

    Size the completion queue from params.cq_entries instead of the default.

  • IORING_SETUP_DEFER_TASKRUNio_uring_setup(2) · I/O · Linux 6.1

    Defer completion work until io_uring_enter(2) with GETEVENTS. Requires SINGLE_ISSUER.

  • IORING_SETUP_IOPOLLio_uring_setup(2) · I/O

    Busy-poll for completions instead of IRQs; storage only, typically O_DIRECT on a polling-capable device.

  • IORING_SETUP_NO_MMAPio_uring_setup(2) · I/O · Linux 6.5

    Use caller-allocated memory for the rings instead of mmap(2)-ing kernel memory.

  • IORING_SETUP_R_DISABLEDio_uring_setup(2) · I/O · Linux 5.10

    Start the ring disabled so restrictions can be registered before submissions are allowed.

  • IORING_SETUP_SINGLE_ISSUERio_uring_setup(2) · I/O · Linux 6.0

    Only one task may submit; violations fail with -EEXIST.

  • IORING_SETUP_SQ_AFFio_uring_setup(2) · I/O

    Pin the SQPOLL thread to sq_thread_cpu. Only meaningful with IORING_SETUP_SQPOLL.

  • IORING_SETUP_SQPOLLio_uring_setup(2) · I/O

    A kernel thread polls the SQ ring so submission needs no syscall; it parks after sq_thread_idle ms.

  • IORING_SETUP_SUBMIT_ALLio_uring_setup(2) · I/O · Linux 5.18

    Keep submitting the batch even if one request errors during submission.

J

  • JAIL_ATTACHjail(2) · Sandboxing

    jail_set(): also attach the calling process, as jail_attach() would.

  • JAIL_CREATEjail(2) · Sandboxing

    jail_set(): create a new jail; jid/name must not already exist.

  • JAIL_DYINGjail(2) · Sandboxing

    jail_get(): allow fetching a jail that is being removed (no effect in jail_set()).

  • JAIL_GET_DESC / JAIL_OWN_DESCjail(2) · Sandboxing

    Return a jail descriptor fd; an owning descriptor removes the jail when closed.

  • JAIL_UPDATEjail(2) · Sandboxing

    jail_set(): modify an existing jail. With JAIL_CREATE: create if missing, else modify.

K

  • KCMP_EPOLL_TFDkcmp(2) · Processes

    idx1 is an epoll fd in pid1, idx2 is a target fd in pid2. Returns zero if the target fd is registered with that epoll instance. Used by CRIU to reconstruct epoll state.

  • KCMP_FILEkcmp(2) · Processes

    idx1 and idx2 are fd numbers in pid1 and pid2. Returns zero if they share the same open file description (same struct file). Duplicated fds and SCM_RIGHTS-passed fds share a description; independently opened fds do not.

  • KCMP_FILESkcmp(2) · Processes

    Returns zero if pid1 and pid2 share the same open file descriptor table entirely. Threads created with CLONE_FILES share the table.

  • KCMP_FSkcmp(2) · Processes

    Returns zero if pid1 and pid2 share the same filesystem context: root directory, cwd, and umask. Threads created with CLONE_FS share this.

  • KCMP_IOkcmp(2) · Processes

    Returns zero if pid1 and pid2 share the same I/O context (block-layer accounting).

  • KCMP_SIGHANDkcmp(2) · Processes

    Returns zero if pid1 and pid2 share the same signal handler table. Threads created with CLONE_SIGHAND share it.

  • KCMP_SYSVSEMkcmp(2) · Processes

    Returns zero if pid1 and pid2 share the same System V semaphore undo list.

  • KCMP_VMkcmp(2) · Processes

    idx1/idx2 ignored. Returns zero if pid1 and pid2 share the same virtual memory space (CLONE_VM threads, or before exec).

  • KEY_SPEC_PROCESS_KEYRINGkeyctl(2) · Security

    Process keyring: shared by threads, absent in a fork() child, cleared on execve.

  • KEY_SPEC_SESSION_KEYRINGkeyctl(2) · Security

    Session keyring: inherited across fork and preserved across execve.

  • KEYCTL_GET_KEYRING_IDkeyctl(2) · Security · Linux 2.6.10

    Resolve a special ID (KEY_SPEC_PROCESS_KEYRING etc.) to a real keyring serial.

  • KEYCTL_INVALIDATEkeyctl(2) · Security · Linux 3.5

    Mark a key invalid immediately and schedule it for garbage collection.

  • KEYCTL_READkeyctl(2) · Security · Linux 2.6.10

    Read a key's payload; returns the full payload size so you can detect a short buffer.

  • KEYCTL_REVOKEkeyctl(2) · Security · Linux 2.6.10

    Revoke a key; further operations on it fail with EKEYREVOKED.

  • KEYCTL_SEARCHkeyctl(2) · Security · Linux 2.6.10

    Search a keyring tree for a key of a given type and description.

  • KEYCTL_SET_TIMEOUTkeyctl(2) · Security · Linux 2.6.16

    Expire the key t seconds from now (realtime clock); 0 clears the timeout.

  • KEYCTL_SETPERMkeyctl(2) · Security · Linux 2.6.10

    Set the possessor/user/group/other permission mask on a key.

L

  • LANDLOCK_ACCESS_FS_REFERlandlock_create_ruleset(2) · Sandboxing

    Cross-directory rename/link right; always denied by default, even if not set in handled_access_fs.

  • LANDLOCK_CREATE_RULESET_ERRATAlandlock_create_ruleset(2) · Sandboxing

    With attr NULL and size 0, return a bitmask of Landlock errata fixed in the running kernel.

  • LANDLOCK_CREATE_RULESET_VERSIONlandlock_create_ruleset(2) · Sandboxing

    With attr NULL and size 0, return the highest supported Landlock ABI version (starting at 1).

  • last = ~0Uclose_range(2) · File descriptors

    Pass UINT_MAX as last to cover everything from first upward.

  • LOCK_EXflock(2) · File descriptors

    Exclusive lock; only one holder at a time.

  • LOCK_NBflock(2) · File descriptors

    OR in to fail with EWOULDBLOCK instead of blocking when the lock is held.

  • LOCK_SHflock(2) · File descriptors

    Shared lock; many processes can hold one at the same time.

  • LOCK_UNflock(2) · File descriptors

    Release the lock held via this open file description.

M

  • MADV_COLDmadvise(2) · Memory · Linux 5.4

    Deactivate the pages so they're likelier reclaim targets. Nondestructive.

  • MADV_COLDprocess_madvise(2) · Memory

    Deactivate the target's pages so they age toward reclaim. Valid on another process.

  • MADV_COLLAPSEprocess_madvise(2) · Memory

    Synchronously collapse the range into transparent huge pages. Valid on another process.

  • MADV_DODUMPmadvise(2) · Memory · Linux 3.4

    Undo an earlier MADV_DONTDUMP.

  • MADV_DONTDUMPmadvise(2) · Memory · Linux 3.4

    Exclude the range from core dumps; overrides /proc/pid/coredump_filter.

  • MADV_DONTFORKmadvise(2) · Memory · Linux 2.6.16

    Don't make the range available to the child after fork(2).

  • MADV_DONTNEEDmadvise(2) · Memory

    Drop the pages now: RSS falls immediately; next touch gets zero-fill (private anon) or file contents.

  • MADV_FREEmadvise(2) · Memory · Linux 4.5

    Kernel may free the pages lazily under memory pressure; a write before then cancels the free. Private anon only.

  • MADV_HUGEPAGEmadvise(2) · Memory · Linux 2.6.38

    Enable transparent huge pages for the range.

  • MADV_PAGEOUTmadvise(2) · Memory · Linux 5.4

    Reclaim the pages now: anon goes to swap, dirty file pages get written back.

  • MADV_PAGEOUTprocess_madvise(2) · Memory

    Reclaim the target's pages now (anon to swap, dirty file pages written back). Valid on another process.

  • MADV_POPULATE_WRITEmadvise(2) · Memory · Linux 5.14

    Prefault page tables writable, as if writing to each page, without actually writing.

  • MADV_WILLNEEDprocess_madvise(2) · Memory

    Expect access soon; read ahead. Valid on another process.

  • MADV_WIPEONFORKmadvise(2) · Memory · Linux 4.14

    Child sees zero-filled memory in this range after fork; cleared on execve. Private anon only.

  • masksched_setaffinity(2) · Processes

    cpu_set_t built with the CPU_SET(3) macros. If the thread isn't on an allowed CPU it gets migrated.

  • masksignalfd(2) · Events

    Signals to accept. Block them with sigprocmask(2) first. SIGKILL and SIGSTOP are silently ignored.

  • MCL_CURRENTmlock(2) · Memory

    mlockall(): lock every page currently mapped into the address space.

  • MCL_FUTUREmlock(2) · Memory

    mlockall(): lock pages mapped in the future too; later mmap/brk can fail if over the limit.

  • MCL_ONFAULTmlock(2) · Memory · Linux 4.4

    With MCL_CURRENT/MCL_FUTURE: lock pages as they're faulted in instead of populating them up front.

  • MEMBARRIER_CMD_GLOBALmembarrier(2) · Memory · Linux 4.3

    Wait for every CPU on the system to pass through a memory barrier. Slow (includes all processes); no registration required.

  • MEMBARRIER_CMD_GLOBAL_EXPEDITEDmembarrier(2) · Memory · Linux 4.16

    IPI every CPU running a thread that called MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED. Faster than GLOBAL but requires coordination.

  • MEMBARRIER_CMD_PRIVATE_EXPEDITEDmembarrier(2) · Memory · Linux 4.14

    IPI every thread in the calling process. Readers execute a barrier on the IPI return path. Requires prior REGISTER call; returns EPERM otherwise.

  • MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQmembarrier(2) · Memory · Linux 5.10

    Interrupt any rseq critical section running on a remote CPU. cpu_id arg selects the target CPU; pass -1 for all.

  • MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_COREmembarrier(2) · Memory · Linux 4.16

    Like PRIVATE_EXPEDITED plus an icache-serializing instruction on each IPI return. Required after JIT code patching on non-x86 CPUs.

  • MEMBARRIER_CMD_QUERYmembarrier(2) · Memory

    Returns a bitmask of commands supported by this kernel.

  • MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITEDmembarrier(2) · Memory · Linux 4.16

    Register to receive global expedited barriers from other processes.

  • MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITEDmembarrier(2) · Memory · Linux 4.14

    Register intent to use MEMBARRIER_CMD_PRIVATE_EXPEDITED. Must be called before any reader threads are spawned.

  • MFD_ALLOW_SEALINGmemfd_create(2) · Memory

    Allow fcntl(F_ADD_SEALS). Without it the file starts with F_SEAL_SEAL and can never be sealed.

  • MFD_CLOEXECmemfd_create(2) · Memory

    Set close-on-exec on the new descriptor.

  • MFD_HUGETLBmemfd_create(2) · Memory · Linux 4.14

    Back the file with hugetlbfs huge pages; pick size with MFD_HUGE_2MB, MFD_HUGE_1GB, etc.

  • MLOCK_ONFAULTmlock(2) · Memory · mlock2(), Linux 4.4

    mlock2(): lock resident pages now, the rest of the range when they're first faulted in.

  • MOUNT_ATTR__ATIMEmount_setattr(2) · Filesystem

    Mask for the three mutually exclusive atime modes: MOUNT_ATTR_RELATIME, MOUNT_ATTR_NOATIME, MOUNT_ATTR_STRICTATIME. Set the desired constant in attr_set and MOUNT_ATTR__ATIME in attr_clr to switch modes.

  • MOUNT_ATTR_NODEVmount_setattr(2) · Filesystem

    Prevent access to device files on this mount.

  • MOUNT_ATTR_NOEXECmount_setattr(2) · Filesystem

    Prevent execution of programs on this mount.

  • MOUNT_ATTR_NOSUIDmount_setattr(2) · Filesystem

    Prevent set-uid and set-gid execution on this mount.

  • MOUNT_ATTR_NOSYMFOLLOWmount_setattr(2) · Filesystem · Linux 5.18

    Prevent symlink following on this mount.

  • MOUNT_ATTR_RDONLYmount_setattr(2) · Filesystem

    Make the mount read-only.

  • MOVE_MOUNT_BENEATHfsopen(2) · Filesystem · Linux 6.5

    move_mount(): mount beneath the top mount at the target instead of on top of it.

  • MOVE_MOUNT_F_EMPTY_PATHfsopen(2) · Filesystem

    move_mount(): from_path is empty, so the source is from_dirfd itself (e.g. the fd fsmount returned).

  • MSG_CMSG_CLOEXECSCM_RIGHTS · IPC · Linux 2.6.23

    recvmsg(2) flag: set close-on-exec on every received descriptor.

  • MSG_CTRUNCSCM_RIGHTS · IPC

    Set in msg_flags when control data was truncated; the excess fds were closed by the kernel.

N

  • NFS 4.2 server-side copycopy_file_range(2) · I/O

    On NFS 4.2, the kernel sends a CLONE or COPY op to the server; data never crosses the network.

  • nr_cachecachestat(2) · Filesystem

    Pages currently resident in the page cache.

  • nr_dirtycachestat(2) · Filesystem

    Pages modified in cache but not yet written to storage.

  • nr_evictedcachestat(2) · Filesystem

    Pages evicted from cache since the last cachestat call on this fd.

  • nr_recently_evictedcachestat(2) · Filesystem

    Pages evicted under memory pressure (PG_workingset) since the last call.

  • nr_writebackcachestat(2) · Filesystem

    Pages currently being written back to storage.

O

  • O_CLOEXECmemfd_secret(2) · Memory

    The only accepted flag: close-on-exec. The man page says FD_CLOEXEC; mm/secretmem.c checks O_CLOEXEC, and FD_CLOEXEC gets EINVAL.

  • O_CLOEXECuserfaultfd(2) · Memory

    Set close-on-exec on the new userfaultfd.

  • O_NONBLOCKuserfaultfd(2) · Memory

    Non-blocking reads; use poll(2)/epoll(7) to wait for events.

  • off_in = &poscopy_file_range(2) · I/O

    Read from pos without moving fd_in's position, like pread(2).

  • off_in = NULLcopy_file_range(2) · I/O

    Use and advance fd_in's current file position, like read(2).

  • off_out = NULL / &poscopy_file_range(2) · I/O

    Same semantics as off_in but for the write side.

  • OPENAT2_REGULARopenat2(2) · Filesystem · Linux 7.2

    Open only if the target is a regular file; otherwise fail with EFTYPE.

P

  • PERF_FLAG_FD_CLOEXECperf_event_open(2) · Tracing · Linux 3.14

    Set O_CLOEXEC on the returned fd.

  • PERF_FORMAT_GROUPperf_event_open(2) · Tracing

    Read all group members atomically in one read(2) call on the leader fd.

  • Include nanoseconds the counter was enabled vs. actually running; divide to detect PMU multiplexing.

  • PERF_TYPE_HARDWAREperf_event_open(2) · Tracing

    CPU PMU counter; config is one of PERF_COUNT_HW_* (cycles, instructions, cache-misses, branch-misses, etc.).

  • PERF_TYPE_RAWperf_event_open(2) · Tracing

    Vendor-specific PMU event code; config is the raw event selector from the CPU architecture manual.

  • PERF_TYPE_SOFTWAREperf_event_open(2) · Tracing

    Kernel counter; config is one of PERF_COUNT_SW_* (cpu-clock, page-faults, context-switches, etc.).

  • Permittedcapset(2) · Security

    Limiting superset of what the thread may make effective. Can be dropped, not regained without exec of a privileged file.

  • pidsched_setaffinity(2) · Processes

    A thread ID, not a whole process; 0 means the calling thread. Other threads keep their own masks.

  • PIDFD_NONBLOCKpidfd_open(2) · Processes · Linux 5.10

    waitid(2) on the fd returns EAGAIN instead of blocking if the task hasn't terminated.

  • PIDFD_SIGNAL_PROCESS_GROUPpidfd_send_signal(2) · Processes · Linux 6.9

    If pidfd refers to a process-group leader, signal the whole process group.

  • PIDFD_SIGNAL_THREADpidfd_send_signal(2) · Processes · Linux 6.9

    Send the signal to the specific thread referenced by pidfd.

  • PIDFD_SIGNAL_THREAD_GROUPpidfd_send_signal(2) · Processes · Linux 6.9

    If pidfd refers to a thread-group leader, signal the whole thread group.

  • PIDFD_THREADpidfd_open(2) · Processes · Linux 6.9

    Refer to a specific thread rather than a thread-group leader.

  • PKEY_DISABLE_ACCESSpkey_alloc / pkey_mprotect(2) · Memory

    Set the Access Disable bit in PKRU for this key: any read or write to tagged memory faults with SIGSEGV.

  • PKEY_DISABLE_WRITEpkey_alloc / pkey_mprotect(2) · Memory

    Set the Write Disable bit in PKRU for this key: writes fault, reads are allowed.

  • poll/epollpidfd_open(2) · Processes

    The fd turns readable (EPOLLIN) when the process exits and becomes a zombie; EPOLLHUP once it is reaped.

  • POSIX_FADV_DONTNEEDposix_fadvise(2) · I/O

    Evict the range from the page cache. On Linux, dirty pages are written back first; clean pages are freed immediately. Use after a sequential scan to avoid polluting the cache.

  • POSIX_FADV_NOREUSEposix_fadvise(2) · I/O

    Pages will be accessed once. On Linux this is currently a no-op; FreeBSD implements it as a hint to prefer sequential access.

  • POSIX_FADV_NORMALposix_fadvise(2) · I/O

    Reset to the default read-ahead policy. Cancels any earlier FADV hint on the range.

  • POSIX_FADV_RANDOMposix_fadvise(2) · I/O

    Access will be random. Kernel disables read-ahead; pages are fetched on demand only.

  • POSIX_FADV_SEQUENTIALposix_fadvise(2) · I/O

    Data will be read start-to-end. Kernel doubles its read-ahead window on the range.

  • POSIX_FADV_WILLNEEDposix_fadvise(2) · I/O

    Initiate read-ahead for the range now so pages are warm by the time the application reads them. Asynchronous and non-blocking.

  • PR_CAP_AMBIENTprctl(2) · Processes · Linux 4.3

    Read or change the ambient capability set: RAISE, LOWER, IS_SET, CLEAR_ALL.

  • PR_SET_DUMPABLEprctl(2) · Processes

    0 or 1 only. Not dumpable: no core dumps, no PTRACE_ATTACH, /proc/pid files owned by root. Value 2 was removed.

  • PR_SET_NAMEprctl(2) · Processes

    Set the calling thread's name (comm).

  • PR_SET_NO_NEW_PRIVSprctl(2) · Processes · Linux 3.5

    Permanently stop execve from granting privileges (setuid/setgid bits, file caps). Inherited, can't be unset.

  • PR_SET_PDEATHSIGprctl(2) · Processes

    Signal to receive when the parent thread dies. Cleared on fork and setuid/caps exec; kept across plain execve.

  • PR_SET_SECCOMPprctl(2) · Processes

    Set seccomp mode; SECCOMP_MODE_FILTER (Linux 3.5) needs CAP_SYS_ADMIN or no_new_privs. seccomp(2) is preferred.

  • PR_SET_VMAprctl(2) · Processes · Linux 5.17

    PR_SET_VMA_ANON_NAME names an anonymous mapping. Max 80 bytes with NUL; printable ASCII except [ ] \ $ `.

  • procpledge(2) · Sandboxing

    fork, vfork, kill, setpgid, setsid and related process-relationship calls. Not execve.

  • PTRACE_MODE_ATTACH_REALCREDSpidfd_getfd(2) · File descriptors

    Permission check applied: you need ptrace-attach rights over the target.

R

  • runveil(2) · Sandboxing

    Path available for read operations; corresponds to the pledge "rpath" promise.

  • RENAME_EXCHANGErenameat2(2) · Filesystem

    Atomically swap oldpath and newpath. Both must exist. No intermediate state where either path is absent.

  • RENAME_NOREPLACErenameat2(2) · Filesystem

    Fail with EEXIST if newpath already exists instead of replacing it.

  • RENAME_WHITEOUTrenameat2(2) · Filesystem

    Leave a whiteout inode at oldpath for union/overlay mount semantics. Rarely needed outside container runtimes.

  • RESOLVE_BENEATHopenat2(2) · Filesystem

    Fail if any path component resolves outside dirfd's tree; absolute paths and absolute symlinks are rejected (EXDEV).

  • RESOLVE_CACHEDopenat2(2) · Filesystem · Linux 5.12

    Fail with EAGAIN unless every component is already in the lookup cache; retry without it.

  • RESOLVE_IN_ROOTopenat2(2) · Filesystem

    Treat dirfd as the root for this lookup, like a per-open chroot(2): absolute paths and '..' are clamped to dirfd.

  • RESOLVE_NO_MAGICLINKSopenat2(2) · Filesystem

    Refuse procfs-style magic links such as /proc/self/fd/N (ELOOP).

  • RESOLVE_NO_SYMLINKSopenat2(2) · Filesystem

    Refuse to follow any symlink in any component (ELOOP). Implies RESOLVE_NO_MAGICLINKS.

  • RESOLVE_NO_XDEVopenat2(2) · Filesystem

    Refuse to cross mount points, bind mounts included (EXDEV).

  • RLIMIT_MEMLOCKmemfd_secret(2) · Memory

    Mappings are locked like mlock(2) and count against RLIMIT_MEMLOCK; pages never swap.

  • RLIMIT_MEMLOCKmlock(2) · Memory

    Caps how much an unprivileged process can lock (since Linux 2.6.9). CAP_IPC_LOCK bypasses it.

  • rpathpledge(2) · Sandboxing

    Path traversal, reading struct stat, and opening files for reading.

  • RSEQ_FLAG_UNREGISTERrseq(2) · Scheduling

    Unregister the previously registered rseq struct for this thread.

  • RWF_APPENDpreadv2 / pwritev2(2) · Filesystem · Linux 4.16

    Atomic append regardless of fd flags: seek-to-end and write are atomic with respect to other O_APPEND/RWF_APPEND writers. The offset argument is ignored.

  • RWF_DSYNCpreadv2 / pwritev2(2) · Filesystem

    Per-call O_DSYNC: data and enough metadata for recovery are written to stable storage before the call returns. Does not affect other writes on the same fd.

  • RWF_HIPRIpreadv2 / pwritev2(2) · Filesystem

    Request polled I/O delivery instead of interrupt-driven completion. Reduces tail latency on NVMe devices with polled queues (/sys/block/.../queue/io_poll). Degrades silently to normal I/O on unsupported devices. Most effective with O_DIRECT.

  • RWF_NOWAITpreadv2 / pwritev2(2) · Filesystem · Linux 4.14

    Return EAGAIN immediately if the operation would block (page cache miss, lock contention). Only effective on regular files and some block devices; returns EOPNOTSUPP on pipes/sockets.

  • RWF_SYNCpreadv2 / pwritev2(2) · Filesystem

    Per-call O_SYNC: all data and all metadata are written to stable storage before return. Stricter than RWF_DSYNC.

S

  • SCHED_DEADLINEsched_setattr(2) · Scheduling

    Earliest-deadline-first policy. sched_runtime, sched_deadline and sched_period (nanoseconds) must satisfy runtime <= deadline <= period. Admission control rejects reservations the CPUs cannot honor.

  • SCHED_FLAG_DL_OVERRUNsched_setattr(2) · Scheduling

    Deliver SIGXCPU when the task overruns its runtime.

  • SCHED_FLAG_RECLAIMsched_setattr(2) · Scheduling

    Let a deadline task reclaim bandwidth other deadline tasks reserved but did not use.

  • SCHED_FLAG_RESET_ON_FORKsched_setattr(2) · Scheduling

    Children revert to SCHED_OTHER. Without it, fork(2) from a SCHED_DEADLINE thread fails with EAGAIN.

  • SCM_MAX_FDSCM_RIGHTS · IPC

    Max fds per message: 253 (255 before Linux 2.6.38). Exceeding it makes sendmsg(2) fail with EINVAL.

  • scopedlandlock_create_ruleset(2) · Sandboxing

    Scope flags restricting IPC (abstract UNIX sockets, signals) outside the Landlock domain.

  • Securebits: stop UID 0 getting caps on exec; KEEP_CAPS keeps permitted (not effective) caps across a UID switch.

  • SECCOMP_FILTER_FLAG_LOGseccomp(2) · Sandboxing · Linux 4.14

    Log all filter actions except SECCOMP_RET_ALLOW.

  • SECCOMP_FILTER_FLAG_NEW_LISTENERseccomp(2) · Sandboxing · Linux 5.0

    Return a user-space notification fd for SECCOMP_RET_USER_NOTIF.

  • SECCOMP_FILTER_FLAG_TSYNCseccomp(2) · Sandboxing

    Synchronize all threads of the process to the new filter tree.

  • SECCOMP_GET_ACTION_AVAILseccomp(2) · Sandboxing · Linux 4.14

    Test whether the kernel supports a given filter return action.

  • SECCOMP_RET_ERRNOseccomp(2) · Sandboxing

    Filter action: skip the syscall and return the low 16 data bits as errno.

  • SECCOMP_RET_KILL_PROCESSseccomp(2) · Sandboxing · Linux 4.14

    Filter action: kill the whole process with a core dump; the syscall is not executed.

  • SECCOMP_RET_LOGseccomp(2) · Sandboxing · Linux 4.14

    Filter action: allow the syscall but log it.

  • SECCOMP_RET_USER_NOTIFseccomp(2) · Sandboxing · Linux 5.0

    Filter action: hand the decision to a user-space supervisor via the listener fd.

  • SECCOMP_SET_MODE_FILTERseccomp(2) · Sandboxing

    Install a classic BPF program (struct sock_fprog) run on every syscall. Needs no_new_privs or CAP_SYS_ADMIN.

  • SECCOMP_SET_MODE_STRICTseccomp(2) · Sandboxing

    Allow only read(2), write(2), _exit(2) and sigreturn(2); anything else kills the caller.

  • secretmem.enable=ymemfd_secret(2) · Memory

    Before Linux 6.5 the call was disabled by default unless the kernel was booted with this parameter.

  • sendfd / recvfdpledge(2) · Sandboxing

    Send or receive file descriptors over sendmsg/recvmsg. Directory fds may not be passed.

  • set_tid / set_tid_sizeclone3(2) · Processes · Linux 5.5

    Assign a specific TID in each namespace level listed in args.set_tid. Used by checkpoint/restore tools (CRIU). Requires CAP_SYS_ADMIN in each namespace.

  • SFD_CLOEXECsignalfd(2) · Events · Linux 2.6.27

    Set close-on-exec on the new descriptor.

  • SFD_NONBLOCKsignalfd(2) · Events · Linux 2.6.27

    Set O_NONBLOCK on the new descriptor.

  • SO_ATTACH_REUSEPORT_CBPFSO_REUSEPORT · I/O

    Attach a classic BPF program returning the index (0..N-1) of the socket that gets the packet.

  • SO_ATTACH_REUSEPORT_EBPFSO_REUSEPORT · I/O

    Attach an eBPF program to pick the socket. UDP support since Linux 4.5, TCP since Linux 4.6.

  • SO_REUSEPORTSO_REUSEPORT · I/O

    Must be set on every socket, first included, before bind(2); all binders need the same effective UID.

  • SPLICE_F_GIFTsplice(2) · I/O

    Unused for splice(); see vmsplice(2).

  • SPLICE_F_GIFTtee(2) · I/O

    Unused for tee(); see vmsplice(2).

  • SPLICE_F_GIFTvmsplice(2) · IPC

    Transfer page ownership to the kernel; no copy is made. The caller must never modify those pages again. Buffers must be page-aligned and lengths page-size multiples, or the kernel silently falls back to copying.

  • SPLICE_F_MOREsplice(2) · I/O

    More data coming; useful when fd_out is a socket (like MSG_MORE / TCP_CORK).

  • SPLICE_F_MOREtee(2) · I/O

    Currently has no effect for tee(); may be implemented in future.

  • SPLICE_F_MOVEsplice(2) · I/O

    Hint to move pages instead of copying. A no-op since Linux 2.6.21, but still permitted.

  • SPLICE_F_MOVEtee(2) · I/O

    Currently has no effect for tee().

  • SPLICE_F_MOVEvmsplice(2) · IPC

    Hint to move rather than copy kernel pages when the pipe data is later read. Has been a no-op since Linux 2.6.21 in most code paths; harmless to pass.

  • SPLICE_F_NONBLOCKsplice(2) · I/O

    Make the pipe side nonblocking; the other fd may still block unless it has O_NONBLOCK.

  • SPLICE_F_NONBLOCKtee(2) · I/O

    Do not block on I/O; see splice(2).

  • SPLICE_F_NONBLOCKvmsplice(2) · IPC

    Do not block on the pipe; fail with EAGAIN if the pipe buffer is full.

  • STATX_ALLstatx(2) · Filesystem

    Mask: STATX_BASIC_STATS | STATX_BTIME. Deprecated; don't use it.

  • STATX_BASIC_STATSstatx(2) · Filesystem

    Mask: everything classic stat(2) returns (type, mode, nlink, uid, gid, times, ino, size, blocks).

  • STATX_BTIMEstatx(2) · Filesystem

    Mask: request stx_btime, the file creation time. Check stx_mask; not every filesystem has it.

  • STATX_DIOALIGNstatx(2) · Filesystem · Linux 6.1

    Mask: request direct I/O alignment limits; support varies by filesystem.

  • STATX_MNT_IDstatx(2) · Filesystem · Linux 5.8

    Mask: request stx_mnt_id, the ID of the mount containing the file.

  • STATX_MNT_ID_UNIQUEstatx(2) · Filesystem · Linux 6.8

    Mask: request a unique (non-reused) mount ID in stx_mnt_id.

  • stdiopledge(2) · Sandboxing

    Baseline: I/O on already-open fds, memory management, clocks, process info. Almost always needed.

  • struct cachestat_rangecachestat(2) · Filesystem

    off: start byte; len: length in bytes (0 = to EOF).

  • struct clone_args sizeclone3(2) · Processes

    Third argument to clone3; the version number. Zero-fill the struct and pass sizeof(struct clone_args). Unknown non-zero fields → E2BIG.

  • struct open_howopenat2(2) · Filesystem

    Versioned argument struct: flags, mode, resolve. Pass sizeof(struct open_how) as size.

  • struct rseq_cs.abort_iprseq(2) · Scheduling

    Instruction to jump to on abort. The 4 bytes immediately before this address must equal the sig passed to sys_rseq.

  • Define the critical-section code window [start_ip, start_ip + post_commit_offset). Preemption inside this window triggers the abort.

  • struct rseq.cpu_idrseq(2) · Scheduling

    Kernel-maintained current CPU ID; RSEQ_CPU_ID_UNINITIALIZED (-1) before registration, RSEQ_CPU_ID_REGISTRATION_FAILED (-2) on failure.

  • struct rseq.rseq_csrseq(2) · Scheduling

    Pointer to an active struct rseq_cs critical section descriptor. If set when the kernel migrates or preempts the thread, execution jumps to rseq_cs.abort_ip and rseq_cs is cleared.

  • struct signalfd_siginfosignalfd(2) · Events

    What read(2) returns per signal: ssi_signo, ssi_pid, ssi_uid, ssi_code and more.

  • SYNC_FILE_RANGE_WAIT_AFTERsync_file_range(2) · I/O

    Wait for writeback of all pages in the range after issuing it. Combining WAIT_BEFORE|WRITE|WAIT_AFTER is the full synchronous form.

  • SYNC_FILE_RANGE_WAIT_BEFOREsync_file_range(2) · I/O

    Wait for writeback of pages already queued before this call before proceeding.

  • SYNC_FILE_RANGE_WRITEsync_file_range(2) · I/O

    Start async writeback for dirty pages in the range. Returns immediately; use with WAIT_AFTER to collect later.

T

  • targetfdpidfd_getfd(2) · File descriptors

    The descriptor number in the target process to duplicate; the copy shares its open file description.

  • TFD_CLOEXECtimerfd_create(2) · Events · Linux 2.6.27

    Set close-on-exec on the new descriptor.

  • TFD_IOC_SET_TICKStimerfd_create(2) · Events · Linux 3.17

    ioctl(2) to set the expiration count; for checkpoint/restore.

  • TFD_NONBLOCKtimerfd_create(2) · Events · Linux 2.6.27

    Set O_NONBLOCK on the new descriptor.

  • TFD_TIMER_ABSTIMEtimerfd_create(2) · Events

    timerfd_settime(): treat it_value as an absolute time on the timer's clock.

  • TFD_TIMER_CANCEL_ON_SETtimerfd_create(2) · Events

    With ABSTIME on a REALTIME clock: read(2) fails with ECANCELED if the clock jumps.

U

  • UFFD_EVENT_FORK / REMAP / REMOVE / UNMAPuserfaultfd(2) · Memory · Linux 4.11

    Non-page-fault events about VM layout changes, enabled via UFFDIO_API features.

  • UFFD_USER_MODE_ONLYuserfaultfd(2) · Memory · Linux 5.11

    Only handle faults originating in user space; kernel-originated faults get SIGBUS.

  • UFFDIO_REGISTER_MODE_MINORuserfaultfd(2) · Memory · Linux 5.13

    Notify on minor faults (page in page cache, no PTE); resolve with UFFDIO_CONTINUE.

  • UFFDIO_REGISTER_MODE_MISSINGuserfaultfd(2) · Memory · Linux 4.10

    Notify on access to a missing page; resolve with UFFDIO_COPY or UFFDIO_ZEROPAGE.

  • UFFDIO_REGISTER_MODE_RWPuserfaultfd(2) · Memory · Linux 7.2

    Notify on any read or write to a present page; can't be combined with MODE_WP.

  • UFFDIO_REGISTER_MODE_WPuserfaultfd(2) · Memory · Linux 5.7

    Notify on writes to write-protected pages; resolve with UFFDIO_WRITEPROTECT.

  • unveil(NULL, NULL)unveil(2) · Sandboxing

    Lock: no further unveil() calls allowed. A pledge without the "unveil" promise also locks it.

  • userns_fdmount_setattr(2) · Filesystem

    If non-zero, shift UID/GID ownership on the mount to map into the specified user namespace. Requires CAP_SYS_ADMIN in that namespace.

W

  • wunveil(2) · Sandboxing

    Path available for writes (pledge chown, fattr, wpath); also allows connect(2) to AF_UNIX sockets.

  • waitid(P_PIDFD)pidfd_open(2) · Processes

    If the pidfd refers to your child, wait on it by fd instead of by PID.

  • wpathpledge(2) · Sandboxing

    Like rpath, but files can be opened for writing.

X

  • xunveil(2) · Sandboxing

    Path available for execute; corresponds to the pledge "exec" promise.