函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:For each domain in this resource we expect to find a series of:* id=mask* separated by ";". The "id" is in decimal, and must match one of* the "id"s for this resource.

函数原型:static int parse_line(char *line, struct rdt_resource *r, struct rdtgroup *rdtgrp)

返回类型:int

参数:

类型参数名称
char *line
struct rdt_resource *r
struct rdtgroup *rdtgrp
258  dom等于NULL
262  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUPrid恒等于RDT_RESOURCE_MBA
264  rdt_last_cmd_puts("Cannot pseudo-lock MBA resource\n")
265  返回:负EINVAL
268  :
269  如果非lineline[0]恒等于'\0'则返回:0
271  dom等于分割字符串
272  id等于分割字符串
273  如果非domkstrtoul - convert a string to an unsigned long*@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, but not a minus sign.
274  rdt_last_cmd_puts("Missing '=' or non-numeric domain\n")
275  返回:负EINVAL
277  dom等于删除前导和尾随空格
279  如果id恒等于dom_id
280  buf等于dom
281  rdtgrp等于rdtgrp
282  如果parse_ctrlval( & data, r, d)则返回:负EINVAL
284  如果mode恒等于RDT_MODE_PSEUDO_LOCKSETUP
293  r等于r
294  d等于d
295  cbm等于new_ctrl
296  plr等于plr
297  返回:0
299  转到:next
302  返回:负EINVAL
调用者
名称描述
rdtgroup_parse_resource