Skip to main content

SyscallId

Struct SyscallId 

Source
#[repr(transparent)]
pub struct SyscallId(pub usize);
Expand description

系统调用号。

实现为包装类型,在不损失扩展性的情况下实现类型安全性。

Tuple Fields§

§0: usize

Implementations§

§

impl SyscallId

pub const IO_SETUP: Self

pub const IO_DESTROY: Self

pub const IO_SUBMIT: Self

pub const IO_CANCEL: Self

pub const IO_GETEVENTS: Self

pub const SETXATTR: Self

pub const LSETXATTR: Self

pub const FSETXATTR: Self

pub const GETXATTR: Self

pub const LGETXATTR: Self

pub const FGETXATTR: Self

pub const LISTXATTR: Self

pub const LLISTXATTR: Self

pub const FLISTXATTR: Self

pub const REMOVEXATTR: Self

pub const LREMOVEXATTR: Self

pub const FREMOVEXATTR: Self

pub const GETCWD: Self

pub const LOOKUP_DCOOKIE: Self

pub const EVENTFD2: Self

pub const EPOLL_CREATE1: Self

pub const EPOLL_CTL: Self

pub const EPOLL_PWAIT: Self

pub const DUP: Self

pub const DUP3: Self

pub const FCNTL: Self

pub const INOTIFY_INIT1: Self

pub const INOTIFY_ADD_WATCH: Self

pub const INOTIFY_RM_WATCH: Self

pub const IOCTL: Self

pub const IOPRIO_SET: Self

pub const IOPRIO_GET: Self

pub const FLOCK: Self

pub const MKNODAT: Self

pub const MKDIRAT: Self

pub const UNLINKAT: Self

pub const SYMLINKAT: Self

pub const LINKAT: Self

pub const UMOUNT2: Self

pub const MOUNT: Self

pub const PIVOT_ROOT: Self

pub const NFSSERVCTL: Self

pub const STATFS: Self

pub const FSTATFS: Self

pub const TRUNCATE: Self

pub const FTRUNCATE: Self

pub const FALLOCATE: Self

pub const FACCESSAT: Self

pub const CHDIR: Self

pub const FCHDIR: Self

pub const CHROOT: Self

pub const FCHMOD: Self

pub const FCHMODAT: Self

pub const FCHOWNAT: Self

pub const FCHOWN: Self

pub const OPENAT: Self

pub const CLOSE: Self

pub const VHANGUP: Self

pub const PIPE2: Self

pub const QUOTACTL: Self

pub const GETDENTS64: Self

pub const LSEEK: Self

pub const READ: Self

pub const WRITE: Self

pub const READV: Self

pub const WRITEV: Self

pub const PREAD64: Self

pub const PWRITE64: Self

pub const PREADV: Self

pub const PWRITEV: Self

pub const SENDFILE: Self

pub const PSELECT6: Self

pub const PPOLL: Self

pub const SIGNALFD4: Self

pub const VMSPLICE: Self

pub const SPLICE: Self

pub const TEE: Self

pub const READLINKAT: Self

pub const NEWFSTATAT: Self

pub const FSTAT: Self

pub const SYNC: Self

pub const FSYNC: Self

pub const FDATASYNC: Self

pub const SYNC_FILE_RANGE: Self

pub const TIMERFD_CREATE: Self

pub const TIMERFD_SETTIME: Self

pub const TIMERFD_GETTIME: Self

pub const UTIMENSAT: Self

pub const ACCT: Self

pub const CAPGET: Self

pub const CAPSET: Self

pub const PERSONALITY: Self

pub const EXIT: Self

pub const EXIT_GROUP: Self

pub const WAITID: Self

pub const SET_TID_ADDRESS: Self

pub const UNSHARE: Self

pub const FUTEX: Self

pub const SET_ROBUST_LIST: Self

pub const GET_ROBUST_LIST: Self

pub const NANOSLEEP: Self

pub const GETITIMER: Self

pub const SETITIMER: Self

pub const KEXEC_LOAD: Self

pub const INIT_MODULE: Self

pub const DELETE_MODULE: Self

pub const TIMER_CREATE: Self

pub const TIMER_GETTIME: Self

pub const TIMER_GETOVERRUN: Self

pub const TIMER_SETTIME: Self

pub const TIMER_DELETE: Self

pub const CLOCK_SETTIME: Self

pub const CLOCK_GETTIME: Self

pub const CLOCK_GETRES: Self

pub const CLOCK_NANOSLEEP: Self

pub const SYSLOG: Self

pub const PTRACE: Self

pub const SCHED_SETPARAM: Self

pub const SCHED_SETSCHEDULER: Self

pub const SCHED_GETSCHEDULER: Self

pub const SCHED_GETPARAM: Self

pub const SCHED_SETAFFINITY: Self

pub const SCHED_GETAFFINITY: Self

pub const SCHED_YIELD: Self

pub const SCHED_GET_PRIORITY_MAX: Self

pub const SCHED_GET_PRIORITY_MIN: Self

pub const SCHED_RR_GET_INTERVAL: Self

pub const RESTART_SYSCALL: Self

pub const KILL: Self

pub const TKILL: Self

pub const TGKILL: Self

pub const SIGALTSTACK: Self

pub const RT_SIGSUSPEND: Self

pub const RT_SIGACTION: Self

pub const RT_SIGPROCMASK: Self

pub const RT_SIGPENDING: Self

pub const RT_SIGTIMEDWAIT: Self

pub const RT_SIGQUEUEINFO: Self

pub const RT_SIGRETURN: Self

pub const SETPRIORITY: Self

pub const GETPRIORITY: Self

pub const REBOOT: Self

pub const SETREGID: Self

pub const SETGID: Self

pub const SETREUID: Self

pub const SETUID: Self

pub const SETRESUID: Self

pub const GETRESUID: Self

pub const SETRESGID: Self

pub const GETRESGID: Self

pub const SETFSUID: Self

pub const SETFSGID: Self

pub const TIMES: Self

pub const SETPGID: Self

pub const GETPGID: Self

pub const GETSID: Self

pub const SETSID: Self

pub const GETGROUPS: Self

pub const SETGROUPS: Self

pub const UNAME: Self

pub const SETHOSTNAME: Self

pub const SETDOMAINNAME: Self

pub const GETRLIMIT: Self

pub const SETRLIMIT: Self

pub const GETRUSAGE: Self

pub const UMASK: Self

pub const PRCTL: Self

pub const GETCPU: Self

pub const GETTIMEOFDAY: Self

pub const SETTIMEOFDAY: Self

pub const ADJTIMEX: Self

pub const GETPID: Self

pub const GETPPID: Self

pub const GETUID: Self

pub const GETEUID: Self

pub const GETGID: Self

pub const GETEGID: Self

pub const GETTID: Self

pub const SYSINFO: Self

pub const MQ_OPEN: Self

pub const MQ_TIMEDSEND: Self

pub const MQ_TIMEDRECEIVE: Self

pub const MQ_NOTIFY: Self

pub const MQ_GETSETATTR: Self

pub const MSGGET: Self

pub const MSGCTL: Self

pub const MSGRCV: Self

pub const MSGSND: Self

pub const SEMGET: Self

pub const SEMCTL: Self

pub const SEMTIMEDOP: Self

pub const SEMOP: Self

pub const SHMGET: Self

pub const SHMCTL: Self

pub const SHMAT: Self

pub const SHMDT: Self

pub const SOCKET: Self

pub const SOCKETPAIR: Self

pub const BIND: Self

pub const LISTEN: Self

pub const ACCEPT: Self

pub const CONNECT: Self

pub const GETSOCKNAME: Self

pub const GETPEERNAME: Self

pub const SENDTO: Self

pub const RECVFROM: Self

pub const SETSOCKOPT: Self

pub const GETSOCKOPT: Self

pub const SHUTDOWN: Self

pub const SENDMSG: Self

pub const RECVMSG: Self

pub const READAHEAD: Self

pub const BRK: Self

pub const MUNMAP: Self

pub const MREMAP: Self

pub const ADD_KEY: Self

pub const REQUEST_KEY: Self

pub const KEYCTL: Self

pub const CLONE: Self

pub const EXECVE: Self

pub const MMAP: Self

pub const FADVISE64: Self

pub const SWAPON: Self

pub const SWAPOFF: Self

pub const MPROTECT: Self

pub const MSYNC: Self

pub const MLOCK: Self

pub const MUNLOCK: Self

pub const MLOCKALL: Self

pub const MUNLOCKALL: Self

pub const MINCORE: Self

pub const MADVISE: Self

pub const REMAP_FILE_PAGES: Self

pub const MBIND: Self

pub const GET_MEMPOLICY: Self

pub const SET_MEMPOLICY: Self

pub const MIGRATE_PAGES: Self

pub const MOVE_PAGES: Self

pub const RT_TGSIGQUEUEINFO: Self

pub const PERF_EVENT_OPEN: Self

pub const ACCEPT4: Self

pub const RECVMMSG: Self

pub const ARCH_SPECIFIC_SYSCALL: Self

pub const WAIT4: Self

pub const PRLIMIT64: Self

pub const FANOTIFY_INIT: Self

pub const FANOTIFY_MARK: Self

pub const NAME_TO_HANDLE_AT: Self

pub const OPEN_BY_HANDLE_AT: Self

pub const CLOCK_ADJTIME: Self

pub const SYNCFS: Self

pub const SETNS: Self

pub const SENDMMSG: Self

pub const PROCESS_VM_READV: Self

pub const PROCESS_VM_WRITEV: Self

pub const KCMP: Self

pub const FINIT_MODULE: Self

pub const SCHED_SETATTR: Self

pub const SCHED_GETATTR: Self

pub const RENAMEAT2: Self

pub const SECCOMP: Self

pub const GETRANDOM: Self

pub const MEMFD_CREATE: Self

pub const BPF: Self

pub const EXECVEAT: Self

pub const USERFAULTFD: Self

pub const MEMBARRIER: Self

pub const MLOCK2: Self

pub const COPY_FILE_RANGE: Self

pub const PREADV2: Self

pub const PWRITEV2: Self

pub const PKEY_MPROTECT: Self

pub const PKEY_ALLOC: Self

pub const PKEY_FREE: Self

pub const STATX: Self

pub const IO_PGETEVENTS: Self

pub const RSEQ: Self

pub const KEXEC_FILE_LOAD: Self

pub const PIDFD_SEND_SIGNAL: Self

pub const IO_URING_SETUP: Self

pub const IO_URING_ENTER: Self

pub const IO_URING_REGISTER: Self

pub const THREAD_CREATE: Self

pub const MUTEX_CREATE: Self

pub const MUTEX_LOCK: Self

pub const MUTEX_UNLOCK: Self

pub const SEMAPHORE_CREATE: Self

pub const SEMAPHORE_UP: Self

pub const SEMAPHORE_DOWN: Self

pub const CONDVAR_CREATE: Self

pub const CONDVAR_SIGNAL: Self

pub const CONDVAR_WAIT: Self

pub const SPAWN: Self

pub const TRACE: Self

pub const ENABLE_DEADLOCK_DETECT: Self

Trait Implementations§

Source§

impl Clone for SyscallId

Source§

fn clone(&self) -> SyscallId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for SyscallId

Source§

impl Debug for SyscallId

Source§

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

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

impl Eq for SyscallId

Source§

impl From<usize> for SyscallId

Source§

fn from(val: usize) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SyscallId

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for SyscallId

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, 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.