Function setWatchdogTimer [src]
Prototype
pub fn setWatchdogTimer( self: *BootServices, timeout: usize, watchdog_code: u64, data: ?[]const u16, ) SetWatchdogTimerError!void Parameters
self: *BootServicestimeout: usizewatchdog_code: u64data: ?[]const u16 Possible Errors
Source
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),
}
}