Zig 0.17.0-dev (Split by item) 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.
std › os › uefi › tables › boot_services › BootServices › setWatchdogTimer Public Function setWatchdogTimer Doc Source Public Function std.os.uefi.tables.boot_services.BootServices.setWatchdogTimer
pub fn setWatchdogTimer (
self : *BootServices ,
timeout : usize ,
watchdog_code : u64 ,
data : ?[]const u16 ,
) SetWatchdogTimerError !void Params self : *BootServices timeout : usize watchdog_code : u64 data : ?[]const u16 File os/uefi/tables/boot_services.zig: 934
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952 pub fn setWatchdogTimer (
self : *BootServices ,
timeout : usize ,
watchdog_code : u64 ,
data : ?[]const u16 ,
) SetWatchdogTimerError !void {
switch (self ._setWatchdogTimer (
timeout ,
watchdog_code ,
if (data ) |d | d .len else 0 ,
if (data ) |d | d .ptr else null ,
)) {
.success => {},
.invalid_parameter => return error .InvalidParameter ,
.unsupported => return error .Unsupported ,
.device_error => return error .DeviceError ,
else => |status | return uefi .unexpectedStatus (status ),
}
}