github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/fuchsia/thread.txt (about)

     1  # Copyright 2017 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  include <zircon/syscalls.h>
     5  include <zircon/syscalls/debug.h>
     6  
     7  resource zx_thread[zx_task]
     8  
     9  zx_thread_exit()
    10  zx_thread_create(process zx_process, name ptr[in, string], name_size len[name], options const[0], out ptr[out, zx_thread])
    11  zx_thread_start(handle zx_thread, thread_entry ptr[in, text[target]], stack ptr[out, array[int8]], arg1 const[0], arg2 const[0])
    12  # Note: kind corresponds to ZX_THREAD_STATE_REGSET0..9 constants.
    13  zx_thread_read_state(handle zx_thread, kind int32[0:9], buffer ptr[out, array[int64]], buffer_size bytesize[buffer])
    14  zx_thread_read_state$0(handle zx_thread, kind const[0], buffer ptr[out, array[int64, 18]], buffer_size bytesize[buffer])
    15  zx_thread_write_state(handle zx_thread, kind int32[0:9], buffer ptr[in, array[int64]], buffer_size bytesize[buffer])
    16  zx_thread_write_state$0(handle zx_thread, kind const[0], buffer ptr[in, array[int64, 18]], buffer_size bytesize[buffer])