函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE4

函数原型:SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments, struct kexec_segment __user *, segments, unsigned long, flags)

返回类型:

参数:

237  result等于Exec Kernel system call: for obvious reasons only root may call it
238  如果result则返回:result
242  如果prefix, newline flags 按位与KEXEC_ARCH_MASK的值不等于The native architecture prefix, newline flags 按位与KEXEC_ARCH_MASK的值不等于These values match the ELF architecture values.* Unless there is a good reason that should continue to be the case.则返回:负EINVAL
254  如果非mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically则返回:负EBUSY
257  result等于do_kexec_load(entry, nr_segments, segments, prefix, newline flags )
259  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
261  返回:result