bti_unpin - unpin pages and revoke device access to them
#include <zircon/syscalls.h> zx_status_t zx_bti_unpin(zx_handle_t bti, zx_paddr_t base_addr);
bti_unpin() unpins pages that were previously pinned by zx_bti_pin(), and revokes the access that was granted by the pin call.
base_addr must be the same as the value in the first element of an array returned by a call to zx_btin_pin(). It will unpin the entire region that was pinned in that call.
On success, bti_unpin() returns ZX_OK. In the event of failure, a negative error value is returned.
ZX_ERR_BAD_HANDLE bti is not a valid handle.
ZX_ERR_WRONG_TYPE bti is not a BTI handle.
ZX_ERR_ACCESS_DENIED bti does not have the ZX_RIGHT_MAP.
ZX_ERR_INVALID_ARGS The requested base was not previously returned by zx_bti_pin().