Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 769 Bytes

vmo_set_size.md

File metadata and controls

41 lines (24 loc) · 769 Bytes

mx_vmo_set_size

NAME

vmo_set_size - resize a VMO object

SYNOPSIS

#include <magenta/syscalls.h>

mx_status_t mx_vmo_set_size(mx_handle_t handle, uint64_t size);

DESCRIPTION

vmo_set_size() sets the new size of a VMO object.

RETURN VALUE

vmo_set_size() returns NO_ERROR on success. In the event of failure, a negative error value is returned.

ERRORS

ERR_BAD_HANDLE handle is not a valid handle.

ERR_WRONG_TYPE handle is not a VMO handle.

ERR_OUT_OF_RANGE Requested size is too large.

ERR_NO_MEMORY Failure due to lack of system memory.

SEE ALSO

vmo_create, vmo_read, vmo_write, vmo_get_size, vmo_op_range.