Struct procfs::Shm[][src]

pub struct Shm {
Show 16 fields pub key: i32, pub shmid: u64, pub perms: u16, pub size: u32, pub cpid: pid_t, pub lpid: pid_t, 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: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.