Function shutdown [src]

Resets a network adapter and leaves it in a state that is safe for another driver to initialize.

Prototype

pub fn shutdown(self: *SimpleNetwork) ShutdownError!void

Parameters

self: *SimpleNetwork

Possible Errors

DeviceError
InvalidParameter
NotStarted
Unexpected UnexpectedError

Source

pub fn shutdown(self: *SimpleNetwork) ShutdownError!void { switch (self._shutdown(self)) { .success => {}, .not_started => return ShutdownError.NotStarted, .invalid_parameter => return ShutdownError.InvalidParameter, .device_error => return ShutdownError.DeviceError, else => |status| return uefi.unexpectedStatus(status), } }