Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:47:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_freepointer_safe

Proto:static inline void *get_freepointer_safe(struct kmem_cache *s, void *object)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
void *object
291  If Not For use in fast paths after init_debug_pagealloc() has run, or when a* false negative result is not harmful when called too early. Then Return get_freepointer(s, object)
294  freepointer_addr = object + Free 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  Return 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.
Caller
NameDescribe
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.