Struct request_queue

Source
#[repr(C)]
pub struct request_queue {
Show 70 fields pub last_merge: *mut request, pub elevator: *mut elevator_queue, pub q_usage_counter: percpu_ref, pub stats: *mut blk_queue_stats, pub rq_qos: *mut rq_qos, pub mq_ops: *const blk_mq_ops, pub queue_ctx: *mut blk_mq_ctx, pub queue_depth: c_uint, pub queue_hw_ctx: *mut *mut blk_mq_hw_ctx, pub nr_hw_queues: c_uint, pub queuedata: *mut c_void, pub queue_flags: c_ulong, pub pm_only: atomic_t, pub id: c_int, pub queue_lock: spinlock_t, pub disk: *mut gendisk, pub kobj: kobject, pub mq_kobj: *mut kobject, pub integrity: blk_integrity, pub dev: *mut device, pub rpm_status: rpm_status, pub nr_requests: c_ulong, pub dma_pad_mask: c_uint, pub dma_alignment: c_uint, pub ksm: *mut blk_keyslot_manager, pub rq_timeout: c_uint, pub poll_nsec: c_int, pub poll_cb: *mut blk_stat_callback, pub poll_stat: [blk_rq_stat; 16], pub timeout: timer_list, pub timeout_work: work_struct, pub nr_active_requests_shared_sbitmap: atomic_t, pub sched_bitmap_tags: sbitmap_queue, pub sched_breserved_tags: sbitmap_queue, pub icq_list: list_head, pub blkcg_pols: [c_ulong; 1], pub root_blkg: *mut blkcg_gq, pub blkg_list: list_head, pub limits: queue_limits, pub required_elevator_features: c_uint, pub nr_zones: c_uint, pub conv_zones_bitmap: *mut c_ulong, pub seq_zones_wlock: *mut c_ulong, pub max_open_zones: c_uint, pub max_active_zones: c_uint, pub node: c_int, pub debugfs_mutex: mutex, pub blk_trace: *mut blk_trace, pub fq: *mut blk_flush_queue, pub requeue_list: list_head, pub requeue_lock: spinlock_t, pub requeue_work: delayed_work, pub sysfs_lock: mutex, pub sysfs_dir_lock: mutex, pub unused_hctx_list: list_head, pub unused_hctx_lock: spinlock_t, pub mq_freeze_depth: c_int, pub td: *mut throtl_data, pub callback_head: callback_head, pub mq_freeze_wq: wait_queue_head_t, pub mq_freeze_lock: mutex, pub tag_set: *mut blk_mq_tag_set, pub tag_set_list: list_head, pub bio_split: bio_set, pub debugfs_dir: *mut dentry, pub sched_debugfs_dir: *mut dentry, pub rqos_debugfs_dir: *mut dentry, pub mq_sysfs_init_done: bool_, pub cmd_size: size_t, pub write_hints: [_cargo_bpf_u64; 5],
}

Fields§

§last_merge: *mut request§elevator: *mut elevator_queue§q_usage_counter: percpu_ref§stats: *mut blk_queue_stats§rq_qos: *mut rq_qos§mq_ops: *const blk_mq_ops§queue_ctx: *mut blk_mq_ctx§queue_depth: c_uint§queue_hw_ctx: *mut *mut blk_mq_hw_ctx§nr_hw_queues: c_uint§queuedata: *mut c_void§queue_flags: c_ulong§pm_only: atomic_t§id: c_int§queue_lock: spinlock_t§disk: *mut gendisk§kobj: kobject§mq_kobj: *mut kobject§integrity: blk_integrity§dev: *mut device§rpm_status: rpm_status§nr_requests: c_ulong§dma_pad_mask: c_uint§dma_alignment: c_uint§ksm: *mut blk_keyslot_manager§rq_timeout: c_uint§poll_nsec: c_int§poll_cb: *mut blk_stat_callback§poll_stat: [blk_rq_stat; 16]§timeout: timer_list§timeout_work: work_struct§nr_active_requests_shared_sbitmap: atomic_t§sched_bitmap_tags: sbitmap_queue§sched_breserved_tags: sbitmap_queue§icq_list: list_head§blkcg_pols: [c_ulong; 1]§root_blkg: *mut blkcg_gq§blkg_list: list_head§limits: queue_limits§required_elevator_features: c_uint§nr_zones: c_uint§conv_zones_bitmap: *mut c_ulong§seq_zones_wlock: *mut c_ulong§max_open_zones: c_uint§max_active_zones: c_uint§node: c_int§debugfs_mutex: mutex§blk_trace: *mut blk_trace§fq: *mut blk_flush_queue§requeue_list: list_head§requeue_lock: spinlock_t§requeue_work: delayed_work§sysfs_lock: mutex§sysfs_dir_lock: mutex§unused_hctx_list: list_head§unused_hctx_lock: spinlock_t§mq_freeze_depth: c_int§td: *mut throtl_data§callback_head: callback_head§mq_freeze_wq: wait_queue_head_t§mq_freeze_lock: mutex§tag_set: *mut blk_mq_tag_set§tag_set_list: list_head§bio_split: bio_set§debugfs_dir: *mut dentry§sched_debugfs_dir: *mut dentry§rqos_debugfs_dir: *mut dentry§mq_sysfs_init_done: bool_§cmd_size: size_t§write_hints: [_cargo_bpf_u64; 5]

Trait Implementations§

Source§

impl Clone for request_queue

Source§

fn clone(&self) -> request_queue

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for request_queue

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.