Searched defs:event (Results 1 - 25 of 69) sorted by relevance

123

/systemd/src/import/
H A Dcurl-util.h25 #include "sd-event.h"
32 sd_event *event; member in struct:CurlGlue
42 int curl_glue_new(CurlGlue **glue, sd_event *event);
H A Dexport.c22 #include "sd-event.h"
65 sd_event *event = userdata; local
71 sd_event_exit(event, abs(error));
76 _cleanup_(sd_event_unrefp) sd_event *event = NULL;
119 r = sd_event_default(&event);
121 return log_error_errno(r, "Failed to allocate event loop: %m");
124 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL);
125 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL);
127 r = tar_export_new(&export, event, on_tar_finished, event);
144 sd_event *event = userdata; local
[all...]
H A Dimport.c22 #include "sd-event.h"
47 sd_event *event = userdata; local
53 sd_event_exit(event, abs(error));
58 _cleanup_(sd_event_unrefp) sd_event *event = NULL;
117 r = sd_event_default(&event);
119 return log_error_errno(r, "Failed to allocate event loop: %m");
122 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL);
123 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL);
125 r = tar_import_new(&import, event, arg_image_root, on_tar_finished, event);
142 sd_event *event = userdata; local
[all...]
H A Dpull.c22 #include "sd-event.h"
48 sd_event *event = userdata; local
54 sd_event_exit(event, abs(error));
59 _cleanup_(sd_event_unrefp) sd_event *event = NULL;
109 r = sd_event_default(&event);
111 return log_error_errno(r, "Failed to allocate event loop: %m");
114 (void) sd_event_add_signal(event, NULL, SIGTERM, interrupt_signal_handler, NULL);
115 (void) sd_event_add_signal(event, NULL, SIGINT, interrupt_signal_handler, NULL);
117 r = tar_pull_new(&pull, event, arg_image_root, on_tar_finished, event);
134 sd_event *event = userdata; local
[all...]
/systemd/src/machine/
H A Dmachined.h25 #include "sd-event.h"
37 sd_event *event; member in struct:Manager
/systemd/src/network/
H A Dnetworkd-wait-online.h22 #include "sd-event.h"
45 sd_event *event; member in struct:Manager
H A Dnetworkd-ipv4ll.c168 static void ipv4ll_handler(sd_ipv4ll *ll, int event, void *userdata){ argument
179 switch(event) {
196 log_link_warning(link, "IPv4 link-local unknown event: %d", event);
H A Dnetworkd.h25 #include "sd-event.h"
41 sd_event *event; member in struct:Manager
H A Dnetworkd-dhcp6.c117 static void dhcp6_handler(sd_dhcp6_client *client, int event, void *userdata) { argument
128 switch(event) {
157 if (event < 0)
158 log_link_warning_errno(link, event, "DHCPv6 error: %m");
160 log_link_warning(link, "DHCPv6 unknown event: %d", event);
H A Dnetworkd-ndisc.c71 assert_se(sd_event_now(link->manager->event, clock_boottime_or_monotonic(), &time_now) >= 0);
122 assert_se(sd_event_now(link->manager->event, clock_boottime_or_monotonic(), &time_now) >= 0);
173 assert_se(sd_event_now(link->manager->event, clock_boottime_or_monotonic(), &time_now) >= 0);
192 static void ndisc_handler(sd_ndisc *nd, int event, void *userdata) { argument
201 switch (event) {
216 log_link_warning(link, "IPv6 Neighbor Discovery unknown event: %d", event);
H A Dnetworkd-dhcp4.c468 static void dhcp4_handler(sd_dhcp_client *client, int event, void *userdata) { argument
479 switch (event) {
496 if (event == SD_DHCP_CLIENT_EVENT_IP_CHANGE) {
520 if (event < 0)
521 log_link_warning_errno(link, event, "DHCP error: Client failed: %m");
523 log_link_warning(link, "DHCP unknown event: %i", event);
/systemd/src/libsystemd-network/
H A Dtest-acd.c27 #include "sd-event.h"
35 static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) { argument
38 switch (event) {
49 assert_not_reached("invalid ACD event");
H A Dlldp-port.h25 #include "sd-event.h"
50 sd_event *event; member in struct:lldp_port
H A Dtest-ipv4ll-manual.c26 #include "sd-event.h"
37 static void ll_handler(sd_ipv4ll *ll, int event, void *userdata) { argument
46 switch (event) {
57 assert_not_reached("invalid LL event");
H A Ddhcp-server-internal.h24 #include "sd-event.h"
48 sd_event *event; member in struct:sd_dhcp_server
H A Dtest-dhcp-server.c24 #include "sd-event.h"
36 static int test_basic(sd_event *event) { argument
50 assert_se(sd_dhcp_server_attach_event(server, event, 0) >= 0);
51 assert_se(sd_dhcp_server_attach_event(server, event, 0) == -EBUSY);
52 assert_se(sd_dhcp_server_get_event(server) == event);
H A Dtest-ipv4ll.c42 static void basic_request_handler(sd_ipv4ll *ll, int event, void *userdata) { argument
45 switch(event) {
/systemd/man/
H A Dglib-event-glue.c30 sd_event *event; member in struct:SDEventSource
34 return sd_event_prepare(((SDEventSource *)source)->event) > 0;
38 return sd_event_wait(((SDEventSource *)source)->event, 0) > 0;
42 return sd_event_dispatch(((SDEventSource *)source)->event) > 0;
46 sd_event_unref(((SDEventSource *)source)->event);
56 GSource *g_sd_event_create_source(sd_event *event) { argument
61 source->event = sd_event_ref(event);
62 source->pollfd.fd = sd_event_get_fd(event);
/systemd/src/journal-remote/
H A Djournal-remote.h23 #include "sd-event.h"
36 sd_event_source *event; member in struct:MHDDaemonWrapper
H A Djournal-remote-parse.h22 #include "sd-event.h"
55 sd_event_source *event; member in struct:RemoteSource
H A Djournal-upload-journal.c345 static int dispatch_journal_input(sd_event_source *event, argument
388 return log_error_errno(r, "Failed to register input event: %m");
/systemd/src/test/
H A Dtest-udev.c79 _cleanup_udev_event_unref_ struct udev_event *event = NULL; local
119 event = udev_event_new(dev);
141 udev_event_execute_rules(event,
145 udev_event_execute_run(event,
/systemd/src/basic/
H A Dio-util.c184 int fd_wait_for_event(int fd, int event, usec_t t) { argument
188 .events = event,
/systemd/src/udev/
H A Dudevadm-test.c35 "Test an event run.\n"
51 _cleanup_udev_event_unref_ struct udev_event *event = NULL; local
131 event = udev_event_new(dev);
136 udev_event_execute_rules(event,
144 udev_list_entry_foreach(entry, udev_list_get_entry(&event->run_list)) {
147 udev_event_apply_format(event, udev_list_entry_get_name(entry), program, sizeof(program));
158 .help = "Test an event run",
/systemd/src/initctl/
H A Dinitctl.c342 log_info("Got invalid event from epoll. (3)");
398 struct epoll_event event; local
401 k = epoll_wait(server.epoll_fd, &event, 1, TIMEOUT_MSEC);
412 if (process_event(&server, &event) < 0)

Completed in 43 milliseconds

123