函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-27 12:04:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:crash_notes_memory_init

函数原型:static int __init crash_notes_memory_init(void)

返回类型:int

参数:

1096  size等于sizeof(note_buf_t)
1097  align等于两数取小(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. 等于做一个当前的副本
1106  如果非Per cpu memory for storing cpu states in case of system crash.
1107  打印警告信息("Memory allocation for saving cpu register states failed\n")
1108  返回:负ENOMEM
1110  返回:0