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_move_task

Proto:static int rdtgroup_move_task(pid_t pid, struct rdtgroup *rdtgrp, struct kernfs_open_file *of)

Type:int

Parameter:

TypeParameterName
pid_tpid
struct rdtgroup *rdtgrp
struct kernfs_open_file *of
645  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
646  If pid Then
647  tsk = d a task by one of its numerical ids* find_task_by_pid_ns():* finds a task by its pid in the specified namespace* find_task_by_vpid():* finds a task by its virtual pid* see also find_vpid() etc in include/linux/pid.h
648  If Not tsk Then
650  rdt_last_cmd_printf("No task %d\n", pid)
651  Return -ESRCH
653  Else
654  tsk = current process
657  get_task_struct(tsk)
658  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
660  ret = rdtgroup_task_write_permission(tsk, of)
661  If Not ret Then ret = __rdtgroup_move_task(tsk, rdtgrp)
664  put_task_struct(tsk)
665  Return ret
Caller
NameDescribe
rdtgroup_tasks_write