class SharedVmo
Defined at line 23 of file ../../src/lib/fsl/vmo/shared_vmo.h
Holds a reference to a shared VMO which may be memory mapped lazily.
Once memory-mapped, the VMO remains mapped until all references to this
object have been released.
This object is thread-safe.
Public Methods
void SharedVmo (zx::vmo vmo, uint32_t map_flags)
Initializes a shared VMO.
|vmo| must be a valid VMO handle.
If not zero, |map_flags| specifies the flags which should be passed to
|zx::vmar::map| when the VMO is mapped.
Defined at line 14 of file ../../src/lib/fsl/vmo/shared_vmo.cc
void ~SharedVmo ()
Defined at line 22 of file ../../src/lib/fsl/vmo/shared_vmo.cc
void * Map ()
Maps the entire VMO into memory (if not already mapped).
Returns the address of the mapping or nullptr if an error occurred.
Defined at line 29 of file ../../src/lib/fsl/vmo/shared_vmo.cc
const zx::vmo & vmo ()
Gets the underlying VMO.
Defined at line 35 of file ../../src/lib/fsl/vmo/shared_vmo.h
size_t vmo_size ()
Gets the size of the VMO.
Defined at line 38 of file ../../src/lib/fsl/vmo/shared_vmo.h
uint32_t map_flags ()
Gets the flags used for mapping the VMO.
Defined at line 41 of file ../../src/lib/fsl/vmo/shared_vmo.h
Friends
class RefCountedThreadSafe