Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-28 16:59:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lk_cleanup_queue - shutdown a request queue*@q: request queue to shutdown* Mark @q DYING, drain all pending requests, mark @q DEAD, destroy and* put it. All future requests will be failed immediately with -ENODEV.

Proto:void blk_cleanup_queue(struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
342  WARN_ON_ONCE(blk_queue_registered(q))
345  blk_set_queue_dying(q)
347  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
348  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
349  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
356  blk_freeze_queue(q)
358  rq_qos_exit(q)
360  lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue
363  blk_flush_integrity()
366  del_timer_sync( & laptop_mode_wb_timer)
367  lk_sync_queue - cancel any pending callbacks on a queue*@q: the queue* Description:* The block layer may perform asynchronous callback activity* on a queue, such as calling the unplug function after a timeout
369  If queue_is_mq(q) Then blk_mq_exit_queue(q)
380  mutex_lock( & sysfs_lock)
381  If elevator Then blk_mq_sched_free_requests(q)
383  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
385  percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref
388  blk_put_queue(q)
Caller
NameDescribe
blk_mq_init_queue
bsg_remove_queue
bsg_setup_queuesg_setup_queue - Create and add the bsg hooks so we can receive requests*@dev: device to attach bsg device to*@name: device to give bsg device*@job_fn: bsg job handler*@timeout: timeout handler function pointer*@dd_job_size: size of LLD data needed for