Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmem_cache_open

Proto:static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *s
slab_flags_tflags
3616  Used for retrieving partial slabs, etc. = kmem_cache_flags(The size of an object including metadata , flags, Name (only for display!) , ctor)
3621  If Not alculate_sizes() determines the order and the distribution of data within* a slab object. Then Go to error
3623  If disable_higher_order_debug Then
3647  set_min_partial(s, log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (The size of an object including metadata ) / 2)
3649  set_cpu_partial(s)
3652  Defragmentation by allocating from a remote node. = 1000
3656  If (slab_state >= Slab caches usable but not all extras yet ) Then
3657  If init_cache_random_seq(s) Then Go to error
3661  If Not init_kmem_cache_nodes(s) Then Go to error
3664  If alloc_kmem_cache_cpus(s) Then Return 0
3667  free_kmem_cache_nodes(s)
3668  error :
3669  Return -EINVAL
Caller
NameDescribe
__kmem_cache_create