Struct procfs::StatFlags[]

pub struct StatFlags { /* fields omitted */ }

Methods

impl StatFlags

PF_IDLE: StatFlags = StatFlags{bits: 2,}

I am an IDLE thread

PF_EXITING: StatFlags = StatFlags{bits: 4,}

Getting shut down

PF_EXITPIDONE: StatFlags = StatFlags{bits: 8,}

PI exit done on shut down

PF_VCPU: StatFlags = StatFlags{bits: 16,}

I'm a virtual CPU

PF_WQ_WORKER: StatFlags = StatFlags{bits: 32,}

I'm a workqueue worker

PF_FORKNOEXEC: StatFlags = StatFlags{bits: 64,}

Forked but didn't exec

PF_MCE_PROCESS: StatFlags = StatFlags{bits: 128,}

Process policy on mce errors;

PF_SUPERPRIV: StatFlags = StatFlags{bits: 256,}

Used super-user privileges

PF_DUMPCORE: StatFlags = StatFlags{bits: 512,}

Dumped core

PF_SIGNALED: StatFlags = StatFlags{bits: 1024,}

Killed by a signal

PF_MEMALLOC: StatFlags = StatFlags{bits: 2048,}

Allocating memory

PF_NPROC_EXCEEDED: StatFlags = StatFlags{bits: 4096,}

set_user() noticed that RLIMIT_NPROC was exceeded

PF_USED_MATH: StatFlags = StatFlags{bits: 8192,}

If unset the fpu must be initialized before use

PF_USED_ASYNC: StatFlags = StatFlags{bits: 16384,}

Used async_schedule*(), used by module init

PF_NOFREEZE: StatFlags = StatFlags{bits: 32768,}

This thread should not be frozen

PF_FROZEN: StatFlags = StatFlags{bits: 65536,}

Frozen for system suspend

PF_KSWAPD: StatFlags = StatFlags{bits: 131072,}

PF_MEMALLOC_NOFS: StatFlags = StatFlags{bits: 262144,}

All allocation requests will inherit GFP_NOFS

PF_MEMALLOC_NOIO: StatFlags = StatFlags{bits: 524288,}

All allocation requests will inherit GFP_NOIO

PF_LESS_THROTTLE: StatFlags = StatFlags{bits: 1048576,}

Throttle me less: I clean memory

PF_KTHREAD: StatFlags = StatFlags{bits: 2097152,}

I am a kernel thread

PF_RANDOMIZE: StatFlags = StatFlags{bits: 4194304,}

Randomize virtual address space

PF_SWAPWRITE: StatFlags = StatFlags{bits: 8388608,}

Allowed to write to swap

PF_NO_SETAFFINITY: StatFlags = StatFlags{bits: 67108864,}

Userland is not allowed to meddle with cpus_allowed

PF_MCE_EARLY: StatFlags = StatFlags{bits: 134217728,}

Early kill for mce process policy

PF_MUTEX_TESTER: StatFlags = StatFlags{bits: 536870912,}

Thread belongs to the rt mutex tester

PF_FREEZER_SKIP: StatFlags = StatFlags{bits: 1073741824,}

Freezer should not count it as freezable

PF_SUSPEND_TASK: StatFlags = StatFlags{bits: 2147483648,}

This thread called freeze_processes() and should not be frozen

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for StatFlags

impl PartialEq for StatFlags

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StatFlags

impl Clone for StatFlags

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for StatFlags

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for StatFlags

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for StatFlags

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for StatFlags

Formats the value using the given formatter. Read more

impl Binary for StatFlags

Formats the value using the given formatter.

impl Octal for StatFlags

Formats the value using the given formatter.

impl LowerHex for StatFlags

Formats the value using the given formatter.

impl UpperHex for StatFlags

Formats the value using the given formatter.

impl BitOr for StatFlags

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for StatFlags

Adds the set of flags.

impl BitXor for StatFlags

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for StatFlags

Toggles the set of flags.

impl BitAnd for StatFlags

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for StatFlags

Disables all flags disabled in the set.

impl Sub for StatFlags

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for StatFlags

Disables all flags enabled in the set.

impl Not for StatFlags

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<StatFlags> for StatFlags

Extends a collection with the contents of an iterator. Read more

impl FromIterator<StatFlags> for StatFlags

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for StatFlags

impl Sync for StatFlags