函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__blk_release_queue - release a request queue*@work: pointer to the release_work member of the request queue to be released* Description:* This function is called when a block device is being unregistered

函数原型:static void __blk_release_queue(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
878  q等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, typeof( * q), release_work)
880  如果test_bit(collecting stats for hybrid polling , & * various queue flags, see QUEUE_* below)则blk_stat_remove_callback(q, poll_cb)
882  lk_stat_free_callback() - Free a block statistics callback
884  blk_free_queue_stats(stats)
886  如果queue_is_mq(q)则ancel_delayed_work_sync - cancel a delayed work and wait for it to finish*@dwork: the delayed work cancel* This is cancel_work_sync() for delayed works.* Return:* %true if @dwork was pending, %false otherwise.
889  Unconfigure the I/O scheduler and dissociate from the cgroup controller.
891  blk_queue_free_zone_bitmaps(q)
893  如果queue_is_mq(q)则blk_mq_release(q)
896  blk_trace_shutdown(q)
898  如果queue_is_mq(q)则blk_mq_debugfs_unregister(q)
901  set_exit - exit a bioset initialized with bioset_init()* May be called on a zeroed but uninitialized bioset (i.e. allocated with* kzalloc()).
903  ida_simple_remove( & blk_queue_ida, * ida allocated id for this queue. Used to index queues from * ioctx.)
904  all_rcu() - Queue an RCU callback for invocation after a grace period