函数逻辑报告

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:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdtgroup_move_task

函数原型:static int rdtgroup_move_task(pid_t pid, struct rdtgroup *rdtgrp, struct kernfs_open_file *of)

返回类型:int

参数:

类型参数名称
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  如果pid
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  如果非tsk
650  rdt_last_cmd_printf("No task %d\n", pid)
651  返回:负ESRCH
653  否则
654  tsk等于当前进程
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  如果非retret等于__rdtgroup_move_task(tsk, rdtgrp)
664  put_task_struct(tsk)
665  返回:ret
调用者
名称描述
rdtgroup_tasks_write