Lines Matching defs:ev
1410 isc_socketevent_t *ev = (isc_socketevent_t *)event;
1412 INSIST(ISC_LIST_EMPTY(ev->bufferlist));
1414 (ev->destroy)(event);
1421 isc_socketevent_t *ev;
1423 ev = (isc_socketevent_t *)isc_event_allocate(sock->manager->mctx,
1426 sizeof(*ev));
1428 if (ev == NULL)
1431 ev->result = ISC_R_UNSET;
1432 ISC_LINK_INIT(ev, ev_link);
1433 ISC_LIST_INIT(ev->bufferlist);
1434 ev->region.base = NULL;
1435 ev->n = 0;
1436 ev->offset = 0;
1437 ev->attributes = 0;
1438 ev->destroy = ev->ev_destroy;
1439 ev->ev_destroy = destroy_socketevent;
1441 return (ev);
2640 isc_socketevent_t *ev;
2646 ev = ISC_LIST_HEAD(sock->recv_list);
2647 if (ev == NULL)
2651 ev, ev->ev_sender);
2652 sender = ev->ev_sender;
2674 isc_socketevent_t *ev;
2680 ev = ISC_LIST_HEAD(sock->send_list);
2681 if (ev == NULL)
2685 ev, ev->ev_sender);
2686 sender = ev->ev_sender;
2711 isc_socket_newconnev_t *ev;
2719 ev = ISC_LIST_HEAD(sock->accept_list);
2720 if (ev == NULL)
2731 isc_task_send(ev->ev_sender, (isc_event_t **)&iev);
2737 isc_socket_connev_t *ev;
2741 ev = sock->connect_ev;
2742 INSIST(ev != NULL); /* XXX */
2751 isc_task_send(ev->ev_sender, (isc_event_t **)&iev);
2818 internal_accept(isc_task_t *me, isc_event_t *ev) {
2831 sock = ev->ev_sender;
3065 internal_recv(isc_task_t *me, isc_event_t *ev) {
3069 INSIST(ev->ev_type == ISC_SOCKEVENT_INTR);
3071 sock = ev->ev_sender;
3077 "internal_recv: task %p got event %p", me, ev);
3130 internal_send(isc_task_t *me, isc_event_t *ev) {
3134 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
3139 sock = (isc_socket_t *)ev->ev_sender;
3145 "internal_send: task %p got event %p", me, ev);
3185 internal_fdwatch_write(isc_task_t *me, isc_event_t *ev) {
3189 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
3194 sock = (isc_socket_t *)ev->ev_sender;
3200 "internal_fdwatch_write: task %p got event %p", me, ev);
3225 internal_fdwatch_read(isc_task_t *me, isc_event_t *ev) {
3229 INSIST(ev->ev_type == ISC_SOCKEVENT_INTR);
3234 sock = (isc_socket_t *)ev->ev_sender;
3240 "internal_fdwatch_read: task %p got event %p", me, ev);
5107 internal_connect(isc_task_t *me, isc_event_t *ev) {
5117 INSIST(ev->ev_type == ISC_SOCKEVENT_INTW);
5119 sock = ev->ev_sender;