Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Slab allocation and freeing

Proto:static inline struct page *alloc_slab_page(struct kmem_cache *s, gfp_t flags, int node, struct kmem_cache_order_objects oo)

Type:struct page

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tflags
intnode
struct kmem_cache_order_objectsoo
1493  order = oo_order(oo)
1495  If node == NUMA_NO_NODE Then page = alloc_pages(flags, order)
1497  Else page = Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().
1500  If page && charge_slab_page(page, flags, order, s) Then
1501  __free_pages(page, order)
1502  page = NULL
1505  Return page
Caller
NameDescribe
allocate_slab