pub enum ProcessAccessorRequest {
WriteMemory {
address: u64,
content: Vmo,
responder: ProcessAccessorWriteMemoryResponder,
},
ReadMemory {
address: u64,
length: u64,
responder: ProcessAccessorReadMemoryResponder,
},
FileRequest {
payload: FileRequest,
responder: ProcessAccessorFileRequestResponder,
},
}
Expand description
Protocol that gives the binder driver access to the client process’ resources.
Variants§
WriteMemory
Writes the contents of content
to address
in the process memory,
using the vmo content size to determine the number of bytes to write.
ReadMemory
Returns the length
bytes of the memory of the process at address
in
the content
vmo. Th returned vmo’s content size must always be exactly
length
.
FileRequest
Execute the given request
and returns the associated response
. Any
failure will interrupt further processing and fail this operation and
the associated errno will be then returned.
The implementator of this protocol should handle these requests as best
it can so that a failure doesn’t have visible side-effects.
Implementations§
source§impl ProcessAccessorRequest
impl ProcessAccessorRequest
pub fn into_write_memory( self ) -> Option<(u64, Vmo, ProcessAccessorWriteMemoryResponder)>
pub fn into_read_memory( self ) -> Option<(u64, u64, ProcessAccessorReadMemoryResponder)>
pub fn into_file_request( self ) -> Option<(FileRequest, ProcessAccessorFileRequestResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL