Defined in 3 files as a prototype:
- arch/microblaze/include/asm/setup.h, line 23 (as a prototype)
- arch/mips/sgi-ip27/ip27-reset.c, line 31 (as a prototype)
- include/linux/reboot.h, line 58 (as a prototype)
Defined in 24 files as a function:
- arch/alpha/kernel/process.c, line 175 (as a function)
- arch/arc/kernel/reset.c, line 17 (as a function)
- arch/arm/kernel/reboot.c, line 134 (as a function)
- arch/arm64/kernel/process.c, line 130 (as a function)
- arch/csky/kernel/power.c, line 23 (as a function)
- arch/hexagon/kernel/reset.c, line 20 (as a function)
- arch/loongarch/kernel/reset.c, line 60 (as a function)
- arch/m68k/kernel/process.c, line 56 (as a function)
- arch/microblaze/kernel/reset.c, line 35 (as a function)
- arch/mips/kernel/reset.c, line 88 (as a function)
- arch/mips/lantiq/falcon/reset.c, line 35 (as a function)
- arch/nios2/kernel/process.c, line 43 (as a function)
- arch/openrisc/kernel/process.c, line 54 (as a function)
- arch/parisc/kernel/process.c, line 68 (as a function)
- arch/powerpc/kernel/setup-common.c, line 141 (as a function)
- arch/powerpc/platforms/85xx/ksi8560.c, line 47 (as a function)
- arch/riscv/kernel/reset.c, line 19 (as a function)
- arch/s390/kernel/setup.c, line 322 (as a function)
- arch/sh/kernel/reboot.c, line 81 (as a function)
- arch/sparc/kernel/process_32.c, line 86 (as a function)
- arch/sparc/kernel/reboot.c, line 41 (as a function)
- arch/um/kernel/reboot.c, line 46 (as a function)
- arch/x86/kernel/reboot.c, line 786 (as a function)
- arch/xtensa/kernel/setup.c, line 522 (as a function)
Referenced in 16 files:
- arch/microblaze/mm/init.c
- arch/mips/ath25/ar2315.c, line 63
- arch/mips/ath25/ar5312.c, line 68
- arch/mips/lantiq/falcon/reset.c, line 69
- arch/mips/sibyte/bcm1480/setup.c, line 117
- arch/mips/sibyte/sb1250/setup.c
- arch/parisc/kernel/process.c, line 131
- arch/parisc/kernel/toc.c, line 102
- arch/parisc/net/bpf_jit_core.c
- arch/powerpc/kexec/core.c, line 59
- arch/powerpc/platforms/85xx/ksi8560.c, line 183
- arch/um/drivers/mconsole_kern.c, line 211
- drivers/mfd/ab8500-sysctrl.c, line 77
- drivers/power/reset/restart-poweroff.c, line 20
- include/asm-generic/emergency-restart.h, line 7
- kernel/reboot.c, line 298
Smatch caller information:
kernel/reboot.c kernel_restart() -> machine_restart()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | cmd | (-1),10,27,31,34,256 |
| BUF_SIZE | 0 | cmd | (-1),10,27,31,34,256 |
| DATA_SOURCE | 0 | cmd | $0 |
| STR_LEN | 0 | cmd | (-1),9,26,30,33 |
| STR_LEN | 0 | cmd | (-1),9,26,30,33 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &sc->state_mtx | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
drivers/power/reset/restart-poweroff.c restart_poweroff_do_poweroff() -> machine_restart()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cmd | 0 |
| NOCHECK_CALL |