Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:s_kernel_rodata - checks if the pointer address is located in the* .rodata section*@addr: address to check* Returns: true if the address is located in .rodata, false otherwise.

Proto:static inline bool is_kernel_rodata(unsigned long addr)

Type:bool

Parameter:

TypeParameterName
unsigned longaddr
168  Return addr >= __start_rodata && addr < __end_rodata
Caller
NameDescribe
kfree_constkfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
kstrdup_constkstrdup_const - conditionally duplicate an existing const string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Note: Strings allocated by kstrdup_const should be freed by kfree_const.