Struct procfs::Shm

source ·
pub struct Shm {
Show 16 fields pub key: i32, pub shmid: u64, pub perms: u16, pub size: u32, pub cpid: i32, pub lpid: i32, pub nattch: u32, pub uid: u16, pub gid: u16, pub cuid: u16, pub cgid: u16, pub atime: u64, pub dtime: u64, pub ctime: u64, pub rss: u64, pub swap: u64,
}
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: i32

Creator PID

§lpid: i32

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.