Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmalloc_init

Proto:void __init vmalloc_init(void)

Type:void

Parameter:Nothing

1948  This kmem_cache is used for vmap_area objects. Instead of* allocating from slab we reuse an object from this cache to* make things faster. Especially in "no edge" splitting of* free block. = Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(vmap_area, Panic if kmem_cache_create() fails )
1950  for_each_possible_cpu(i)
1954  vbq = per_cpu(Queue of free and dirty vmap blocks, for allocation and flushing purposes , i)
1955  Process spin lock initialization( & lock)
1956  Initialization list head
1957  p = per_cpu(vfree_deferred, i)
1958  _llist_head - initialize lock-less list head*@head: the head for your lock-less list
1959  INIT_WORK( & wq, free_work)
1963  When tmp cycle
1964  va = Shortcuts
1965  If WARN_ON_ONCE(!va) Then Continue
1968  va_start = addr
1969  va_end = va_start + size
1970  in "busy" tree = tmp
1971  insert_vmap_area(va, & vmap_area_root, & Export for kexec only )
1977  vmap_init_free_space()
1978  vmap_initialized = true