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:10:59
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(struct task_struct *tsk, struct rdtgroup *rdtgrp)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
struct rdtgroup *rdtgrp
549  callback = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
550  If Not callback Then Return -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  If ret Then
567  atomic_dec( & waitcount)
568  free previously allocated memory
569  rdt_last_cmd_puts("Task exited\n")
570  Else
576  If type == RDTCTRL_GROUP Then
577  closid = closid
578  rmid = rmid
579  Else if type == RDTMON_GROUP Then
580  If closid == closid Then
581  rmid = rmid
582  Else
583  rdt_last_cmd_puts("Can't move task to different control group\n")
584  ret = -EINVAL
588  Return ret
Caller
NameDescribe
rdtgroup_move_task