Struct libafl::bolts::llmp::LlmpPage [−][src]
#[repr(C, packed)]pub struct LlmpPage { pub magic: u64, pub sender: u32, pub save_to_unmap: u16, pub sender_dead: u16, pub current_msg_id: u64, pub size_total: usize, pub size_used: usize, pub max_alloc_size: usize, pub messages: [LlmpMsg; 0], }
Contents of the share mem pages, used by llmp internally
Fields
magic: u64
to check if this page got initialized properly
sender: u32
The id of the sender
save_to_unmap: u16
Set to != 1 by the receiver, once it got mapped It’s not safe for the sender to unmap this page before (The os may have tidied up the memory when the receiver starts to map)
sender_dead: u16
Not used at the moment (would indicate that the sender is no longer there)
current_msg_id: u64
The current message ID
size_total: usize
How much space is available on this page in bytes
size_used: usize
How much space is used on this page in bytes
max_alloc_size: usize
The maximum amount of bytes that ever got allocated on this page in one go An inidactor of what to use as size for future pages
messages: [LlmpMsg; 0]
Pointer to the messages, from here on.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LlmpPage
impl Send for LlmpPage
impl Sync for LlmpPage
impl Unpin for LlmpPage
impl UnwindSafe for LlmpPage
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more