STRUCT SYS_OFF_DATA(9)
๐ struct sys_off_data(9)
okay bestie, welcome to the Kernel API Manual โจ this page is all about struct sys_off_data, which is literally the sys-off callback argument. no cap, that's the whole main-character vibe.
๐ NAME
struct sys_off_data โ the sys-off callback argument ๐ซถ
โจ SYNOPSIS
struct sys_off_data {
int mode;
void *cb_data;
const char *cmd;
struct device *dev;
};
๐ธ Members
modeโ the Mode ID ๐ right now it's currently used only by the sys-off restart mode, so peek atenum reboot_modefor the available modes.cb_dataโ the user's callback data ๐cmdโ command string โญ currently used only by the sys-off restart mode, and it'sNULLotherwise.devโ device of the sys-off handler ๐ฆ only if it's known (devm_register_*), andNULLotherwise.
๐ฎ SEE ALSO
Kernel file ./include/linux/reboot.h, plus enum hw_protection_action(9) and hw_protection_trigger(9) ๐
and that's the tea, bestie ๐ this page is sourced from ./include/linux, dated October 2026, and it's the struct sys_off_data(9) page โ periodt ๐
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms