函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.

函数原型:static inline __attribute__((const)) bool is_power_of_2(unsigned long n)

返回类型:bool

参数:

类型参数名称
unsigned longn
47  返回:n不等于0且n按位与n减1的值恒等于0
调用者
名称描述
__kfifo_init
hex_dump_to_bufferhex_dump_to_buffer - convert a blob of data to "hex ASCII" in memory*@buf: data blob to dump*@len: number of bytes in the @buf*@rowsize: number of bytes to print per line; must be 16 or 32*@groupsize: number of bytes to print at a time (1, 2, 4, 8;
test_hexdump_prepare_test
arch_build_bp_info
kcov_move_area
reg_set_min_maxAdjusts the register min/max values in the case that the dst_reg is the* variable register that we are working on, and src_reg is a constant or we're* simply doing a BPF_K check.* In JEQ/JNE cases we also adjust the var_off values.
reg_set_min_max_invSame as above, but for the case that dst_reg holds a constant and src_reg is* the variable reg.
array_map_gen_lookupmit BPF instructions equivalent to C code of array_map_lookup_elem()
array_of_map_gen_lookup
btf_enum_check_meta
perf_mmap
pcpu_allocpcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align
alloc_vmap_areaAllocate a region of KVA of the specified size and alignment, within the* vstart and vend.
__do_kmalloc_nodeEnd of slob allocator proper. Begin kmem_cache_alloc and kmalloc frontend.
cma_declare_contiguousma_declare_contiguous() - reserve custom contiguous area*@base: Base address of the reserved area optional, use 0 for any*@size: Size of the reserved area (in bytes),*@limit: End address of the reserved memory (optional, 0 for any)
blk_queue_chunk_sectorslk_queue_chunk_sectors - set size of the chunk for this queue*@q: the request queue for the device*@chunk_sectors: chunk sectors in the usual 512b unit* Description:* If a driver doesn't want IOs to cross a given chunk size, it can set
blk_revalidate_zone_cbHelper function to check the validity of zones of a zoned block device.
flags_to_propagation_typeSanity check the flags to change_mnt_propagation.
set_blocksize
fsverity_check_hash_algs
fsverity_init_merkle_tree_paramssverity_init_merkle_tree_params() - initialize Merkle tree parameters*@params: the parameters struct to initialize*@inode: the inode for which the Merkle tree is being built*@hash_algorithm: number of hash algorithm to use*@log_blocksize: log base 2 of
__bits_per
__idx_to_offset
__genradix_iter_advance
iommu_is_span_boundary