STRUCT SYS_OFF_DATA(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ 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 at enum reboot_mode for the available modes.
  • cb_data โ€” the user's callback data ๐ŸŽ€
  • cmd โ€” command string โญ currently used only by the sys-off restart mode, and it's NULL otherwise.
  • dev โ€” device of the sys-off handler ๐Ÿฆ‹ only if it's known (devm_register_*), and NULL otherwise.

๐Ÿ”ฎ 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