Function report | 
Source Code:kernel\pid_namespace.c | 
Create Date:2022-07-28 11:20:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:reboot_pid_ns
Proto:int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct pid_namespace * | pid_ns | |
| int | cmd | 
| 312 | Case cmd == LINUX_REBOOT_CMD_RESTART2 | 
| 315 | Break | 
| 317 | Case cmd == LINUX_REBOOT_CMD_POWER_OFF | 
| 318 | Case cmd == LINUX_REBOOT_CMD_HALT | 
| 320 | Break | 
| 321 | Default | 
| 322 | Return -EINVAL | 
| 325 | read_lock( & tasklist_lock) | 
| 326 | send_sig(SIGKILL, child_reaper, 1) | 
| 327 | read_unlock( & tasklist_lock) | 
| 329 | do_exit(0) | 
| 332 | Return 0 | 
| Name | Describe | 
|---|---|
| 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. | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |