函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:21:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_freepointer_safe

函数原型:static inline void *get_freepointer_safe(struct kmem_cache *s, void *object)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
void *object
291  如果非For use in fast paths after init_debug_pagealloc() has run, or when a* false negative result is not harmful when called too early.则返回:get_freepointer(s, object)
294  freepointer_addr等于objectFree pointer offset
295  probe_kernel_read(): safely attempt to read from a kernel-space location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
296  返回:Returns freelist pointer (ptr). With hardening, this is obfuscated* with an XOR of the address where the pointer is held and a per-cache* random number.
调用者
名称描述
slab_alloc_nodeInlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath.