Function devices::virtio::ipc_memory_mapper::create_ipc_mapper
source · pub fn create_ipc_mapper(
endpoint_id: u32,
request_tx: Tube
) -> CreateIpcMapperRet
Expand description
Returns a new IpcMemoryMapper
instance and a response_tx for the iommu
to respond to TranslateRequest
s.
§Arguments
endpoint_id
- For the remote iommu to identify the device/ipc mapper.request_tx
- A tube to sendTranslateRequest
to a remote iommu. This should be cloned and shared between different ipc mappers with differentendpoint_id
s.