Struct procfs::Shm [−][src]
pub struct Shm {}
Expand description
A shared memory segment parsed from /proc/sysvipc/shm
Relation with [crate::process::process::MMapPath::Vsys]
Fields
key: i32
Segment key
shmid: u64
Segment ID, unique
perms: u16
Access permissions, as octal
size: u32
Size in bytes
cpid: pid_t
Creator PID
lpid: pid_t
Last operator PID
nattch: u32
Number of attached processes
uid: u16
User ID
gid: u16
Group ID
cuid: u16
Creator UID
cgid: u16
Creator GID
atime: u64
Time of last shmat
(attach), epoch
dtime: u64
Time of last shmdt
(detach), epoch
ctime: u64
Time of last permission change, epoch
rss: u64
Current part of the shared memory resident in memory
swap: u64
Current part of the shared memory in SWAP
Implementations
Reads and parses the /proc/sysvipc/shm
, returning an error if there are problems.
Get Meminfo from a custom Read instead of the default /proc/sysvipc/shm
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Shm
impl UnwindSafe for Shm
Blanket Implementations
Mutably borrows from an owned value. Read more