class KernelMappedVmo

Defined at line 33 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

This maintains a kernel mapping from a VMO; mapped pages must stay pinned to

prevent kernel-mode page faults. Destroying this object unmaps and unpins.

Public Methods

void KernelMappedVmo ()

Defined at line 35 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

void ~KernelMappedVmo ()

Defined at line 36 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

void KernelMappedVmo (const KernelMappedVmo & )

Defined at line 38 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

void KernelMappedVmo (KernelMappedVmo && )

Defined at line 38 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

KernelMappedVmo & operator= (const KernelMappedVmo & )

Defined at line 38 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

KernelMappedVmo & operator= (KernelMappedVmo && )

Defined at line 38 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

zx_status_t Init (fbl::RefPtr<VmObject> vmo, size_t offset, size_t size, const char * name)

Initialize with a kernel mapping from the VMO.

Defined at line 41 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

Handle * Publish (ktl::string_view vmo_name, size_t stream_size)

Publish this VMO to userland as a read-only handle using the given name

and stream size.

Defined at line 48 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

template <size_t N>
Handle * Publish (const ktl::array<char, N> & name, size_t stream_size)

Defined at line 53 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

vaddr_t base_locking ()

Return the bounds of the mapping in the kernel address space.

Defined at line 58 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h

size_t size_locking ()

Defined at line 59 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h