Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:extend_brk

Proto:void *__init extend_brk(size_t size, size_t align)

Type:void

Parameter:

TypeParameterName
size_tsize
size_talign
263  mask = align - 1
266  BUG_ON(_brk_start == 0)
267  BUG_ON(align & mask)
269  _brk_end = _brk_end + mask & ~mask
270  BUG_ON((char * )(_brk_end + size) > __brk_limit)
272  ret = _brk_end
273  _brk_end += size
275  memset(ret, 0, size)
277  Return ret