函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\sparse.c Create Date:2022-07-27 17:07:47
Last Modify:2020-03-17 22:36:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sparse_buffer_alloc

函数原型:void *__meminit sparse_buffer_alloc(unsigned long size)

返回类型:void

参数:

类型参数名称
unsigned longsize
505  void * ptr = NULL
507  如果sparsemap_buf
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  如果ptrsize大于sparsemap_buf_endptr = NULL
511  否则
513  如果ptrsparsemap_buf大于0则sparse_buffer_free((unsignedlong)(ptr - sparsemap_buf))
515  sparsemap_buf等于ptrsize
518  返回:ptr
调用者
名称描述
vmemmap_alloc_block_bufd to make sure size is all the same during early stage