函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Exec Kernel system call: for obvious reasons only root may call it

函数原型:static inline int kexec_load_check(unsigned long nr_segments, unsigned long flags)

返回类型:int

参数:

类型参数名称
unsigned longnr_segments
unsigned longflags
200  如果非操作权限检查kexec_load_disabled则返回:负EPERM
204  result等于security_kernel_load_data(LOADING_KEXEC_IMAGE)
205  如果result小于0则返回:result
212  result等于security_locked_down(LOCKDOWN_KEXEC)
213  如果result则返回:result
220  如果flags按位与List of defined/legal kexec flags 的值不等于flags按位与KEXEC_ARCH_MASK的反的值则返回:负EINVAL
226  如果nr_segments大于The artificial cap on the number of segments passed to kexec_load. 则返回:负EINVAL
229  返回:0
调用者
名称描述
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4