函数逻辑报告 |
Source Code:kernel\pid_namespace.c |
Create Date:2022-07-27 12:23:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:reboot_pid_ns
函数原型:int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pid_namespace * | pid_ns | |
int | cmd |
312 | 当:cmd恒等于LINUX_REBOOT_CMD_RESTART2 |
317 | 当:cmd恒等于LINUX_REBOOT_CMD_POWER_OFF |
318 | 当:cmd恒等于LINUX_REBOOT_CMD_HALT |
321 | 默认 |
322 | 返回:负EINVAL |
325 | read_lock( & tasklist_lock) |
327 | read_unlock( & tasklist_lock) |
329 | do_exit(0) |
332 | 返回:0 |
名称 | 描述 |
---|---|
SYSCALL_DEFINE4 | Reboot system call: for obvious reasons only root may call it,* and even root needs to set up some magic numbers in the registers* so that some mistake won't make this reboot the whole machine.* You can also set the meaning of the ctrl-alt-del-key here. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |