函数逻辑报告

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

函数名称:__rdtgroup_move_task

函数原型:static int __rdtgroup_move_task(struct task_struct *tsk, struct rdtgroup *rdtgrp)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
struct rdtgroup *rdtgrp
549  callback等于分配内存并置零
550  如果非callback则返回:负ENOMEM
552  func等于move_myself
553  rdtgrp等于rdtgrp
559  atomic_inc( & waitcount)
560  ret等于ask_work_add - ask the @task to execute @work->func()*@task: the task which should run the callback*@work: the callback to run*@notify: send the notification if true* Queue @work for task_work_run() below and notify the @task if @notify.
561  如果ret
567  atomic_dec( & waitcount)
568  释放内存
569  rdt_last_cmd_puts("Task exited\n")
570  否则
576  如果type恒等于RDTCTRL_GROUP
577  closid等于closid
578  rmid等于rmid
579  否则如果type恒等于RDTMON_GROUP
580  如果closid恒等于closid
581  rmid等于rmid
582  否则
583  rdt_last_cmd_puts("Can't move task to different control group\n")
584  ret等于负EINVAL
588  返回:ret
调用者
名称描述
rdtgroup_move_task