pub struct KernelKprobeOps;Trait Implementations§
Source§impl Debug for KernelKprobeOps
impl Debug for KernelKprobeOps
Source§impl KprobeAuxiliaryOps for KernelKprobeOps
impl KprobeAuxiliaryOps for KernelKprobeOps
Source§fn copy_memory(src: *const u8, dst: *mut u8, len: usize, user_pid: Option<i32>)
fn copy_memory(src: *const u8, dst: *mut u8, len: usize, user_pid: Option<i32>)
Copy memory from source to destination. If
user_pid is Some(pid), it indicates that the src is in user space.
The dst is always in kernel space.Source§fn set_writeable_for_address<F: FnOnce(*mut u8)>(
address: usize,
len: usize,
user_pid: Option<i32>,
action: F,
)
fn set_writeable_for_address<F: FnOnce(*mut u8)>( address: usize, len: usize, user_pid: Option<i32>, action: F, )
Enable or disable write permission for the specified address.
Source§fn alloc_kernel_exec_memory() -> *mut u8
fn alloc_kernel_exec_memory() -> *mut u8
Allocate executable memory(one page)
Source§fn free_kernel_exec_memory(ptr: *mut u8)
fn free_kernel_exec_memory(ptr: *mut u8)
Deallocate executable memory(one page)
Source§fn alloc_user_exec_memory<F: FnOnce(*mut u8)>(
pid: Option<i32>,
action: F,
) -> *mut u8
fn alloc_user_exec_memory<F: FnOnce(*mut u8)>( pid: Option<i32>, action: F, ) -> *mut u8
Allocate user executable memory(one page)
Source§fn free_user_exec_memory(pid: Option<i32>, ptr: *mut u8)
fn free_user_exec_memory(pid: Option<i32>, ptr: *mut u8)
Deallocate user executable memory(one page)
Source§fn insert_kretprobe_instance_to_task(instance: RetprobeInstance)
fn insert_kretprobe_instance_to_task(instance: RetprobeInstance)
Insert a kretprobe instance to the current task
Source§fn pop_kretprobe_instance_from_task() -> RetprobeInstance
fn pop_kretprobe_instance_from_task() -> RetprobeInstance
Pop a kretprobe instance from the current task
Auto Trait Implementations§
impl Freeze for KernelKprobeOps
impl RefUnwindSafe for KernelKprobeOps
impl Send for KernelKprobeOps
impl Sync for KernelKprobeOps
impl Unpin for KernelKprobeOps
impl UnsafeUnpin for KernelKprobeOps
impl UnwindSafe for KernelKprobeOps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DirectoryReadState for T
impl<T> DirectoryReadState for T
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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