Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:slab_mem_going_online_callback

Proto:static int slab_mem_going_online_callback(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
4115  marg = arg
4116  nid = status_change_nid_normal
4117  ret = 0
4123  If nid < 0 Then Return 0
4131  mutex_lock( & slab_mutex)
4138  n = kmem_cache_alloc(kmem_cache_node, GFP_KERNEL)
4139  If Not n Then
4140  ret = -ENOMEM
4141  Go to out
4143  init_kmem_cache_node(n)
4144  node[nid] = n
4146  out :
4147  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
4148  Return ret
Caller
NameDescribe
slab_memory_callback