Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-ioc.c Create Date:2022-07-28 17:04:26
Last Modify:2020-03-17 23:16:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:struct io_context *get_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node)

Type:struct io_context

Parameter:

TypeParameterName
struct task_struct *task
gfp_tgfp_flags
intnode
301  might_sleep_if(gfpflags_allow_blocking(gfp_flags))
303  Do
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  Return ioc
311  task_unlock(task)
312  When Not create_task_io_context(task, gfp_flags, node) cycle
314  Return NULL
Caller
NameDescribe
set_task_ioprio