Skip to main content

QueryModule

Struct QueryModule 

Source
pub struct QueryModule { /* private fields */ }
Expand description

See query_module(2) for info on this syscall.

Implementations§

Source§

impl QueryModule

Source

pub const NAME: &'static str = "query_module"

The name of the syscall.

Source

pub const NUMBER: Sysno = ::syscalls::Sysno::query_module

The syscall number.

Source

pub fn new() -> Self

Creates the syscall. Use the with_* functions to build up the arguments to this syscall.

Source

pub fn name(&self) -> Option<CStrPtr<'_>>

Gets this argument’s value.

Source

pub fn which(&self) -> i32

Gets this argument’s value.

Source

pub fn buf(&self) -> Option<AddrMut<'_, c_void>>

Gets this argument’s value.

Source

pub fn bufsize(&self) -> usize

Gets this argument’s value.

Source

pub fn ret(&self) -> Option<AddrMut<'_, usize>>

Gets this argument’s value.

Source

pub fn with_name(self, v: Option<CStrPtr<'_>>) -> Self

Sets this argument to the given value.

Source

pub fn with_which(self, v: i32) -> Self

Sets this argument to the given value.

Source

pub fn with_buf(self, v: Option<AddrMut<'_, c_void>>) -> Self

Sets this argument to the given value.

Source

pub fn with_bufsize(self, v: usize) -> Self

Sets this argument to the given value.

Source

pub fn with_ret(self, v: Option<AddrMut<'_, usize>>) -> Self

Sets this argument to the given value.

Trait Implementations§

Source§

impl Clone for QueryModule

Source§

fn clone(&self) -> Self

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 QueryModule

Source§

impl Debug for QueryModule

Source§

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

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

impl Default for QueryModule

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Displayable for QueryModule

Source§

fn fmt<M: MemoryAccess>( &self, memory: &M, outputs: bool, f: &mut Formatter<'_>, ) -> Result

Displays a syscall with all of its arguments.
Source§

fn display<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>
where M: MemoryAccess, Self: Sized,

Returns an object that implements std::fmt::Display and displays only syscall inputs.
Source§

fn display_with_outputs<'a, M>(&'a self, memory: &'a M) -> Display<'a, M, Self>
where M: MemoryAccess, Self: Sized,

Returns an object that implements std::fmt::Display and displays syscall inputs as well as outputs. Useful for displaying pointer arguments that are only valid after a syscall has been executed.
Source§

impl Eq for QueryModule

Source§

impl From<QueryModule> for Syscall

Available on non-AArch64 only.
Source§

fn from(x: QueryModule) -> Self

Converts to this type from the input type.
Source§

impl From<QueryModule> for SyscallArgs

Source§

fn from(syscall: QueryModule) -> Self

Converts to this type from the input type.
Source§

impl From<SyscallArgs> for QueryModule

Source§

fn from(raw: SyscallArgs) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for QueryModule

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QueryModule

Source§

impl SyscallInfo for QueryModule

Source§

type Return = Result<usize, Errno>

The return type of the syscall.
Source§

fn name(&self) -> &'static str

Returns the syscall name.
Source§

fn number(&self) -> Sysno

Returns the syscall number.
Source§

fn into_parts(self) -> (Sysno, SyscallArgs)

Converts the syscall into its constituent parts.

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.