Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:early_init_on_alloc

Proto:static int __init early_init_on_alloc(char *buf)

Type:int

Parameter:

TypeParameterName
char *buf
157  If Not buf Then Return -EINVAL
159  ret = kstrtobool - convert common user inputs into boolean values*@s: input string*@res: result* This routine returns 0 iff the first character is one of 'Yy1Nn0', or* [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
160  If bool_result && page_poisoning_enabled() Then pr_info("mem auto-init: CONFIG_PAGE_POISONING is on, will take precedence over init_on_alloc\n")
162  If bool_result Then Normal usage; boolean enable/disable.( & init_on_alloc)
164  Else static_branch_disable( & init_on_alloc)
166  Return ret