This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Namespace
pubconstLINUX_REBOOT = struct {
/// First magic value required to use _reboot() system call.pubconstMAGIC1 = enum(u32) {
MAGIC1 = 0xfee1dead,
_,
};
/// Second magic value required to use _reboot() system call.pubconstMAGIC2 = enum(u32) {
MAGIC2 = 672274793,
MAGIC2A = 85072278,
MAGIC2B = 369367448,
MAGIC2C = 537993216,
_,
};
/// Commands accepted by the _reboot() system call.pubconstCMD = enum(u32) {
/// Restart system using default command and mode.RESTART = 0x01234567,
/// Stop OS and give system control to ROM monitor, if any.HALT = 0xCDEF0123,
/// Ctrl-Alt-Del sequence causes RESTART command.CAD_ON = 0x89ABCDEF,
/// Ctrl-Alt-Del sequence sends SIGINT to init task.CAD_OFF = 0x00000000,
/// Stop OS and remove all power from system, if possible.POWER_OFF = 0x4321FEDC,
/// Restart system using given command string.RESTART2 = 0xA1B2C3D4,
/// Suspend system using software suspend if compiled in.SW_SUSPEND = 0xD000FCE2,
/// Restart system using a previously loaded Linux kernelKEXEC = 0x45584543,
_,
};
}
flags for the
reboot' system call.