Struct linux_api::syscall::SyscallNum

source ·
pub struct SyscallNum(/* private fields */);
Expand description

Linux x86-64 syscall number.

Implementations§

source§

impl SyscallNum

source

pub const NR_read: Self = _

source

pub const NR_write: Self = _

source

pub const NR_open: Self = _

source

pub const NR_close: Self = _

source

pub const NR_stat: Self = _

source

pub const NR_fstat: Self = _

source

pub const NR_lstat: Self = _

source

pub const NR_poll: Self = _

source

pub const NR_lseek: Self = _

source

pub const NR_mmap: Self = _

source

pub const NR_mprotect: Self = _

source

pub const NR_munmap: Self = _

source

pub const NR_brk: Self = _

source

pub const NR_rt_sigaction: Self = _

source

pub const NR_rt_sigprocmask: Self = _

source

pub const NR_rt_sigreturn: Self = _

source

pub const NR_ioctl: Self = _

source

pub const NR_pread64: Self = _

source

pub const NR_pwrite64: Self = _

source

pub const NR_readv: Self = _

source

pub const NR_writev: Self = _

source

pub const NR_access: Self = _

source

pub const NR_pipe: Self = _

source

pub const NR_select: Self = _

source

pub const NR_sched_yield: Self = _

source

pub const NR_mremap: Self = _

source

pub const NR_msync: Self = _

source

pub const NR_mincore: Self = _

source

pub const NR_madvise: Self = _

source

pub const NR_shmget: Self = _

source

pub const NR_shmat: Self = _

source

pub const NR_shmctl: Self = _

source

pub const NR_dup: Self = _

source

pub const NR_dup2: Self = _

source

pub const NR_pause: Self = _

source

pub const NR_nanosleep: Self = _

source

pub const NR_getitimer: Self = _

source

pub const NR_alarm: Self = _

source

pub const NR_setitimer: Self = _

source

pub const NR_getpid: Self = _

source

pub const NR_sendfile: Self = _

source

pub const NR_socket: Self = _

source

pub const NR_connect: Self = _

source

pub const NR_accept: Self = _

source

pub const NR_sendto: Self = _

source

pub const NR_recvfrom: Self = _

source

pub const NR_sendmsg: Self = _

source

pub const NR_recvmsg: Self = _

source

pub const NR_shutdown: Self = _

source

pub const NR_bind: Self = _

source

pub const NR_listen: Self = _

source

pub const NR_getsockname: Self = _

source

pub const NR_getpeername: Self = _

source

pub const NR_socketpair: Self = _

source

pub const NR_setsockopt: Self = _

source

pub const NR_getsockopt: Self = _

source

pub const NR_clone: Self = _

source

pub const NR_fork: Self = _

source

pub const NR_vfork: Self = _

source

pub const NR_execve: Self = _

source

pub const NR_exit: Self = _

source

pub const NR_wait4: Self = _

source

pub const NR_kill: Self = _

source

pub const NR_uname: Self = _

source

pub const NR_semget: Self = _

source

pub const NR_semop: Self = _

source

pub const NR_semctl: Self = _

source

pub const NR_shmdt: Self = _

source

pub const NR_msgget: Self = _

source

pub const NR_msgsnd: Self = _

source

pub const NR_msgrcv: Self = _

source

pub const NR_msgctl: Self = _

source

pub const NR_fcntl: Self = _

source

pub const NR_flock: Self = _

source

pub const NR_fsync: Self = _

source

pub const NR_fdatasync: Self = _

source

pub const NR_truncate: Self = _

source

pub const NR_ftruncate: Self = _

source

pub const NR_getdents: Self = _

source

pub const NR_getcwd: Self = _

source

pub const NR_chdir: Self = _

source

pub const NR_fchdir: Self = _

source

pub const NR_rename: Self = _

source

pub const NR_mkdir: Self = _

source

pub const NR_rmdir: Self = _

source

pub const NR_creat: Self = _

source

pub const NR_chmod: Self = _

source

pub const NR_fchmod: Self = _

source

pub const NR_chown: Self = _

source

pub const NR_fchown: Self = _

source

pub const NR_lchown: Self = _

source

pub const NR_umask: Self = _

source

pub const NR_gettimeofday: Self = _

source

pub const NR_getrlimit: Self = _

source

pub const NR_getrusage: Self = _

source

pub const NR_sysinfo: Self = _

source

pub const NR_times: Self = _

source

pub const NR_ptrace: Self = _

source

pub const NR_getuid: Self = _

source

pub const NR_syslog: Self = _

source

pub const NR_getgid: Self = _

source

pub const NR_setuid: Self = _

source

pub const NR_setgid: Self = _

source

pub const NR_geteuid: Self = _

source

pub const NR_getegid: Self = _

source

pub const NR_setpgid: Self = _

source

pub const NR_getppid: Self = _

source

pub const NR_getpgrp: Self = _

source

pub const NR_setsid: Self = _

source

pub const NR_setreuid: Self = _

source

pub const NR_setregid: Self = _

source

pub const NR_getgroups: Self = _

source

pub const NR_setgroups: Self = _

source

pub const NR_setresuid: Self = _

source

pub const NR_getresuid: Self = _

source

pub const NR_setresgid: Self = _

source

pub const NR_getresgid: Self = _

source

pub const NR_getpgid: Self = _

source

pub const NR_setfsuid: Self = _

source

pub const NR_setfsgid: Self = _

source

pub const NR_getsid: Self = _

source

pub const NR_capget: Self = _

source

pub const NR_capset: Self = _

source

pub const NR_rt_sigpending: Self = _

source

pub const NR_rt_sigtimedwait: Self = _

source

pub const NR_rt_sigqueueinfo: Self = _

source

pub const NR_rt_sigsuspend: Self = _

source

pub const NR_sigaltstack: Self = _

source

pub const NR_utime: Self = _

source

pub const NR_mknod: Self = _

source

pub const NR_uselib: Self = _

source

pub const NR_personality: Self = _

source

pub const NR_ustat: Self = _

source

pub const NR_statfs: Self = _

source

pub const NR_fstatfs: Self = _

source

pub const NR_sysfs: Self = _

source

pub const NR_getpriority: Self = _

source

pub const NR_setpriority: Self = _

source

pub const NR_sched_setparam: Self = _

source

pub const NR_sched_getparam: Self = _

source

pub const NR_sched_setscheduler: Self = _

source

pub const NR_sched_getscheduler: Self = _

source

pub const NR_sched_get_priority_max: Self = _

source

pub const NR_sched_get_priority_min: Self = _

source

pub const NR_sched_rr_get_interval: Self = _

source

pub const NR_mlock: Self = _

source

pub const NR_munlock: Self = _

source

pub const NR_mlockall: Self = _

source

pub const NR_munlockall: Self = _

source

pub const NR_vhangup: Self = _

source

pub const NR_modify_ldt: Self = _

source

pub const NR_pivot_root: Self = _

source

pub const NR__sysctl: Self = _

source

pub const NR_prctl: Self = _

source

pub const NR_arch_prctl: Self = _

source

pub const NR_adjtimex: Self = _

source

pub const NR_setrlimit: Self = _

source

pub const NR_chroot: Self = _

source

pub const NR_sync: Self = _

source

pub const NR_acct: Self = _

source

pub const NR_settimeofday: Self = _

source

pub const NR_mount: Self = _

source

pub const NR_umount2: Self = _

source

pub const NR_swapon: Self = _

source

pub const NR_swapoff: Self = _

source

pub const NR_reboot: Self = _

source

pub const NR_sethostname: Self = _

source

pub const NR_setdomainname: Self = _

source

pub const NR_iopl: Self = _

source

pub const NR_ioperm: Self = _

source

pub const NR_create_module: Self = _

source

pub const NR_init_module: Self = _

source

pub const NR_delete_module: Self = _

source

pub const NR_get_kernel_syms: Self = _

source

pub const NR_query_module: Self = _

source

pub const NR_quotactl: Self = _

source

pub const NR_nfsservctl: Self = _

source

pub const NR_getpmsg: Self = _

source

pub const NR_putpmsg: Self = _

source

pub const NR_afs_syscall: Self = _

source

pub const NR_tuxcall: Self = _

source

pub const NR_security: Self = _

source

pub const NR_gettid: Self = _

source

pub const NR_readahead: Self = _

source

pub const NR_setxattr: Self = _

source

pub const NR_lsetxattr: Self = _

source

pub const NR_fsetxattr: Self = _

source

pub const NR_getxattr: Self = _

source

pub const NR_lgetxattr: Self = _

source

pub const NR_fgetxattr: Self = _

source

pub const NR_listxattr: Self = _

source

pub const NR_llistxattr: Self = _

source

pub const NR_flistxattr: Self = _

source

pub const NR_removexattr: Self = _

source

pub const NR_lremovexattr: Self = _

source

pub const NR_fremovexattr: Self = _

source

pub const NR_tkill: Self = _

source

pub const NR_time: Self = _

source

pub const NR_futex: Self = _

source

pub const NR_sched_setaffinity: Self = _

source

pub const NR_sched_getaffinity: Self = _

source

pub const NR_set_thread_area: Self = _

source

pub const NR_io_setup: Self = _

source

pub const NR_io_destroy: Self = _

source

pub const NR_io_getevents: Self = _

source

pub const NR_io_submit: Self = _

source

pub const NR_io_cancel: Self = _

source

pub const NR_get_thread_area: Self = _

source

pub const NR_lookup_dcookie: Self = _

source

pub const NR_epoll_create: Self = _

source

pub const NR_epoll_ctl_old: Self = _

source

pub const NR_epoll_wait_old: Self = _

source

pub const NR_remap_file_pages: Self = _

source

pub const NR_getdents64: Self = _

source

pub const NR_set_tid_address: Self = _

source

pub const NR_restart_syscall: Self = _

source

pub const NR_semtimedop: Self = _

source

pub const NR_fadvise64: Self = _

source

pub const NR_timer_create: Self = _

source

pub const NR_timer_settime: Self = _

source

pub const NR_timer_gettime: Self = _

source

pub const NR_timer_getoverrun: Self = _

source

pub const NR_timer_delete: Self = _

source

pub const NR_clock_settime: Self = _

source

pub const NR_clock_gettime: Self = _

source

pub const NR_clock_getres: Self = _

source

pub const NR_clock_nanosleep: Self = _

source

pub const NR_exit_group: Self = _

source

pub const NR_epoll_wait: Self = _

source

pub const NR_epoll_ctl: Self = _

source

pub const NR_tgkill: Self = _

source

pub const NR_utimes: Self = _

source

pub const NR_vserver: Self = _

source

pub const NR_mbind: Self = _

source

pub const NR_set_mempolicy: Self = _

source

pub const NR_get_mempolicy: Self = _

source

pub const NR_mq_open: Self = _

source

pub const NR_mq_timedsend: Self = _

source

pub const NR_mq_timedreceive: Self = _

source

pub const NR_mq_notify: Self = _

source

pub const NR_mq_getsetattr: Self = _

source

pub const NR_kexec_load: Self = _

source

pub const NR_waitid: Self = _

source

pub const NR_add_key: Self = _

source

pub const NR_request_key: Self = _

source

pub const NR_keyctl: Self = _

source

pub const NR_ioprio_set: Self = _

source

pub const NR_ioprio_get: Self = _

source

pub const NR_inotify_init: Self = _

source

pub const NR_inotify_add_watch: Self = _

source

pub const NR_inotify_rm_watch: Self = _

source

pub const NR_migrate_pages: Self = _

source

pub const NR_openat: Self = _

source

pub const NR_mkdirat: Self = _

source

pub const NR_mknodat: Self = _

source

pub const NR_fchownat: Self = _

source

pub const NR_futimesat: Self = _

source

pub const NR_newfstatat: Self = _

source

pub const NR_unlinkat: Self = _

source

pub const NR_renameat: Self = _

source

pub const NR_linkat: Self = _

source

pub const NR_symlinkat: Self = _

source

pub const NR_readlinkat: Self = _

source

pub const NR_fchmodat: Self = _

source

pub const NR_faccessat: Self = _

source

pub const NR_pselect6: Self = _

source

pub const NR_ppoll: Self = _

source

pub const NR_unshare: Self = _

source

pub const NR_set_robust_list: Self = _

source

pub const NR_get_robust_list: Self = _

source

pub const NR_splice: Self = _

source

pub const NR_tee: Self = _

source

pub const NR_sync_file_range: Self = _

source

pub const NR_vmsplice: Self = _

source

pub const NR_move_pages: Self = _

source

pub const NR_utimensat: Self = _

source

pub const NR_epoll_pwait: Self = _

source

pub const NR_signalfd: Self = _

source

pub const NR_timerfd_create: Self = _

source

pub const NR_eventfd: Self = _

source

pub const NR_fallocate: Self = _

source

pub const NR_timerfd_settime: Self = _

source

pub const NR_timerfd_gettime: Self = _

source

pub const NR_accept4: Self = _

source

pub const NR_signalfd4: Self = _

source

pub const NR_eventfd2: Self = _

source

pub const NR_epoll_create1: Self = _

source

pub const NR_dup3: Self = _

source

pub const NR_pipe2: Self = _

source

pub const NR_inotify_init1: Self = _

source

pub const NR_preadv: Self = _

source

pub const NR_pwritev: Self = _

source

pub const NR_rt_tgsigqueueinfo: Self = _

source

pub const NR_perf_event_open: Self = _

source

pub const NR_recvmmsg: Self = _

source

pub const NR_fanotify_init: Self = _

source

pub const NR_fanotify_mark: Self = _

source

pub const NR_prlimit64: Self = _

source

pub const NR_name_to_handle_at: Self = _

source

pub const NR_open_by_handle_at: Self = _

source

pub const NR_clock_adjtime: Self = _

source

pub const NR_syncfs: Self = _

source

pub const NR_sendmmsg: Self = _

source

pub const NR_setns: Self = _

source

pub const NR_getcpu: Self = _

source

pub const NR_process_vm_readv: Self = _

source

pub const NR_process_vm_writev: Self = _

source

pub const NR_kcmp: Self = _

source

pub const NR_finit_module: Self = _

source

pub const NR_sched_setattr: Self = _

source

pub const NR_sched_getattr: Self = _

source

pub const NR_renameat2: Self = _

source

pub const NR_seccomp: Self = _

source

pub const NR_getrandom: Self = _

source

pub const NR_memfd_create: Self = _

source

pub const NR_kexec_file_load: Self = _

source

pub const NR_bpf: Self = _

source

pub const NR_execveat: Self = _

source

pub const NR_userfaultfd: Self = _

source

pub const NR_membarrier: Self = _

source

pub const NR_mlock2: Self = _

source

pub const NR_copy_file_range: Self = _

source

pub const NR_preadv2: Self = _

source

pub const NR_pwritev2: Self = _

source

pub const NR_pkey_mprotect: Self = _

source

pub const NR_pkey_alloc: Self = _

source

pub const NR_pkey_free: Self = _

source

pub const NR_statx: Self = _

source

pub const NR_io_pgetevents: Self = _

source

pub const NR_rseq: Self = _

source

pub const NR_pidfd_send_signal: Self = _

source

pub const NR_io_uring_setup: Self = _

source

pub const NR_io_uring_enter: Self = _

source

pub const NR_io_uring_register: Self = _

source

pub const NR_open_tree: Self = _

source

pub const NR_move_mount: Self = _

source

pub const NR_fsopen: Self = _

source

pub const NR_fsconfig: Self = _

source

pub const NR_fsmount: Self = _

source

pub const NR_fspick: Self = _

source

pub const NR_pidfd_open: Self = _

source

pub const NR_clone3: Self = _

source

pub const NR_close_range: Self = _

source

pub const NR_openat2: Self = _

source

pub const NR_pidfd_getfd: Self = _

source

pub const NR_faccessat2: Self = _

source

pub const NR_process_madvise: Self = _

source

pub const NR_epoll_pwait2: Self = _

source

pub const NR_mount_setattr: Self = _

source

pub const NR_quotactl_fd: Self = _

source

pub const NR_landlock_create_ruleset: Self = _

source

pub const NR_landlock_add_rule: Self = _

source

pub const NR_landlock_restrict_self: Self = _

source

pub const NR_memfd_secret: Self = _

source

pub const NR_process_mrelease: Self = _

source

pub const NR_futex_waitv: Self = _

source

pub const NR_set_mempolicy_home_node: Self = _

source

pub const NR_cachestat: Self = _

source

pub const NR_fchmodat2: Self = _

source

pub const NR_map_shadow_stack: Self = _

source

pub const NR_futex_wake: Self = _

source

pub const NR_futex_wait: Self = _

source

pub const NR_futex_requeue: Self = _

source

pub const NR_statmount: Self = _

source

pub const NR_listmount: Self = _

source

pub const NR_lsm_get_self_attr: Self = _

source

pub const NR_lsm_set_self_attr: Self = _

source

pub const NR_lsm_list_modules: Self = _

source

pub const NR_mseal: Self = _

source

pub const fn new(val: u32) -> Self

source

pub const fn val(&self) -> u32

source

pub const fn to_str(&self) -> Option<&'static str>

Trait Implementations§

source§

impl Clone for SyscallNum

source§

fn clone(&self) -> SyscallNum

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SyscallNum

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for SyscallNum

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<SyscallNum> for u32

source§

fn from(val: SyscallNum) -> Self

Converts to this type from the input type.
source§

impl From<u32> for SyscallNum

source§

fn from(val: u32) -> Self

Converts to this type from the input type.
source§

impl Hash for SyscallNum

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for SyscallNum

source§

fn eq(&self, other: &SyscallNum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SyscallNum

source§

impl Eq for SyscallNum

source§

impl StructuralPartialEq for SyscallNum

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.