Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Exec Kernel system call: for obvious reasons only root may call it

Proto:static inline int kexec_load_check(unsigned long nr_segments, unsigned long flags)

Type:int

Parameter:

TypeParameterName
unsigned longnr_segments
unsigned longflags
200  If Not Check operation authority || kexec_load_disabled Then Return -EPERM
204  result = security_kernel_load_data(LOADING_KEXEC_IMAGE)
205  If result < 0 Then Return result
212  result = security_locked_down(LOCKDOWN_KEXEC)
213  If result Then Return result
220  If (flags & List of defined/legal kexec flags ) != (flags & ~KEXEC_ARCH_MASK) Then Return -EINVAL
226  If nr_segments > The artificial cap on the number of segments passed to kexec_load. Then Return -EINVAL
229  Return 0
Caller
NameDescribe
SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4