Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\log2.h Create Date:2022-07-28 05:34:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline __attribute__((const)) bool is_power_of_2(unsigned long n)

Type:bool

Parameter:

TypeParameterName
unsigned longn
47  Return n != 0 && (n & n - 1 ) == 0
Caller
NameDescribe
__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_sectorsset size of the chunk for this queue
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