std.os.uefi.tables.BootServices
The entries of std.os.uefi.tables.BootServices in the Zig reference. This page has 81 cards.
pub fn allocatePages(self: *BootServices, location: AllocateLocation, mem_type: MemoryType, pages: usize) AllocatePagesError![]align(4096) Page
Allocates pages of memory.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn allocatePool(self: *BootServices, pool_type: MemoryType, size: usize) AllocatePoolError![]align(8) u8
Allocates a memory region of `size` bytes from memory of type `pool_type` and returns the allocated memory.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn calculateCrc32(self: *const BootServices, data: []const u8) CalculateCrc32Error!u32
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn checkEvent(self: *BootServices, event: Event) CheckEventError!bool
Checks to see whether an event is signaled.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn closeEvent(self: *BootServices, event: Event) uefi.UnexpectedError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn closeProtocol(self: *BootServices, handle: Handle, Protocol: type, agent: Handle, controller: ?Handle) CloseProtocolError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn connectController(self: *BootServices, controller: Handle, driver_image: ?[*:null]?Handle, remaining_device_path: ?*const DevicePathProtocol, recursive: bool) ConnectControllerError!void
`driver_image` should be a null-terminated ordered list of handles.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn createEvent(self: *BootServices, event_type: uefi.EventType, notify_opts: NotifyOpts) CreateEventError!Event
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn disconnectController(self: *BootServices, controller: Handle, driver_image: ?Handle, child: ?Handle) DisconnectControllerError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn exit(self: *BootServices, handle: Handle, status: Status, message: ?[:0]const u16) ExitError!void
`message` must be allocated using `allocatePool`.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn exitBootServices(self: *BootServices, image: Handle, map_key: MemoryMapKey) ExitBootServicesError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn exitWithData(self: *BootServices, handle: Handle, status: Status, data: []align(2) const u8) ExitError!void
`message` should be a null-terminated u16 string followed by binary data allocated using `allocatePool`.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn freePages(self: *BootServices, pages: []align(4096) Page) FreePagesError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn freePool(self: *BootServices, ptr: [*]align(8) u8) FreePoolError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn getMemoryMap(self: *const BootServices, buffer: []align(@alignOf(MemoryDescriptor)) u8) GetMemoryMapError!MemoryMapSlice
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn getMemoryMapInfo(self: *const BootServices) uefi.UnexpectedError!MemoryMapInfo
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn getNextMonotonicCount(self: *const BootServices, count: *u64) GetNextMonotonicCountError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn handleProtocol(self: *BootServices, Protocol: type, handle: Handle) HandleProtocolError!?*Protocol
Returns a pointer to the `Protocol` interface if it's supported by the handle.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- struct
- Module
std.os.uefi.tables.BootServices
pub fn installConfigurationTable(self: *BootServices, guid: *const Guid, table: *anyopaque) InstallConfigurationTableError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn installProtocolInterface(self: *BootServices, handle: ?Handle, interface: anytype) InstallProtocolInterfacesError!Handle
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn installProtocolInterfaces(self: *BootServices, handle: ?Handle, interfaces: anytype) InstallProtocolInterfacesError!Handle
Installs a set of protocol interfaces into the boot services environment.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn loadImage(self: *BootServices, boot_policy: bool, parent_image: Handle, source: LoadImageSource) LoadImageError!Handle
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- union
- Module
std.os.uefi.tables.BootServices
pub fn locateDevicePath(self: *const BootServices, device_path: *const DevicePathProtocol, Protocol: type) LocateHandleError!?struct
Locates all devices on `device_path` that support `Protocol`.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn locateHandle(self: *BootServices, search: LocateSearch, buffer: []Handle) LocateHandleError![]Handle
To determine the necessary size of `buffer`, call `locateHandleLen` first.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn locateHandleBuffer(self: *const BootServices, search: LocateSearch) LocateHandleBufferError!?[]Handle
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn locateHandleLen(self: *const BootServices, search: LocateSearch) NumHandlesError!usize
Returns the number of handles that match the given search criteria.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn locateProtocol(self: *const BootServices, Protocol: type, registration: ?EventRegistration) LocateProtocolError!?*Protocol
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- struct
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn openProtocol(self: *BootServices, Protocol: type, handle: Handle, attributes: OpenProtocolArgs) OpenProtocolError!?*Protocol
Opens a protocol with a structure as the loaded image for a UEFI application If `flag` is `.test_protocol`, then the only valid return value is `null`, and `Status.unsupported` is returned.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn openProtocolInformation(self: *const BootServices, handle: Handle, Protocol: type) OpenProtocolInformationError!?[]ProtocolInformationEntry
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn protocolsPerHandle(self: *const BootServices, handle: Handle) ProtocolsPerHandleError![]*const Guid
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn registerProtocolNotify(self: *BootServices, Protocol: type, event: Event) RegisterProtocolNotifyError!EventRegistration
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn reinstallProtocolInterface(self: *BootServices, handle: Handle, Protocol: type, old: ?*const Protocol, new: ?*const Protocol) ReinstallProtocolInterfaceError!void
Reinstalls a protocol interface on a device handle. `new` may be the same as `old`.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn setTimer(self: *BootServices, event: Event, @"": TimerDelay, trigger_time: u64) SetTimerError!void
Cancels any previous time trigger setting for the event, and sets a new trigger timer for the event.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn setWatchdogTimer(self: *BootServices, timeout: usize, watchdog_code: u64, data: ?[]const u16) SetWatchdogTimerError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn signalEvent(self: *BootServices, event: Event) uefi.UnexpectedError!void
If `event` is `EventType.signal`, then the event’s notification function is scheduled to be invoked at the event’s notification task priority level.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- constant
- Module
std.os.uefi.tables.BootServices
pub fn stall(self: *const BootServices, microseconds: usize) uefi.UnexpectedError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn startImage(self: *BootServices, image: Handle) StartImageError!ImageExitData
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
- Kind
- enum
- Module
std.os.uefi.tables.BootServices
pub fn uninstallConfigurationTable(self: *BootServices, guid: *const Guid) UninstallConfigurationTableError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn uninstallProtocolInterface(self: *BootServices, handle: Handle, interface: anytype) UninstallProtocolInterfacesError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn uninstallProtocolInterfaces(self: *BootServices, handle: Handle, interfaces: anytype) UninstallProtocolInterfacesError!void
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices
pub fn unloadImage(self: *BootServices, image: Handle) Status.Error!Status
The result is the exit code of the unload handler.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
pub fn waitForEvent(self: *BootServices, events: []const Event) WaitForEventError!struct
Returns the event that was signaled, along with its index in the slice.
- Kind
- function
- Module
std.os.uefi.tables.BootServices
- Kind
- type
- Module
std.os.uefi.tables.BootServices