pub struct CmdlineInfo {
pub pid: u64,
pub comm: String,
pub cmdline: String,
}Expand description
Process command line extracted from mm_struct.arg_start..arg_end.
The kernel stores argv as null-separated strings in the process’s address space. This struct holds the reconstructed full command line with arguments joined by spaces.
Fields§
§pid: u64Process ID.
comm: StringProcess name (task_struct.comm).
cmdline: StringFull command line (argv entries joined with spaces).
Trait Implementations§
Source§impl Clone for CmdlineInfo
impl Clone for CmdlineInfo
Source§fn clone(&self) -> CmdlineInfo
fn clone(&self) -> CmdlineInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CmdlineInfo
impl Debug for CmdlineInfo
impl Eq for CmdlineInfo
Source§impl PartialEq for CmdlineInfo
impl PartialEq for CmdlineInfo
Source§fn eq(&self, other: &CmdlineInfo) -> bool
fn eq(&self, other: &CmdlineInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CmdlineInfo
Auto Trait Implementations§
impl Freeze for CmdlineInfo
impl RefUnwindSafe for CmdlineInfo
impl Send for CmdlineInfo
impl Sync for CmdlineInfo
impl Unpin for CmdlineInfo
impl UnsafeUnpin for CmdlineInfo
impl UnwindSafe for CmdlineInfo
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,
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.