Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:crash_notes_memory_init

Proto:static int __init crash_notes_memory_init(void)

Type:int

Parameter:Nothing

1096  size = sizeof(note_buf_t)
1097  align = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(undup_pow_of_two - round the given value up to nearest power of two*@n: parameter* round the given value up to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(sizeof(note_buf_t)), PAGE_SIZE)
1103  BUILD_BUG_ON - break compile if a condition is true(size > PAGE_SIZE)
1105  Per cpu memory for storing cpu states in case of system crash. = allocate one copy of the object for every present
1106  If Not Per cpu memory for storing cpu states in case of system crash. Then
1107  pr_warn("Memory allocation for saving cpu register states failed\n")
1108  Return -ENOMEM
1110  Return 0