函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\ctrlmondata.c Create Date:2022-07-27 09:13:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdtgroup_schemata_write

函数原型:ssize_t rdtgroup_schemata_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
370  ret等于0
373  如果nbytes恒等于0或buf[nbytes - 1]不等于'\n'则返回:负EINVAL
375  buf[nbytes - 1]等于'\0'
377  cpus_read_lock()
378  rdtgrp等于rdtgroup_kn_lock_live( published fields )
379  如果非rdtgrp
380  rdtgroup_kn_unlock( published fields )
381  cpus_read_unlock()
382  返回:负ENOENT
384  rdt_last_cmd_clear()
390  如果mode恒等于RDT_MODE_PSEUDO_LOCKED
391  ret等于负EINVAL
392  rdt_last_cmd_puts("Resource group is pseudo-locked\n")
393  转到:out
397  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(dom, & domains, list)
398  have_new_ctrl = false
401  当((tok = 分割字符串) != NULL)循环
402  resname等于删除前导和尾随空格
403  如果非tok
404  rdt_last_cmd_puts("Missing ':'\n")
405  ret等于负EINVAL
406  转到:out
408  如果tok[0]恒等于'\0'则
409  rdt_last_cmd_printf("Missing '%s' value\n", resname)
410  ret等于负EINVAL
411  转到:out
413  ret等于rdtgroup_parse_resource(resname, tok, rdtgrp)
414  如果ret则转到:out
419  ret等于update_domains(r, closid)
420  如果ret则转到:out
424  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUP
431  ret等于dtgroup_pseudo_lock_create - Create a pseudo-locked region*@rdtgrp: resource group to which pseudo-lock region belongs* Called when a resource group in the pseudo-locksetup mode receives a* valid schemata that should be pseudo-locked
434  out :
435  rdtgroup_kn_unlock( published fields )
436  cpus_read_unlock()
437  返回:如果ret否则nbytes