函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\string.c Create Date:2022-07-27 08:26:15
Last Modify:2022-05-21 21:56:45 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for

函数原型:char *strchr(const char *s, int c)

返回类型:char

参数:

类型参数名称
const char *s
intc
196 s不等于c循环
197  如果s自加恒等于'\0'则返回:NULL
199  返回:s
调用者
名称描述
match_onematch_one: - Determines if a string matches a simple pattern*@s: the string to examine for presence of the pattern*@p: the string containing the pattern*@args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match* locations.
kvasprintf_constIf fmt contains no % (or is exactly %s), use kstrdup_const. If fmt* (or the sole vararg) points to rodata, we will then save a memory* allocation and string copy. In any case, the return value should be* freed using kfree_const().
strchr_selftest
string_escape_memstring_escape_mem - quote characters in the given memory buffer*@src: source buffer (unescaped)*@isz: source buffer size*@dst: destination buffer (escaped)*@osz: destination buffer size*@flags: combination of the flags*@only: NULL-terminated string
kasan_strings
ddebug_parse_queryParse words[] as a ddebug query specification, which is a series* of (keyword, value) pairs chosen from these possibilities:* func * file * file * module * format
ddebug_dyndbg_param_cbhelper for ddebug_dyndbg_(boot|module)_param_cb
rdtgroup_mkdir
acpi_sleep_setup
apm_setup
hpet_setupHPET command line enable / disable
console_setupSet up a console. Called via do_early_param() in init/main.c* for each "console=" parameter in the boot command line.
_braille_console_setup
get_last_crashkernel
__parse_crashkernel
cgroup_mkdir
map_write
add_nodeCreate a node for a given profiling data set and add it to all lists and* debugfs. Needs to be called with node_lock held.
within_kprobe_blacklist
kdb_search_stringsearch arg1 to see if it contains arg2* (kdmain.c provides flags for ^pat and pat$)* return 1 for found, 0 for not found
vkdb_printf
kdbgetenvkdbgetenv - This function will return the character string value of* an environment variable.* Parameters:* match A character string representing an environment variable.* Returns:* NULL No environment variable matches 'match'
parse_grepThe "str" argument may point to something like | grep xyz
kdb_bt1kdb_bt* This function implements the 'bt' command
trace_parse_run_command
f_show
filter_parse_regexlter_parse_regex - parse a basic regex*@buff: the raw regex*@len: length of the regex*@search: will point to the beginning of the string to compare*@not: tell whether the match will have to be inverted* This passes in a buffer containing a regex and this
filter_assign_type
synth_field_string_size
parse_synth_field
synth_event_create
parse_hist_trigger_attrs
parse_atom
parse_unary
trace_kprobe_module_exist
trace_kprobe_create
setup_boot_kprobe_events
dyn_event_release
find_fetch_type
traceprobe_parse_event_name@buf must has MAX_EVENT_NAME_LEN size
parse_probe_argRecursive argument parser
traceprobe_parse_probe_arg_bodyString length checking wrapper
traceprobe_parse_probe_arg
trace_uprobe_create
bpf_lookup
unknown_bootoptionUnknown boot options get handed to init, unless they look like* unused parameters (modprobe will find them in /proc/cmdline).
devt_from_partuuiddevt_from_partuuid - looks up the dev_t of a partition by its UUID*@uuid_str: char array containing ascii UUID* The function will return the first partition which contains a matching* UUID value in its partition_meta_info struct. This does not search
get_fs_names
md_setup_drive
raid_setup
tokenize_frame_descr
parse_subpart
parse_parts
cmdline_parts_parse
show_sid
smack_sb_eat_lsm_opts
tomoyo_write_profilemoyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.
tomoyo_add_entrymoyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing.
tomoyo_parse_policymoyo_parse_policy - Parse a policy line.*@head: Poiter to "struct tomoyo_io_buffer".*@line: Line to parse.* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_load_builtin_policymoyo_load_builtin_policy - Load built-in policy.* Returns nothing.
tomoyo_scan_bprmmoyo_scan_bprm - Scan "struct linux_binprm".*@ee: Pointer to "struct tomoyo_execve".*@argc: Length of @argc.*@argv: Pointer to "struct tomoyo_argv".*@envc: Length of @envp.*@envp: Poiner to "struct tomoyo_envp".* Returns true on success, false otherwise.
tomoyo_get_transit_preferencemoyo_get_transit_preference - Parse domain transition preference for execve().*@param: Pointer to "struct tomoyo_acl_param".*@e: Pointer to "struct tomoyo_condition".* Returns the condition string part.
tomoyo_get_conditionmoyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise.
tomoyo_write_envmoyo_write_env - Write "struct tomoyo_env_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_parse_ipaddr_unionmoyo_parse_ipaddr_union - Parse an IP address.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_ipaddr_union".* Returns true on success, false otherwise.
tomoyo_read_tokenmoyo_read_token - Read a word from a line.*@param: Pointer to "struct tomoyo_acl_param".* Returns a word on success, "" otherwise.* To allow the caller to skip NULL check, this function returns "" rather than* NULL if there is no more words to read.
tomoyo_correct_domainmoyo_correct_domain - Check whether the given domainname follows the naming rules.*@domainname: The domainname to check.* Returns true if @domainname follows the naming rules, false otherwise.
tomoyo_domain_defmoyo_domain_def - Check whether the given token can be a domainname.*@buffer: The token to check.* Returns true if @buffer possibly be a domainname, false otherwise.
tomoyo_path_matches_pattern2moyo_path_matches_pattern2 - Do pathname pattern matching.*@f: The start of string to check.*@p: The start of pattern to compare.* Returns true if @f matches @p, false otherwise.
mangle_nameaa_mangle_name - mangle a profile name to std profile layout form*@name: profile name to mangle (NOT NULL)*@target: buffer to store mangled name, same length as @name (MAYBE NULL)* Returns: length of mangled name
aa_split_fqnameaa_split_fqname - split a fqname into a profile and namespace name*@fqname: a full qualified name in namespace profile format (NOT NULL)*@ns_name: pointer to portion of the string containing the ns name (NOT NULL)* Returns: profile name or NULL if one is
parse_policy_lineIn the case the input buffer contains one or more invalid UIDs, the kuid_t* variables pointed to by @parent and @child will get updated but this* function will return an error.* Contents of @buf may be modified.
handle_policy_update
get_fs_type
do_new_mountreate a new mount for userspace and request it to be added into the* namespace's tree
mangle_pathmangle_path - mangle and copy path to buffer beginning*@s: buffer start*@p: beginning of path in above buffer*@esc: set of characters that need escaping* Copy the path from @p to @s, replacing each occurrence of character from*@esc with usual octal escape
generic_parse_monolithicgeneric_parse_monolithic - Parse key[=val][,key[=val]]* mount data*@ctx: The superblock configuration to fill in.*@data: The data to parse* Parse a blob of data that's in key[=val][,key[=val]]* form. This can be
logfclogfc - Log a message to a filesystem context*@fc: The filesystem context to log to.*@fmt: The format of the buffer.
legacy_parse_paramAdd a parameter to a legacy config. We build up a comma-separated list of* options.
base64_decode
create_entryThis registers a new binary format, it recognises the syntax* ':name:type:offset:magic:mask:interpreter:flags'* where the ':' is the IFS, that can be chosen with the first char