pub struct Syscall {
pub number: u32,
pub name: String,
pub summary: String,
pub signature: Option<String>,
pub group: String,
pub args: Vec<Argument>,
pub returns: Option<String>,
pub errors: Vec<String>,
pub example: Option<String>,
pub detailed: bool,
}Expand description
One system call.
Fields§
§number: u32The number placed in RAX.
name: StringThe call’s name.
summary: StringA one-line summary.
signature: Option<String>The C prototype, when it is modelled.
group: StringA coarse category such as file or process.
args: Vec<Argument>The arguments, in register order.
returns: Option<String>What the call returns in RAX.
errors: Vec<String>Errors worth knowing about, as -ERRNO: explanation.
example: Option<String>A short NASM example, when one is useful.
detailed: boolWhether the arguments and return value are modelled.
false means only the name and number are known; nothing else about
this call has been filled in, and nothing should be inferred.
Implementations§
Source§impl Syscall
impl Syscall
Sourcepub fn argument_in(&self, register: &str) -> Option<&Argument>
pub fn argument_in(&self, register: &str) -> Option<&Argument>
The argument carried in register, if any.
Sourcepub fn nasm_template(&self) -> String
pub fn nasm_template(&self) -> String
A ready-to-paste NASM snippet setting up the call.
Generated from the argument list when the call has no hand-written example, so every detailed call has something to copy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Syscall
impl<'de> Deserialize<'de> for Syscall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Syscall
impl StructuralPartialEq for Syscall
Auto Trait Implementations§
impl Freeze for Syscall
impl RefUnwindSafe for Syscall
impl Send for Syscall
impl Sync for Syscall
impl Unpin for Syscall
impl UnsafeUnpin for Syscall
impl UnwindSafe for Syscall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more