Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.h Create Date:2022-07-28 14:04:15
Last Modify:2022-05-23 16:25:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:virt_to_cache

Proto:static inline struct kmem_cache *virt_to_cache(const void *obj)

Type:struct kmem_cache

Parameter:

TypeParameterName
const void *obj
472  page = virt_to_head_page(obj)
473  If WARN_ONCE(!PageSlab(page), "%s: Object is not a Slab page!\n", __func__) Then Return NULL
476  Return not slob
Caller
NameDescribe
kmem_cache_free_bulk
kfreekfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
__ksize__ksize -- Uninstrumented ksize