#[repr(C)]pub struct rq {Show 93 fields
pub __lock: raw_spinlock,
pub nr_running: u32,
pub __pad_28: [u8; 4],
pub last_blocked_load_update_tick: u64,
pub has_blocked_load: u32,
pub __pad_44: [u8; 20],
pub nohz_csd: __call_single_data,
pub nohz_tick_stopped: u32,
pub nohz_flags: __anon_2,
pub ttwu_pending: u32,
pub __pad_108: [u8; 4],
pub nr_switches: u64,
pub __pad_120: [u8; 8],
pub uclamp: [uclamp_rq; 2],
pub uclamp_flags: u32,
pub __pad_228: [u8; 28],
pub cfs: cfs_rq,
pub rt: rt_rq,
pub dl: dl_rq,
pub scx: scx_rq,
pub fair_server: sched_dl_entity,
pub leaf_cfs_rq_list: list_head,
pub tmp_alone_branch: *mut list_head,
pub nr_uninterruptible: u32,
pub __pad_3100: [u8; 4],
pub __anon_20: __anon_20,
pub dl_server: *mut sched_dl_entity,
pub idle: *mut task_struct,
pub stop: *mut task_struct,
pub next_balance: u64,
pub prev_mm: *mut c_void,
pub clock_update_flags: u32,
pub __pad_3156: [u8; 4],
pub clock: u64,
pub __pad_3168: [u8; 32],
pub clock_task: u64,
pub clock_pelt: u64,
pub lost_idle_time: u64,
pub clock_pelt_idle: u64,
pub clock_idle: u64,
pub nr_iowait: __anon_2,
pub __pad_3244: [u8; 4],
pub last_seen_need_resched_ns: u64,
pub ticks_without_resched: i32,
pub membarrier_state: i32,
pub rd: *mut c_void,
pub sd: *mut c_void,
pub cpu_capacity: u64,
pub balance_callback: *mut balance_callback,
pub nohz_idle_balance: u8,
pub idle_balance: u8,
pub __pad_3298: [u8; 6],
pub misfit_task_load: u64,
pub active_balance: i32,
pub push_cpu: i32,
pub active_balance_work: cpu_stop_work,
pub cpu: i32,
pub online: i32,
pub cfs_tasks: list_head,
pub avg_rt: sched_avg,
pub avg_dl: sched_avg,
pub idle_stamp: u64,
pub avg_idle: u64,
pub max_idle_balance_cost: u64,
pub hotplug_wait: rcuwait,
pub calc_load_update: u64,
pub calc_load_active: i64,
pub __pad_3568: [u8; 16],
pub hrtick_csd: __call_single_data,
pub hrtick_timer: hrtimer,
pub hrtick_time: i64,
pub idle_state: *mut c_void,
pub nr_pinned: u32,
pub push_busy: u32,
pub push_work: cpu_stop_work,
pub core: *mut rq,
pub core_pick: *mut task_struct,
pub core_dl_server: *mut sched_dl_entity,
pub core_enabled: u32,
pub core_sched_seq: u32,
pub core_tree: rb_root,
pub core_task_seq: u32,
pub core_pick_seq: u32,
pub core_cookie: u64,
pub core_forceidle_count: u32,
pub core_forceidle_seq: u32,
pub core_forceidle_occupation: u32,
pub __pad_3820: [u8; 4],
pub core_forceidle_start: u64,
pub scratch_mask: *mut cpumask,
pub cfsb_csd: __call_single_data,
pub cfsb_csd_list: list_head,
pub __pad_3888: [u8; 16],
}
Fields§
§__lock: raw_spinlock
§nr_running: u32
§__pad_28: [u8; 4]
§last_blocked_load_update_tick: u64
§has_blocked_load: u32
§__pad_44: [u8; 20]
§nohz_csd: __call_single_data
§nohz_tick_stopped: u32
§nohz_flags: __anon_2
§ttwu_pending: u32
§__pad_108: [u8; 4]
§nr_switches: u64
§__pad_120: [u8; 8]
§uclamp: [uclamp_rq; 2]
§uclamp_flags: u32
§__pad_228: [u8; 28]
§cfs: cfs_rq
§rt: rt_rq
§dl: dl_rq
§scx: scx_rq
§fair_server: sched_dl_entity
§leaf_cfs_rq_list: list_head
§tmp_alone_branch: *mut list_head
§nr_uninterruptible: u32
§__pad_3100: [u8; 4]
§__anon_20: __anon_20
§dl_server: *mut sched_dl_entity
§idle: *mut task_struct
§stop: *mut task_struct
§next_balance: u64
§prev_mm: *mut c_void
§clock_update_flags: u32
§__pad_3156: [u8; 4]
§clock: u64
§__pad_3168: [u8; 32]
§clock_task: u64
§clock_pelt: u64
§lost_idle_time: u64
§clock_pelt_idle: u64
§clock_idle: u64
§nr_iowait: __anon_2
§__pad_3244: [u8; 4]
§last_seen_need_resched_ns: u64
§ticks_without_resched: i32
§membarrier_state: i32
§rd: *mut c_void
§sd: *mut c_void
§cpu_capacity: u64
§balance_callback: *mut balance_callback
§nohz_idle_balance: u8
§idle_balance: u8
§__pad_3298: [u8; 6]
§misfit_task_load: u64
§active_balance: i32
§push_cpu: i32
§active_balance_work: cpu_stop_work
§cpu: i32
§online: i32
§cfs_tasks: list_head
§avg_rt: sched_avg
§avg_dl: sched_avg
§idle_stamp: u64
§avg_idle: u64
§max_idle_balance_cost: u64
§hotplug_wait: rcuwait
§calc_load_update: u64
§calc_load_active: i64
§__pad_3568: [u8; 16]
§hrtick_csd: __call_single_data
§hrtick_timer: hrtimer
§hrtick_time: i64
§idle_state: *mut c_void
§nr_pinned: u32
§push_busy: u32
§push_work: cpu_stop_work
§core: *mut rq
§core_pick: *mut task_struct
§core_dl_server: *mut sched_dl_entity
§core_enabled: u32
§core_sched_seq: u32
§core_tree: rb_root
§core_task_seq: u32
§core_pick_seq: u32
§core_forceidle_count: u32
§core_forceidle_seq: u32
§core_forceidle_occupation: u32
§__pad_3820: [u8; 4]
§core_forceidle_start: u64
§scratch_mask: *mut cpumask
§cfsb_csd: __call_single_data
§cfsb_csd_list: list_head
§__pad_3888: [u8; 16]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for rq
impl RefUnwindSafe for rq
impl !Send for rq
impl !Sync for rq
impl Unpin for rq
impl UnwindSafe for rq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.