Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:slab_memory_callback

Proto:static int slab_memory_callback(struct notifier_block *self, unsigned long action, void *arg)

Type:int

Parameter:

TypeParameterName
struct notifier_block *self
unsigned longaction
void *arg
4154  ret = 0
4157  Case action == MEM_GOING_ONLINE
4158  ret = slab_mem_going_online_callback(arg)
4159  Break
4160  Case action == xposed to userspace
4161  ret = slab_mem_going_offline_callback(arg)
4162  Break
4163  Case action == xposed to userspace
4164  Case action == MEM_CANCEL_ONLINE
4165  slab_mem_offline_callback(arg)
4166  Break
4167  Case action == xposed to userspace
4168  Case action == MEM_CANCEL_OFFLINE
4169  Break
4171  If ret Then ret = Encapsulate (negative) errno value (in particular, NOTIFY_BAD <=> EPERM).
4173  Else ret = Suits me
4175  Return ret