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:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdtgroup_tasks_write

Proto:static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

Type:ssize_t

Parameter:

TypeParameterName
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
672  ret = 0
675  If kstrtoint - convert a string to an int*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign or a minus sign. || pid < 0 Then Return -EINVAL
677  rdtgrp = rdtgroup_kn_lock_live( published fields )
678  If Not rdtgrp Then
679  rdtgroup_kn_unlock( published fields )
680  Return -ENOENT
682  rdt_last_cmd_clear()
684  If mode == RDT_MODE_PSEUDO_LOCKED || mode == RDT_MODE_PSEUDO_LOCKSETUP Then
686  ret = -EINVAL
687  rdt_last_cmd_puts("Pseudo-locking in progress\n")
688  Go to unlock
691  ret = rdtgroup_move_task(pid, rdtgrp, of)
693  unlock :
694  rdtgroup_kn_unlock( published fields )
696  Return If ret Else nbytes