函数逻辑报告

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

函数名称:rdtgroup_tasks_write

函数原型:static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)

返回类型:ssize_t

参数:

类型参数名称
struct kernfs_open_file *of
char *buf
size_tnbytes
loff_toff
672  ret等于0
675  如果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则返回:负EINVAL
677  rdtgrp等于rdtgroup_kn_lock_live( published fields )
678  如果非rdtgrp
679  rdtgroup_kn_unlock( published fields )
680  返回:负ENOENT
682  rdt_last_cmd_clear()
684  如果mode恒等于RDT_MODE_PSEUDO_LOCKEDmode恒等于RDT_MODE_PSEUDO_LOCKSETUP
686  ret等于负EINVAL
687  rdt_last_cmd_puts("Pseudo-locking in progress\n")
688  转到:unlock
691  ret等于rdtgroup_move_task(pid, rdtgrp, of)
693  unlock :
694  rdtgroup_kn_unlock( published fields )
696  返回:如果ret否则nbytes