函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-ioc.c Create Date:2022-07-27 18:39:42
Last Modify:2020-03-17 23:16:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_task_io_context - get io_context of a task*@task: task of interest*@gfp_flags: allocation flags, used if allocation is necessary*@node: allocation node, used if allocation is necessary* Return io_context of @task

函数原型:struct io_context *get_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node)

返回类型:struct io_context

参数:

类型参数名称
struct task_struct *task
gfp_tgfp_flags
intnode
301  might_sleep_if(gfpflags_allow_blocking(gfp_flags))
303  循环
304  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
305  ioc等于io_context
308  task_unlock(task)
309  返回:ioc
311  task_unlock(task)
312  当非create_task_io_context(task, gfp_flags, node)循环
314  返回:NULL
调用者
名称描述
set_task_ioprio
copy_io复制I/O