Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\sparse.c Create Date:2022-07-28 15:34:29
Last Modify:2020-03-17 22:36:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sparse_buffer_alloc

Proto:void *__meminit sparse_buffer_alloc(unsigned long size)

Type:void

Parameter:

TypeParameterName
unsigned longsize
505  void * ptr = NULL
507  If sparsemap_buf Then
508  ptr = undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().((unsignedlong)sparsemap_buf, size)
509  If ptr + size > sparsemap_buf_end Then ptr = NULL
511  Else
513  If ptr - sparsemap_buf > 0 Then sparse_buffer_free((unsignedlong)(ptr - sparsemap_buf))
515  sparsemap_buf = ptr + size
518  Return ptr
Caller
NameDescribe
vmemmap_alloc_block_bufd to make sure size is all the same during early stage