跳转至

zx_exception_get_thread

SUMMARY

Create a handle for the exception's thread.

DECLARATION

#include <zircon/syscalls.h>

zx_status_t zx_exception_get_thread(zx_handle_t handle, zx_handle_t* out);

DESCRIPTION

handle is the exception handle.

out will be filled with a new handle to the exception thread. This handle will have the same rights as the task given to [zx_task_create_exception_channel()].

RIGHTS

handle must be of type ZX_OBJ_TYPE_EXCEPTION.

RETURN VALUE

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

ERRORS

ZX_ERR_BAD_HANDLE handle is not a valid handle.

ZX_ERR_NO_MEMORY Failed to allocate memory for a new handle.

ZX_ERR_WRONG_TYPE handle is not an exception.

SEE ALSO

  • [exceptions]
  • [zx_exception_get_process()]

exceptionszx_exception_get_process()zx_task_create_exception_channel()


最后更新: 2022 年 12 月 31 日(Saturday) 21:07 CST