Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-28 08:11:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdtgroup_task_write_permission

Proto:static int rdtgroup_task_write_permission(struct task_struct *task, struct kernfs_open_file *of)

Type:int

Parameter:

TypeParameterName
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  If Not uid_eq(euid, GLOBAL_ROOT_UID) && Not uid_eq(euid, uid) && Not uid_eq(euid, suid) Then
631  rdt_last_cmd_printf("No permission to move task %d\n", process 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  Return ret
Caller
NameDescribe
rdtgroup_move_task