1# zx_vmo_get_size
2
3## NAME
4
5vmo_get_size - read the current size of a VMO object
6
7## SYNOPSIS
8
9```
10#include <zircon/syscalls.h>
11
12zx_status_t zx_vmo_get_size(zx_handle_t handle, uint64_t* size);
13
14```
15
16## DESCRIPTION
17
18**vmo_get_size**() returns the current size of the VMO.
19
20## RIGHTS
21
22TODO(ZX-2399)
23
24## RETURN VALUE
25
26**vmo_get_size**() returns **ZX_OK** on success. In the event
27of failure, a negative error value is returned.
28
29## ERRORS
30
31**ZX_ERR_BAD_HANDLE**  *handle* is not a valid handle.
32
33**ZX_ERR_WRONG_TYPE**  *handle* is not a VMO handle.
34
35**ZX_ERR_INVALID_ARGS**  *size* is an invalid pointer or NULL.
36
37## SEE ALSO
38
39[vmo_create](vmo_create.md),
40[vmo_clone](vmo_clone.md),
41[vmo_read](vmo_read.md),
42[vmo_write](vmo_write.md),
43[vmo_set_size](vmo_set_size.md),
44[vmo_op_range](vmo_op_range.md).
45