| /kernel/syscalls/ |
| A D | handle_ops.cpp | 19 zx_status_t sys_handle_close(zx_handle_t handle_value) { in sys_handle_close() argument 20 LTRACEF("handle %x\n", handle_value); in sys_handle_close() 24 if (handle_value == ZX_HANDLE_INVALID) in sys_handle_close() 27 HandleOwner handle(up->RemoveHandle(handle_value)); in sys_handle_close() 42 bool is_replace, zx_handle_t handle_value, zx_rights_t rights, in handle_dup_replace() argument 44 LTRACEF("handle %x\n", handle_value); in handle_dup_replace() 49 auto source = up->GetHandleLocked(handle_value); in handle_dup_replace() 62 up->RemoveHandleLocked(handle_value); in handle_dup_replace() 69 up->RemoveHandleLocked(handle_value); in handle_dup_replace() 77 return handle_dup_replace(false, handle_value, rights, out); in sys_handle_duplicate() [all …]
|
| A D | object_wait.cpp | 40 zx_status_t sys_object_wait_one(zx_handle_t handle_value, in sys_object_wait_one() argument 44 LTRACEF("handle %x\n", handle_value); in sys_object_wait_one() 55 Handle* handle = up->GetHandleLocked(handle_value); in sys_object_wait_one() 66 auto koid = static_cast<uint32_t>(up->GetKoidForHandle(handle_value)); in sys_object_wait_one() 177 zx_status_t sys_object_wait_async(zx_handle_t handle_value, zx_handle_t port_handle, in sys_object_wait_async() argument 179 LTRACEF("handle %x\n", handle_value); in sys_object_wait_async() 190 Handle* handle = up->GetHandleLocked(handle_value); in sys_object_wait_async()
|
| A D | channel.cpp | 116 static zx_status_t channel_read(zx_handle_t handle_value, uint32_t options, in channel_read() argument 122 handle_value, bytes.get(), actual_bytes.get(), handles.get(), actual_handles.get()); in channel_read() 127 zx_status_t result = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_READ, &channel); in channel_read() 174 zx_status_t sys_channel_read(zx_handle_t handle_value, uint32_t options, in sys_channel_read() argument 180 return channel_read(handle_value, options, in sys_channel_read() 185 zx_status_t sys_channel_read_etc(zx_handle_t handle_value, uint32_t options, in sys_channel_read_etc() argument 191 return channel_read(handle_value, options, in sys_channel_read_etc() 281 zx_status_t sys_channel_write(zx_handle_t handle_value, uint32_t options, in sys_channel_write() argument 285 handle_value, user_bytes.get(), num_bytes, user_handles.get(), num_handles, options); in sys_channel_write() 296 zx_status_t status = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_WRITE, &channel); in sys_channel_write() [all …]
|
| A D | object.cpp | 640 zx_status_t sys_object_get_property(zx_handle_t handle_value, uint32_t property, in sys_object_get_property() argument 647 auto status = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_GET_PROPERTY, &dispatcher); in sys_object_get_property() 713 zx_status_t sys_object_set_property(zx_handle_t handle_value, uint32_t property, in sys_object_set_property() argument 721 auto status = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_SET_PROPERTY, &dispatcher); in sys_object_set_property() 829 zx_status_t sys_object_signal(zx_handle_t handle_value, uint32_t clear_mask, uint32_t set_mask) { in sys_object_signal() argument 830 LTRACEF("handle %x\n", handle_value); in sys_object_signal() 835 auto status = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_SIGNAL, &dispatcher); in sys_object_signal() 843 zx_status_t sys_object_signal_peer(zx_handle_t handle_value, uint32_t clear_mask, uint32_t set_mask… in sys_object_signal_peer() argument 844 LTRACEF("handle %x\n", handle_value); in sys_object_signal_peer() 849 auto status = up->GetDispatcherWithRights(handle_value, ZX_RIGHT_SIGNAL_PEER, &dispatcher); in sys_object_signal_peer()
|
| /kernel/object/include/object/ |
| A D | process_dispatcher.h | 90 zx_handle_t handle_value, bool skip_policy = false) TA_REQ(handle_table_lock_); 99 HandleOwner RemoveHandle(zx_handle_t handle_value); 110 zx_status_t GetDispatcher(zx_handle_t handle_value, in GetDispatcher() argument 112 return GetDispatcherAndRights(handle_value, dispatcher, nullptr); in GetDispatcher() 117 zx_status_t GetDispatcherAndRights(zx_handle_t handle_value, in GetDispatcherAndRights() argument 134 zx_status_t GetDispatcherWithRights(zx_handle_t handle_value, in GetDispatcherWithRights() argument 139 auto status = GetDispatcherWithRightsInternal(handle_value, in GetDispatcherWithRights() 154 zx_status_t GetDispatcherWithRights(zx_handle_t handle_value, in GetDispatcherWithRights() argument 160 zx_koid_t GetKoidForHandle(zx_handle_t handle_value); 162 bool IsHandleValid(zx_handle_t handle_value); [all …]
|
| /kernel/object/ |
| A D | process_dispatcher.cpp | 448 Handle* ProcessDispatcher::GetHandleLocked(zx_handle_t handle_value, in GetHandleLocked() argument 450 auto handle = map_value_to_handle(handle_value, handle_rand_); in GetHandleLocked() 473 HandleOwner ProcessDispatcher::RemoveHandle(zx_handle_t handle_value) { in RemoveHandle() argument 475 return RemoveHandleLocked(handle_value); in RemoveHandle() 479 auto handle = GetHandleLocked(handle_value); in RemoveHandleLocked() 526 Handle* handle = GetHandleLocked(handle_value); in GetKoidForHandle() 536 Handle* handle = GetHandleLocked(handle_value); in GetDispatcherInternal() 551 Handle* handle = GetHandleLocked(handle_value); in GetDispatcherWithRightsInternal() 865 bool ProcessDispatcher::IsHandleValid(zx_handle_t handle_value) { in IsHandleValid() argument 867 return (GetHandleLocked(handle_value) != nullptr); in IsHandleValid() [all …]
|