函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:11:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdtgroup_task_write_permission

函数原型:static int rdtgroup_task_write_permission(struct task_struct *task, struct kernfs_open_file *of)

返回类型:int

参数:

类型参数名称
struct task_struct *task
struct kernfs_open_file *of
620  tcred等于get_task_cred(task)
621  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
622  ret等于0
628  如果非uid_eq(euid, GLOBAL_ROOT_UID)且非uid_eq(euid, uid)且非uid_eq(euid, suid)则
631  rdt_last_cmd_printf("No permission to move task %d\n", 进程ID)
632  ret等于负EPERM
635  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
636  返回:ret
调用者
名称描述
rdtgroup_move_task