Lines Matching refs:ev
225 static void gatekeeper_handle_port(uevent_t* ev) { in gatekeeper_handle_port() argument
226 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in gatekeeper_handle_port()
227 (ev->event & IPC_HANDLE_POLL_HUP) || in gatekeeper_handle_port()
228 (ev->event & IPC_HANDLE_POLL_MSG) || in gatekeeper_handle_port()
229 (ev->event & IPC_HANDLE_POLL_SEND_UNBLOCKED)) { in gatekeeper_handle_port()
231 TLOGE("error event (0x%x) for port (%d)\n", ev->event, ev->handle); in gatekeeper_handle_port()
236 if (ev->event & IPC_HANDLE_POLL_READY) { in gatekeeper_handle_port()
238 int rc = accept(ev->handle, &peer_uuid); in gatekeeper_handle_port()
240 TLOGE("failed (%d) to accept on port %d\n", rc, ev->handle); in gatekeeper_handle_port()
246 static void gatekeeper_handle_channel(uevent_t* ev) { in gatekeeper_handle_channel() argument
247 if ((ev->event & IPC_HANDLE_POLL_ERROR) || in gatekeeper_handle_channel()
248 (ev->event & IPC_HANDLE_POLL_READY)) { in gatekeeper_handle_channel()
250 TLOGE("error event (0x%x) for chan (%d)\n", ev->event, ev->handle); in gatekeeper_handle_channel()
254 handle_t chan = ev->handle; in gatekeeper_handle_channel()
256 if (ev->event & IPC_HANDLE_POLL_MSG) { in gatekeeper_handle_channel()
261 ev->handle); in gatekeeper_handle_channel()
266 if (ev->event & IPC_HANDLE_POLL_HUP) { in gatekeeper_handle_channel()