Function setVirtualAddressMap [src]

Prototype

pub fn setVirtualAddressMap( self: *RuntimeServices, map: MemoryMapSlice, ) SetVirtualAddressMapError!void

Parameters

self: *RuntimeServicesmap: MemoryMapSlice

Possible Errors

NoMapping
NotFound
Unexpected UnexpectedError
Unsupported

Source

pub fn setVirtualAddressMap( self: *RuntimeServices, map: MemoryMapSlice, ) SetVirtualAddressMapError!void { switch (self._setVirtualAddressMap( map.info.len * map.info.descriptor_size, map.info.descriptor_size, map.info.descriptor_version, @ptrCast(map.ptr), )) { .success => {}, .unsupported => return error.Unsupported, .no_mapping => return error.NoMapping, .not_found => return error.NotFound, else => |status| return uefi.unexpectedStatus(status), } }