Symbol: netio
usr.sbin/nsd/ipc.c
106
parent_handle_xfrd_command(netio_type *ATTR_UNUSED(netio),
usr.sbin/nsd/ipc.c
283
parent_handle_child_command(netio_type *ATTR_UNUSED(netio),
usr.sbin/nsd/ipc.c
354
parent_handle_reload_command(netio_type *ATTR_UNUSED(netio),
usr.sbin/nsd/ipc.h
47
void parent_handle_xfrd_command(netio_type *netio,
usr.sbin/nsd/ipc.h
54
void parent_handle_reload_command(netio_type *netio,
usr.sbin/nsd/ipc.h
62
void parent_handle_child_command(netio_type *netio,
usr.sbin/nsd/netio.c
100
timeval_to_timespec(&netio->cached_current_time, &current_timeval);
usr.sbin/nsd/netio.c
101
netio->have_current_time = 1;
usr.sbin/nsd/netio.c
104
return &netio->cached_current_time;
usr.sbin/nsd/netio.c
108
netio_dispatch(netio_type *netio, const struct timespec *timeout, const sigset_t *sigmask)
usr.sbin/nsd/netio.c
123
assert(netio);
usr.sbin/nsd/netio.c
128
netio->have_current_time = 0;
usr.sbin/nsd/netio.c
144
for (elt = netio->handlers; elt; elt = elt->next) {
usr.sbin/nsd/netio.c
166
timespec_subtract(&relative, netio_current_time(netio));
usr.sbin/nsd/netio.c
186
timeout_handler->event_handler(netio, timeout_handler, NETIO_EVENT_TIMEOUT);
usr.sbin/nsd/netio.c
213
netio->have_current_time = 0;
usr.sbin/nsd/netio.c
221
timeout_handler->event_handler(netio, timeout_handler, NETIO_EVENT_TIMEOUT);
usr.sbin/nsd/netio.c
230
assert(netio->dispatch_next == NULL);
usr.sbin/nsd/netio.c
232
for (elt = netio->handlers; elt && rc; ) {
usr.sbin/nsd/netio.c
234
netio->dispatch_next = elt->next;
usr.sbin/nsd/netio.c
255
handler->event_handler(netio, handler, event_types & handler->event_types);
usr.sbin/nsd/netio.c
259
elt = netio->dispatch_next;
usr.sbin/nsd/netio.c
261
netio->dispatch_next = NULL;
usr.sbin/nsd/netio.c
39
netio_add_handler(netio_type *netio, netio_handler_type *handler)
usr.sbin/nsd/netio.c
43
assert(netio);
usr.sbin/nsd/netio.c
46
if (netio->deallocated) {
usr.sbin/nsd/netio.c
51
elt = netio->deallocated;
usr.sbin/nsd/netio.c
52
netio->deallocated = elt->next;
usr.sbin/nsd/netio.c
58
netio->region, sizeof(netio_handler_list_type));
usr.sbin/nsd/netio.c
61
elt->next = netio->handlers;
usr.sbin/nsd/netio.c
64
netio->handlers = elt;
usr.sbin/nsd/netio.c
68
netio_remove_handler(netio_type *netio, netio_handler_type *handler)
usr.sbin/nsd/netio.c
72
assert(netio);
usr.sbin/nsd/netio.c
75
for (elt_ptr = &netio->handlers; *elt_ptr; elt_ptr = &(*elt_ptr)->next) {
usr.sbin/nsd/netio.c
78
if ((*elt_ptr) == netio->dispatch_next)
usr.sbin/nsd/netio.c
79
netio->dispatch_next = next;
usr.sbin/nsd/netio.c
81
(*elt_ptr)->next = netio->deallocated;
usr.sbin/nsd/netio.c
82
netio->deallocated = *elt_ptr;
usr.sbin/nsd/netio.c
90
netio_current_time(netio_type *netio)
usr.sbin/nsd/netio.c
92
assert(netio);
usr.sbin/nsd/netio.c
94
if (!netio->have_current_time) {
usr.sbin/nsd/netio.h
154
void netio_add_handler(netio_type *netio, netio_handler_type *handler);
usr.sbin/nsd/netio.h
159
void netio_remove_handler(netio_type *netio, netio_handler_type *handler);
usr.sbin/nsd/netio.h
164
const struct timespec *netio_current_time(netio_type *netio);
usr.sbin/nsd/netio.h
173
int netio_dispatch(netio_type *netio,
usr.sbin/nsd/netio.h
64
typedef struct netio netio_type;
usr.sbin/nsd/netio.h
93
typedef void (*netio_event_handler_type)(netio_type *netio,
usr.sbin/nsd/server.c
1581
server_start_children(struct nsd *nsd, region_type* region, netio_type* netio,
usr.sbin/nsd/server.c
1591
return restart_child_servers(nsd, region, netio, xfrd_sock_p);
usr.sbin/nsd/server.c
2534
server_reload(struct nsd *nsd, region_type* server_region, netio_type* netio,
usr.sbin/nsd/server.c
2653
if (server_start_children(nsd, server_region, netio, &nsd->
usr.sbin/nsd/server.c
2794
netio_type *netio = netio_create(server_region);
usr.sbin/nsd/server.c
2811
netio_add_handler(netio, nsd->xfrd_listener);
usr.sbin/nsd/server.c
2822
if (server_start_children(nsd, server_region, netio,
usr.sbin/nsd/server.c
2852
restart_child_servers(nsd, server_region, netio,
usr.sbin/nsd/server.c
2868
netio_remove_handler(netio, &reload_listener);
usr.sbin/nsd/server.c
2947
if(netio_dispatch(netio, &timeout_spec, 0) == -1) {
usr.sbin/nsd/server.c
2953
restart_child_servers(nsd, server_region, netio,
usr.sbin/nsd/server.c
2972
netio_remove_handler(netio, &reload_listener);
usr.sbin/nsd/server.c
3056
server_reload(nsd, server_region, netio
usr.sbin/nsd/server.c
3090
netio_add_handler(netio, &reload_listener);
usr.sbin/nsd/server.c
458
restart_child_servers(struct nsd *nsd, region_type* region, netio_type* netio,
usr.sbin/nsd/server.c
498
netio_add_handler(netio, nsd->children[i].handler);