Function exit [src]
message must be allocated using allocatePool.
Prototype
pub fn exit( self: *BootServices, handle: Handle, status: Status, message: ?[:0]const u16, ) ExitError!void Parameters
self: *BootServiceshandle: Handlestatus: Statusmessage: ?[:0]const u16 Possible Errors
Source
pub fn exit(
self: *BootServices,
handle: Handle,
status: Status,
message: ?[:0]const u16,
) ExitError!void {
switch (self._exit(
handle,
status,
if (message) |msg| (2 * msg.len) + 1 else 0,
if (message) |msg| @ptrCast(msg.ptr) else null,
)) {
.success => {},
.invalid_parameter => return error.InvalidParameter,
else => |exit_status| return uefi.unexpectedStatus(exit_status),
}
}