函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkg_destroy_all - destroy all blkgs associated with a request_queue*@q: request_queue of interest* Destroy all blkgs associated with @q.

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

返回类型:void

参数:

类型参数名称
struct request_queue *q
446  spin_lock_irq( & queue_lock)
448  blkcg等于blkcg
450  加自旋锁
451  blkg_destroy(blkg)
452  自旋锁解锁
455  root_blkg = NULL
456  spin_unlock_irq( & queue_lock)
调用者
名称描述
blkcg_init_queuelkcg_init_queue - initialize blkcg part of request queue*@q: request_queue to initialize* Called from blk_alloc_queue_node(). Responsible for initializing blkcg* part of new request_queue @q.* RETURNS:* 0 on success, -errno on failure.
blkcg_exit_queuelkcg_exit_queue - exit and release blkcg part of request_queue*@q: request_queue being released* Called from blk_exit_queue(). Responsible for exiting blkcg part.