函数逻辑报告 |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-27 19:15:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkcg_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.
函数原型:int blkcg_init_queue(struct request_queue *q)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q |
1029 | preloaded等于非Load up this CPU's radix_tree_node buffer with sufficient objects to* ensure that the addition of a single element in the tree cannot fail |
1033 | spin_lock_irq( & queue_lock) |
1034 | blkg等于If @new_blkg is %NULL, this function tries to allocate a new one as* necessary using %GFP_NOWAIT. @new_blkg is always consumed on return. |
1035 | 如果是错误则转到:err_unlock |
1038 | spin_unlock_irq( & queue_lock) |
1041 | 如果preloaded则radix_tree_preload_end() |
1044 | ret等于blk_iolatency_init(q) |
1045 | 如果ret则转到:err_destroy_all |
1048 | ret等于blk_throtl_init(q) |
1049 | 如果ret则转到:err_destroy_all |
1051 | 返回:0 |
1053 | err_destroy_all : |
1055 | 返回:ret |
1056 | err_unlock : |
1057 | spin_unlock_irq( & queue_lock) |
1059 | 如果preloaded则radix_tree_preload_end() |
1061 | 返回:错误 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |