函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:内存比较

函数原型:int memcmp(const void *s1, const void *s2, size_t len)

返回类型:int

参数:

类型参数名称
const void *s1
const void *s2
size_tlen
35  asm("repe; cmpsb" CC_SET:CC_OUT(diff), "+D"(s1), "+S"(s2), "+c"(len))
37  返回:diff
调用者
名称描述
bcmpClang may lower `memcmp == 0` to `bcmp == 0`.
strstrstrstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
arch_jump_label_transform_static
__text_poke
text_poke_loc_init
tboot_probe
microcode_checkThe microcode loader calls this upon late microcode load to recheck features,* only when microcode has been updated. Caller holds microcode_mutex and CPU* hotplug lock.
vmware_platformWhile checking the dmi string information, just checking the product* serial key should be enough, as this will always have a VMware* specific string when running under VMware hypervisor.* If !boot_cpu_has(X86_FEATURE_HYPERVISOR), vmware_hypercall_mode
ms_hyperv_platform
smp_check_mpcRead/parse the MPC
mp_save_irqWill be called in mpparse/acpi/sfi codes for saving IRQ info
bzImage64_probe
mark_swapfilesSaving part
swsusp_checkswsusp_check - Check for swsusp signature in the resume device
irq_timings_next_event_index
find_module_allSearch for module by name: must hold module_mutex (or preempt disabled* for read-only access).
elf_header_checkSanity checks against invalid binaries, wrong arch, weird elf version.
blacklisted
elf_is_elf_file
compare_css_setsmpare_css_sets - helper function for find_existing_css_set()
gdb_cmd_queryHandle the 'q' query packets
keys_match
cmp_entries_dup
detect_dups
regex_match_end
regsafeReturns true if (rold safe implies rcur safe)
refsafe
states_maybe_looping
opt_remove_nops
lookup_elem_rawhis lookup function can only be called with bucket lock taken
lookup_nulls_elem_rawan be called without bucket lock. it will repeat the loop in* the unlikely event when elements moved from one bucket into another* while link list is being walked
stack_map_get_build_idParse build ID of ELF file mapped to vma
____bpf_get_stackid
modify_user_hw_breakpoint_check
do_header
read_swap_header
OK_id
atari_partition
sysv68_partition
TSS_checkhmac1verify the AUTH1_COMMAND (Seal) result from TPM
TSS_checkhmac2verify the AUTH2_COMMAND (unseal) result from TPM
match_opt_prefix
match_opt_prefix
tomoyo_same_conditionmoyo_same_condition - Check for duplicated "struct tomoyo_condition" entry.*@a: Pointer to "struct tomoyo_condition".*@b: Pointer to "struct tomoyo_condition".* Returns true if @a == @b, false otherwise.
tomoyo_same_number_groupmoyo_same_number_group - Check for duplicated "struct tomoyo_number_group" entry.*@a: Pointer to "struct tomoyo_acl_head".*@b: Pointer to "struct tomoyo_acl_head".* Returns true if @a == @b, false otherwise.
tomoyo_address_matches_groupmoyo_address_matches_group - Check whether the given address matches members of the given address group.*@is_ipv6: True if @address is an IPv6 address.*@address: An IPv4 or IPv6 address.*@group: Pointer to "struct tomoyo_address_group".
tomoyo_print_ipv6moyo_print_ipv6 - Print an IPv6 address.*@buffer: Buffer to write to.*@buffer_len: Size of @buffer.*@min_ip: Pointer to "struct in6_addr".*@max_ip: Pointer to "struct in6_addr".* Returns nothing.
tomoyo_check_inet_aclmoyo_check_inet_acl - Check permission for inet domain socket operation.*@r: Pointer to "struct tomoyo_request_info".*@ptr: Pointer to "struct tomoyo_acl_info".* Returns true if granted, false otherwise.
aa_write_accessaa_write_access - generic permissions and data query*@file: pointer to open apparmorfs/access file*@ubuf: user buffer containing the complete query string (NOT NULL)*@count: size of ubuf*@ppos: position in the file (MUST BE ZERO)* Allows for one
aa_rawdata_eq
ima_lookup_digest_entrylookup up the digest value in the hash table, and return the entry
ima_get_hash_algo
xattr_verifyxattr_verify - verify xattr digest or signature* Verify whether the hash or signature matches the file contents.* Return 0 on success, error code otherwise.
ima_read_modsigma_read_modsig - Read modsig from buf.* Return: 0 on success, error code otherwise.
find_or_insert_direct_keyFind/insert the given key into the fscrypt_direct_keys table. If found, it* is returned with elevated refcount, and 'to_insert' is freed if non-NULL. If* not found, 'to_insert' is inserted and returned if it's non-NULL; otherwise* NULL is returned.
fscrypt_policies_equal
cmp_hashes
load_em86
load_elf_binary
is_elf
v2r0_disk2memdqb
v2r1_disk2memdqb
__jump_label_set_jump_code
dattrs_equalhandle null as "default"
addr_match
tomoyo_same_ipaddr_unionmoyo_same_ipaddr_union - Check for duplicated "struct tomoyo_ipaddr_union" entry.*@a: Pointer to "struct tomoyo_ipaddr_union".*@b: Pointer to "struct tomoyo_ipaddr_union".* Returns true if @a == @b, false otherwise.
fscrypt_match_name
fanotify_fid_equal
fscrypt_policies_equalscrypt_policies_equal - check whether two encryption policies are the same* Return: %true if equal, else %false