Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\ctrlmondata.c Create Date:2022-07-28 08:12:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int parse_line(char *line, struct rdt_resource *r, struct rdtgroup *rdtgrp)

Type:int

Parameter:

TypeParameterName
char *line
struct rdt_resource *r
struct rdtgroup *rdtgrp
258  dom = NULL
262  If mode == RDT_MODE_PSEUDO_LOCKSETUP && rid == RDT_RESOURCE_MBA Then
264  rdt_last_cmd_puts("Cannot pseudo-lock MBA resource\n")
265  Return -EINVAL
268  :
269  If Not line || line[0] == '\0' Then Return 0
271  dom = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
272  id = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
273  If Not dom || kstrtoul - 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. Then
274  rdt_last_cmd_puts("Missing '=' or non-numeric domain\n")
275  Return -EINVAL
277  dom = strim - Removes leading and trailing whitespace from @s.*@s: The string to be stripped.* Note that the first trailing whitespace is replaced with a %NUL-terminator* in the given string @s. Returns a pointer to the first non-whitespace* character in @s.
279  If id == dom_id Then
280  buf = dom
281  rdtgrp = rdtgrp
282  If parse_ctrlval( & data, r, d) Then Return -EINVAL
284  If mode == RDT_MODE_PSEUDO_LOCKSETUP Then
293  r = r
294  d = d
295  cbm = new_ctrl
296  plr = plr
297  Return 0
299  Go to next
302  Return -EINVAL
Caller
NameDescribe
rdtgroup_parse_resource