函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:We cannot support shared io contexts, as we have no mean to support* two tasks with the same ioc in two different groups without major rework* of the main cic data structures. For now we allow a task to change

函数原型:static int blkcg_can_attach(struct cgroup_taskset *tset)

返回类型:int

参数:

类型参数名称
struct cgroup_taskset *tset
1087  ret等于0
1091  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.
1092  ioc等于io_context
1093  如果iocatomic_read( & 对应进程)大于1则ret等于负EINVAL
1095  task_unlock(task)
1096  如果ret退出
1099  返回:ret