函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-27 18:34:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:释放请求队列

函数原型:void blk_cleanup_queue(struct request_queue *q)

返回类型:void

参数:

类型参数名称
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  同步队列
369  如果queue_is_mq(q)则blk_mq_exit_queue(q)
380  mutex_lock( & sysfs_lock)
381  如果elevatorblk_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)
调用者
名称描述
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