Structs§
- clone_
args - struct clone_args - arguments for the clone3 syscall @flags: Flags for the new process as listed above. All flags are valid except for CSIGNAL and CLONE_DETACHED. @pidfd: If CLONE_PIDFD is set, a pidfd will be returned in this argument. @child_tid: If CLONE_CHILD_SETTID is set, the TID of the child process will be returned in the child’s memory. @parent_tid: If CLONE_PARENT_SETTID is set, the TID of the child process will be returned in the parent’s memory. @exit_signal: The exit_signal the parent process will be sent when the child exits. @stack: Specify the location of the stack for the child process. Note, @stack is expected to point to the lowest address. The stack direction will be determined by the kernel and set up appropriately based on @stack_size. @stack_size: The size of the stack for the child process. @tls: If CLONE_SETTLS is set, the tls descriptor is set to tls. @set_tid: Pointer to an array of type *pid_t. The size of the array is defined using @set_tid_size. This array is used to select PIDs/TIDs for newly created processes. The first element in this defines the PID in the most nested PID namespace. Each additional element in the array defines the PID in the parent PID namespace of the original PID namespace. If the array has less entries than the number of currently nested PID namespaces only the PIDs in the corresponding namespaces are set. @set_tid_size: This defines the size of the array referenced in @set_tid. This cannot be larger than the kernel’s limit of nested PID namespaces. @cgroup: If CLONE_INTO_CGROUP is specified set this to a file descriptor for the cgroup.
Constants§
- CLONE_
ARGS_ SIZE_ VER0 - CLONE_
ARGS_ SIZE_ VER1 - CLONE_
ARGS_ SIZE_ VER2 - CLONE_
CHILD_ CLEARTID - CLONE_
CHILD_ SETTID - CLONE_
CLEAR_ SIGHAND - CLONE_
DETACHED - CLONE_
FILES - CLONE_
FS - CLONE_
INTO_ CGROUP - CLONE_
IO - CLONE_
NEWCGROUP - CLONE_
NEWIPC - CLONE_
NEWNET - CLONE_
NEWNS - CLONE_
NEWPID - CLONE_
NEWTIME - CLONE_
NEWUSER - CLONE_
NEWUTS - CLONE_
PARENT - CLONE_
PARENT_ SETTID - CLONE_
PIDFD - CLONE_
PTRACE - CLONE_
SETTLS - CLONE_
SIGHAND - CLONE_
SYSVSEM - CLONE_
THREAD - CLONE_
UNTRACED - CLONE_
VFORK - CLONE_
VM