status_t socket_cancel_notification(net_socket* _socket, uint8 event, selectsync* sync) { net_socket_private* socket = (net_socket_private*)_socket; MutexLocker _(socket->lock); return remove_select_sync_pool_entry(&socket->select_pool, sync, event); }
status_t Inode::Deselect(uint8 event, selectsync* sync, int openMode) { select_sync_pool** pool; if ((openMode & O_RWMASK) == O_RDONLY) { pool = &fReadSelectSyncPool; } else if ((openMode & O_RWMASK) == O_WRONLY) { pool = &fWriteSelectSyncPool; } else return B_NOT_ALLOWED; remove_select_sync_pool_entry(pool, sync, event); return B_OK; }