class SharedMemoryRangeTraits
Defined at line 54 of file ../../src/devices/tee/drivers/optee/shared-memory.h
Protected Members
zx_vaddr_t vaddr_
zx_paddr_t paddr_
size_t size_
Public Methods
std::optional<SharedMemoryView> SliceByVaddr (zx_vaddr_t start, zx_vaddr_t end)
Gets a subslice of the memory spanning a specified range of virtual addresses.
Parameters:
* start: The starting virtual address of the subslice (inclusive).
* end: The ending virtual address of the subslice (exclusive).
Returns:
* If the given range is valid, an initialized `std::optional` containing the
`SharedMemoryView` subslice.
* Otherwise, an uninitialized `std::optional`.
Defined at line 15 of file ../../src/devices/tee/drivers/optee/shared-memory.cc
std::optional<SharedMemoryView> SliceByPaddr (zx_paddr_t start, zx_paddr_t end)
Gets a subslice of the memory spanning a specified range of physical addresses.
Parameters:
* start: The starting physical address of the subslice (inclusive).
* end: The ending physical address of the subslice (exclusive).
Returns:
* If the given range is valid, an initialized `std::optional` containing the
`SharedMemoryView` subslice.
* Otherwise, an uninitialized `std::optional`.
Defined at line 25 of file ../../src/devices/tee/drivers/optee/shared-memory.cc
zx_vaddr_t vaddr ()
Defined at line 56 of file ../../src/devices/tee/drivers/optee/shared-memory.h
zx_paddr_t paddr ()
Defined at line 57 of file ../../src/devices/tee/drivers/optee/shared-memory.h
size_t size ()
Defined at line 58 of file ../../src/devices/tee/drivers/optee/shared-memory.h
bool ContainsVaddr (zx_vaddr_t vaddr)
Defined at line 60 of file ../../src/devices/tee/drivers/optee/shared-memory.h
bool ContainsPaddr (zx_paddr_t paddr)
Defined at line 64 of file ../../src/devices/tee/drivers/optee/shared-memory.h
Protected Methods
void SharedMemoryRangeTraits (zx_vaddr_t vaddr, zx_paddr_t paddr, size_t size)
Defined at line 93 of file ../../src/devices/tee/drivers/optee/shared-memory.h