Function connectController [src]
driver_image should be a null-terminated ordered list of handles.
Prototype
pub fn connectController( self: *BootServices, controller: Handle, driver_image: ?[*:null]?Handle, remaining_device_path: ?*const DevicePathProtocol, recursive: bool, ) ConnectControllerError!void Parameters
self: *BootServicescontroller: Handledriver_image: ?[*:null]?Handleremaining_device_path: ?*const DevicePathProtocolrecursive: bool Possible Errors
Source
pub fn connectController(
self: *BootServices,
controller: Handle,
driver_image: ?[*:null]?Handle,
remaining_device_path: ?*const DevicePathProtocol,
recursive: bool,
) ConnectControllerError!void {
switch (self._connectController(
controller,
driver_image,
remaining_device_path,
recursive,
)) {
.success => {},
.invalid_parameter => return error.InvalidParameter,
.not_found => return error.NotFound,
.security_violation => return error.SecurityViolation,
else => |status| return uefi.unexpectedStatus(status),
}
}