Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.2 KB

pmt_unpin.md

File metadata and controls

55 lines (33 loc) · 1.2 KB

zx_pmt_unpin

NAME

pmt_unpin - unpin pages and revoke device access to them

SYNOPSIS

#include <zircon/syscalls.h>

zx_status_t zx_pmt_unpin(zx_handle_t handle);

DESCRIPTION

zx_pmt_unpin() unpins pages that were previously pinned by zx_bti_pin(), and revokes the access that was granted by the pin call.

Always consumes handle. It is invalid to use handle afterwards, including to call zx_handle_close() on it.

RIGHTS

TODO(ZX-2399)

RETURN VALUE

On success, zx_pmt_unpin() returns ZX_OK. In the event of failure, a negative error value is returned.

ERRORS

ZX_ERR_BAD_HANDLE handle is not a valid handle.

ZX_ERR_WRONG_TYPE handle is not a PMT handle.

SEE ALSO