Struct procfs::StatFlags [−]
pub struct StatFlags { /* fields omitted */ }
Methods
impl StatFlags
impl StatFlags
pub const PF_IDLE: StatFlags
PF_IDLE: StatFlags = StatFlags{bits: 2,}
I am an IDLE thread
pub const PF_EXITING: StatFlags
PF_EXITING: StatFlags = StatFlags{bits: 4,}
Getting shut down
pub const PF_EXITPIDONE: StatFlags
PF_EXITPIDONE: StatFlags = StatFlags{bits: 8,}
PI exit done on shut down
pub const PF_VCPU: StatFlags
PF_VCPU: StatFlags = StatFlags{bits: 16,}
I'm a virtual CPU
pub const PF_WQ_WORKER: StatFlags
PF_WQ_WORKER: StatFlags = StatFlags{bits: 32,}
I'm a workqueue worker
pub const PF_FORKNOEXEC: StatFlags
PF_FORKNOEXEC: StatFlags = StatFlags{bits: 64,}
Forked but didn't exec
pub const PF_MCE_PROCESS: StatFlags
PF_MCE_PROCESS: StatFlags = StatFlags{bits: 128,}
Process policy on mce errors;
pub const PF_SUPERPRIV: StatFlags
PF_SUPERPRIV: StatFlags = StatFlags{bits: 256,}
Used super-user privileges
pub const PF_DUMPCORE: StatFlags
PF_DUMPCORE: StatFlags = StatFlags{bits: 512,}
Dumped core
pub const PF_SIGNALED: StatFlags
PF_SIGNALED: StatFlags = StatFlags{bits: 1024,}
Killed by a signal
pub const PF_MEMALLOC: StatFlags
PF_MEMALLOC: StatFlags = StatFlags{bits: 2048,}
Allocating memory
pub const PF_NPROC_EXCEEDED: StatFlags
PF_NPROC_EXCEEDED: StatFlags = StatFlags{bits: 4096,}
set_user() noticed that RLIMIT_NPROC was exceeded
pub const PF_USED_MATH: StatFlags
PF_USED_MATH: StatFlags = StatFlags{bits: 8192,}
If unset the fpu must be initialized before use
pub const PF_USED_ASYNC: StatFlags
PF_USED_ASYNC: StatFlags = StatFlags{bits: 16384,}
Used async_schedule*(), used by module init
pub const PF_NOFREEZE: StatFlags
PF_NOFREEZE: StatFlags = StatFlags{bits: 32768,}
This thread should not be frozen
pub const PF_FROZEN: StatFlags
PF_FROZEN: StatFlags = StatFlags{bits: 65536,}
Frozen for system suspend
pub const PF_KSWAPD: StatFlags
PF_KSWAPD: StatFlags = StatFlags{bits: 131072,}
pub const PF_MEMALLOC_NOFS: StatFlags
PF_MEMALLOC_NOFS: StatFlags = StatFlags{bits: 262144,}
All allocation requests will inherit GFP_NOFS
pub const PF_MEMALLOC_NOIO: StatFlags
PF_MEMALLOC_NOIO: StatFlags = StatFlags{bits: 524288,}
All allocation requests will inherit GFP_NOIO
pub const PF_LESS_THROTTLE: StatFlags
PF_LESS_THROTTLE: StatFlags = StatFlags{bits: 1048576,}
Throttle me less: I clean memory
pub const PF_KTHREAD: StatFlags
PF_KTHREAD: StatFlags = StatFlags{bits: 2097152,}
I am a kernel thread
pub const PF_RANDOMIZE: StatFlags
PF_RANDOMIZE: StatFlags = StatFlags{bits: 4194304,}
Randomize virtual address space
pub const PF_SWAPWRITE: StatFlags
PF_SWAPWRITE: StatFlags = StatFlags{bits: 8388608,}
Allowed to write to swap
pub const PF_NO_SETAFFINITY: StatFlags
PF_NO_SETAFFINITY: StatFlags = StatFlags{bits: 67108864,}
Userland is not allowed to meddle with cpus_allowed
pub const PF_MCE_EARLY: StatFlags
PF_MCE_EARLY: StatFlags = StatFlags{bits: 134217728,}
Early kill for mce process policy
pub const PF_MUTEX_TESTER: StatFlags
PF_MUTEX_TESTER: StatFlags = StatFlags{bits: 536870912,}
Thread belongs to the rt mutex tester
pub const PF_FREEZER_SKIP: StatFlags
PF_FREEZER_SKIP: StatFlags = StatFlags{bits: 1073741824,}
Freezer should not count it as freezable
pub const PF_SUSPEND_TASK: StatFlags
PF_SUSPEND_TASK: StatFlags = StatFlags{bits: 2147483648,}
This thread called freeze_processes() and should not be frozen
pub fn empty() -> StatFlags
pub fn empty() -> StatFlags
Returns an empty set of flags.
pub fn all() -> StatFlags
pub fn all() -> StatFlags
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<StatFlags>
pub fn from_bits(bits: u32) -> Option<StatFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> StatFlags
pub fn from_bits_truncate(bits: u32) -> StatFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: StatFlags) -> bool
pub fn intersects(&self, other: StatFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: StatFlags) -> bool
pub fn contains(&self, other: StatFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: StatFlags)
pub fn insert(&mut self, other: StatFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: StatFlags)
pub fn remove(&mut self, other: StatFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: StatFlags)
pub fn toggle(&mut self, other: StatFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: StatFlags, value: bool)
pub fn set(&mut self, other: StatFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for StatFlags
impl Copy for StatFlags
impl PartialEq for StatFlags
impl PartialEq for StatFlags
fn eq(&self, other: &StatFlags) -> bool
fn eq(&self, other: &StatFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StatFlags) -> bool
fn ne(&self, other: &StatFlags) -> bool
This method tests for !=
.
impl Eq for StatFlags
impl Eq for StatFlags
impl Clone for StatFlags
impl Clone for StatFlags
fn clone(&self) -> StatFlags
fn clone(&self) -> StatFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for StatFlags
impl PartialOrd for StatFlags
fn partial_cmp(&self, other: &StatFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &StatFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &StatFlags) -> bool
fn lt(&self, other: &StatFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &StatFlags) -> bool
fn le(&self, other: &StatFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &StatFlags) -> bool
fn gt(&self, other: &StatFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &StatFlags) -> bool
fn ge(&self, other: &StatFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for StatFlags
impl Ord for StatFlags
fn cmp(&self, other: &StatFlags) -> Ordering
fn cmp(&self, other: &StatFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for StatFlags
impl Hash for StatFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for StatFlags
impl Debug for StatFlags
impl Binary for StatFlags
impl Binary for StatFlags
impl Octal for StatFlags
impl Octal for StatFlags
impl LowerHex for StatFlags
impl LowerHex for StatFlags
impl UpperHex for StatFlags
impl UpperHex for StatFlags
impl BitOr for StatFlags
impl BitOr for StatFlags
type Output = StatFlags
The resulting type after applying the |
operator.
fn bitor(self, other: StatFlags) -> StatFlags
fn bitor(self, other: StatFlags) -> StatFlags
Returns the union of the two sets of flags.
impl BitOrAssign for StatFlags
impl BitOrAssign for StatFlags
fn bitor_assign(&mut self, other: StatFlags)
fn bitor_assign(&mut self, other: StatFlags)
Adds the set of flags.
impl BitXor for StatFlags
impl BitXor for StatFlags
type Output = StatFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: StatFlags) -> StatFlags
fn bitxor(self, other: StatFlags) -> StatFlags
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for StatFlags
impl BitXorAssign for StatFlags
fn bitxor_assign(&mut self, other: StatFlags)
fn bitxor_assign(&mut self, other: StatFlags)
Toggles the set of flags.
impl BitAnd for StatFlags
impl BitAnd for StatFlags
type Output = StatFlags
The resulting type after applying the &
operator.
fn bitand(self, other: StatFlags) -> StatFlags
fn bitand(self, other: StatFlags) -> StatFlags
Returns the intersection between the two sets of flags.
impl BitAndAssign for StatFlags
impl BitAndAssign for StatFlags
fn bitand_assign(&mut self, other: StatFlags)
fn bitand_assign(&mut self, other: StatFlags)
Disables all flags disabled in the set.
impl Sub for StatFlags
impl Sub for StatFlags
type Output = StatFlags
The resulting type after applying the -
operator.
fn sub(self, other: StatFlags) -> StatFlags
fn sub(self, other: StatFlags) -> StatFlags
Returns the set difference of the two sets of flags.
impl SubAssign for StatFlags
impl SubAssign for StatFlags
fn sub_assign(&mut self, other: StatFlags)
fn sub_assign(&mut self, other: StatFlags)
Disables all flags enabled in the set.
impl Not for StatFlags
impl Not for StatFlags
type Output = StatFlags
The resulting type after applying the !
operator.
fn not(self) -> StatFlags
fn not(self) -> StatFlags
Returns the complement of this set of flags.
impl Extend<StatFlags> for StatFlags
impl Extend<StatFlags> for StatFlags
fn extend<T: IntoIterator<Item = StatFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = StatFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<StatFlags> for StatFlags
impl FromIterator<StatFlags> for StatFlags
fn from_iter<T: IntoIterator<Item = StatFlags>>(iterator: T) -> StatFlags
fn from_iter<T: IntoIterator<Item = StatFlags>>(iterator: T) -> StatFlags
Creates a value from an iterator. Read more