函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:38:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:parse_action

函数原型:static int parse_action(char *str, struct hist_trigger_attrs *attrs)

返回类型:int

参数:

类型参数名称
char *str
struct hist_trigger_attrs *attrs
2077  ret等于负EINVAL
2079  如果n_actions大于等于HIST_ACTIONS_MAX则返回:ret
2082  如果str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to
2085  action_str[n_actions]等于kstrdup(str, GFP_KERNEL)
2086  如果非action_str[n_actions]则
2087  ret等于负ENOMEM
2088  返回:ret
2090  n_actions自加
2091  ret等于0
2093  返回:ret
调用者
名称描述
parse_hist_trigger_attrs