zx::vmo

Summary

Inheritance

Inherits from: zx::object< vmo >

Constructors and Destructors

vmo()
vmo(zx_handle_t value)
vmo(handle && h)
vmo(vmo && other)

Public static attributes

TYPE = ZX_OBJ_TYPE_VMO
constexpr zx_obj_type_t

Public functions

create_child(uint32_t options, uint64_t offset, uint64_t size, vmo *result)
zx_status_t
get_prop_content_size(uint64_t *size)
zx_status_t
get_size(uint64_t *size)
zx_status_t
get_stream_size(uint64_t *size)
zx_status_t
op_range(uint32_t op, uint64_t offset, uint64_t size, void *buffer, size_t buffer_size)
zx_status_t
operator=(vmo && other)
vmo &
read(void *data, uint64_t offset, size_t len)
zx_status_t
replace_as_executable(const resource & vmex, vmo *result)
zx_status_t
set_cache_policy(uint32_t cache_policy)
zx_status_t
set_prop_content_size(uint64_t size)
zx_status_t
set_size(uint64_t size)
zx_status_t
set_stream_size(uint64_t size)
zx_status_t
transfer_data(uint32_t options, uint64_t offset, uint64_t length, vmo *src_vmo, uint64_t src_offset)
zx_status_t
write(const void *data, uint64_t offset, size_t len)
zx_status_t

Public static functions

create(uint64_t size, uint32_t options, vmo *result)
zx_status_t
create_contiguous(const bti & bti, size_t size, uint32_t alignment_log2, vmo *result)
zx_status_t
create_physical(const resource & resource, zx_paddr_t paddr, size_t size, vmo *result)
zx_status_t

Public static attributes

TYPE

constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_VMO

Public functions

create_child

zx_status_t create_child(
  uint32_t options,
  uint64_t offset,
  uint64_t size,
  vmo *result
)

get_prop_content_size

zx_status_t get_prop_content_size(
  uint64_t *size
)

get_size

zx_status_t get_size(
  uint64_t *size
)

get_stream_size

zx_status_t get_stream_size(
  uint64_t *size
)

op_range

zx_status_t op_range(
  uint32_t op,
  uint64_t offset,
  uint64_t size,
  void *buffer,
  size_t buffer_size
)

operator=

vmo & operator=(
  vmo && other
)

read

zx_status_t read(
  void *data,
  uint64_t offset,
  size_t len
)

replace_as_executable

zx_status_t replace_as_executable(
  const resource & vmex,
  vmo *result
)

set_cache_policy

zx_status_t set_cache_policy(
  uint32_t cache_policy
)

set_prop_content_size

zx_status_t set_prop_content_size(
  uint64_t size
)

set_size

zx_status_t set_size(
  uint64_t size
)

set_stream_size

zx_status_t set_stream_size(
  uint64_t size
)

transfer_data

zx_status_t transfer_data(
  uint32_t options,
  uint64_t offset,
  uint64_t length,
  vmo *src_vmo,
  uint64_t src_offset
)

vmo

constexpr vmo()=default

vmo

 vmo(
  zx_handle_t value
)

vmo

 vmo(
  handle && h
)

vmo

 vmo(
  vmo && other
)

write

zx_status_t write(
  const void *data,
  uint64_t offset,
  size_t len
)

Public static functions

create

zx_status_t create(
  uint64_t size,
  uint32_t options,
  vmo *result
)

create_contiguous

zx_status_t create_contiguous(
  const bti & bti,
  size_t size,
  uint32_t alignment_log2,
  vmo *result
)

create_physical

zx_status_t create_physical(
  const resource & resource,
  zx_paddr_t paddr,
  size_t size,
  vmo *result
)