pub enum DriverHostRequest {
Start {
start_args: DriverStartArgs,
driver: ServerEnd<DriverMarker>,
responder: DriverHostStartResponder,
},
StartLoadedDriver {
start_args: DriverStartArgs,
dynamic_linking_abi: u64,
driver: ServerEnd<DriverMarker>,
responder: DriverHostStartLoadedDriverResponder,
},
GetProcessInfo {
responder: DriverHostGetProcessInfoResponder,
},
InstallLoader {
loader: ClientEnd<LoaderMarker>,
control_handle: DriverHostControlHandle,
},
FindDriverCrashInfoByThreadKoid {
thread_koid: u64,
responder: DriverHostFindDriverCrashInfoByThreadKoidResponder,
},
}
Expand description
Protocol through which a driver host can be managed.
Variants§
Start
Start a driver within a driver host.
Fields
§
start_args: DriverStartArgs
§
driver: ServerEnd<DriverMarker>
§
responder: DriverHostStartResponder
StartLoadedDriver
Start a driver that’s been loaded via an out of process dynamic linker.
Fields
§
start_args: DriverStartArgs
§
driver: ServerEnd<DriverMarker>
§
responder: DriverHostStartLoadedDriverResponder
GetProcessInfo
Returns the job and process KOIDs of the driver host.
Fields
§
responder: DriverHostGetProcessInfoResponder
InstallLoader
Provides a loader service which should be installed via
dl_set_loader_service
.
FindDriverCrashInfoByThreadKoid
Returns the driver crash information if the thread specified by |thread_koid| exists in this driver host and it has ran into an exception. Otherwise returns ZX_ERR_NOT_FOUND.
Implementations§
Source§impl DriverHostRequest
impl DriverHostRequest
pub fn into_start( self, ) -> Option<(DriverStartArgs, ServerEnd<DriverMarker>, DriverHostStartResponder)>
pub fn into_start_loaded_driver( self, ) -> Option<(DriverStartArgs, u64, ServerEnd<DriverMarker>, DriverHostStartLoadedDriverResponder)>
pub fn into_get_process_info(self) -> Option<DriverHostGetProcessInfoResponder>
pub fn into_install_loader( self, ) -> Option<(ClientEnd<LoaderMarker>, DriverHostControlHandle)>
pub fn into_find_driver_crash_info_by_thread_koid( self, ) -> Option<(u64, DriverHostFindDriverCrashInfoByThreadKoidResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriverHostRequest
impl !RefUnwindSafe for DriverHostRequest
impl Send for DriverHostRequest
impl Sync for DriverHostRequest
impl Unpin for DriverHostRequest
impl !UnwindSafe for DriverHostRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more