Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:slab_free_freelist_hook

Proto:static inline bool slab_free_freelist_hook(struct kmem_cache *s, void **head, void **tail)

Type:bool

Parameter:

TypeParameterName
struct kmem_cache *s
void **head
void **tail
1433  next = head
1434  old_tail = If tail Then tail Else head
1438  * head = NULL
1439  * tail = NULL
1441  Do
1442  object = next
1443  next = get_freepointer(s, object)
1445  If slab_want_init_on_free(s) Then
1458  If Not slab_free_hook(s, object) Then
1461  head = object
1462  If Not tail Then tail = object
1465  When object != old_tail cycle
1467  If head == tail Then * tail = NULL
1470  Return * head != NULL
Caller
NameDescribe
slab_free