函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\string.h Create Date:2022-07-27 06:38:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static __always_inline size_t str_has_prefix(const char *str, const char *prefix)

返回类型:size_t

参数:

类型参数名称
const char *str
const char *prefix
504  len等于strlen(prefix)
505  返回:如果字符串指定长度比较恒等于0则len否则0
调用者
名称描述
decode_state
__control_devkmsg
_braille_console_setup
parse_grepThe "str" argument may point to something like | grep xyz
trace_set_options
enable_stacktrace
f_show
synth_field_signed
synth_event_create
parse_action
parse_assignment
action_parse
parse_actions
parse_probe_vars