Function openProtocolInformation [src]
Prototype
pub fn openProtocolInformation( self: *const BootServices, handle: Handle, Protocol: type, ) OpenProtocolInformationError!?[]ProtocolInformationEntry Parameters
self: *const BootServiceshandle: HandleProtocol: type Possible Errors
Source
pub fn openProtocolInformation(
self: *const BootServices,
handle: Handle,
Protocol: type,
) OpenProtocolInformationError!?[]ProtocolInformationEntry {
var entries: [*]ProtocolInformationEntry = undefined;
var len: usize = undefined;
switch (self._openProtocolInformation(
handle,
&Protocol.guid,
&entries,
&len,
)) {
.success => return entries[0..len],
.not_found => return null,
.out_of_resources => return error.OutOfResources,
else => |status| return uefi.unexpectedStatus(status),
}
}