Searched refs:action (Results 1 - 24 of 24) sorted by relevance

/systemd/src/core/
H A Dfailure-action.c26 #include "failure-action.h"
40 FailureAction action,
44 assert(action >= 0);
45 assert(action < _FAILURE_ACTION_MAX);
47 if (action == FAILURE_ACTION_NONE)
59 switch (action) {
110 assert_not_reached("Unknown failure action");
38 failure_action( Manager *m, FailureAction action, const char *reboot_arg) argument
H A Dfailure-action.h38 int failure_action(Manager *m, FailureAction action, const char *reboot_arg);
H A Ddevice.c703 const char *action, *sysfs; local
731 action = udev_device_get_action(dev);
732 if (!action) {
733 log_error("Failed to get udev action string.");
737 if (streq(action, "remove")) {
H A Dexecute.c1046 uint32_t negative_action, action; local
1076 action = c->syscall_whitelist ? SCMP_ACT_ALLOW : negative_action;
1078 r = seccomp_rule_add(seccomp, action, PTR_TO_INT(id) - 1, 0);
/systemd/src/test/
H A Dtest-udev.c84 const char *action; local
98 action = argv[1];
99 if (action == NULL) {
100 log_error("action missing");
113 dev = udev_device_new_from_synthetic_event(udev, syspath, action);
132 if (!streq(action, "remove")) {
/systemd/src/import/
H A Dcurl-util.c44 int action, k = 0, translated_fd; local
52 action = CURL_POLL_INOUT;
54 action = CURL_POLL_IN;
56 action = CURL_POLL_OUT;
58 action = 0;
60 if (curl_multi_socket_action(g->curl, translated_fd, action, &k) < 0) {
69 static int curl_glue_socket_callback(CURLM *curl, curl_socket_t s, int action, void *userdata, void *socketp) { argument
80 if (action == CURL_POLL_REMOVE) {
111 if (action == CURL_POLL_IN)
113 else if (action
[all...]
/systemd/src/udev/
H A Dudevadm-trigger.c35 static void exec_list(struct udev_enumerate *udev_enumerate, const char *action) { argument
50 if (write(fd, action, strlen(action)) < 0)
51 log_debug_errno(errno, "error writing '%s' to '%s': %m", action, filename);
79 " -c --action=ACTION Event action value, default is \"change\"\n"
101 { "action", required_argument, NULL, 'c' },
118 const char *action = "change"; local
150 log_error("unknown action '%s'", optarg);
153 action
[all...]
H A Dudevadm-test.c38 " -a --action=ACTION Set action string\n"
46 const char *action = "add"; local
56 { "action", required_argument, NULL, 'a' },
67 action = optarg;
121 dev = udev_device_new_from_synthetic_event(udev, filename, action);
H A Dudevadm-info.c312 } action = ACTION_QUERY; local
350 action = ACTION_QUERY;
370 action = ACTION_DEVICE_ID_FILE;
374 action = ACTION_ATTRIBUTE_WALK;
398 switch (action) {
/systemd/src/journal-remote/
H A Dlog-generator.py8 PARSER.add_argument('--dots', action='store_true')
/systemd/src/libsystemd/sd-device/
H A Ddevice-private.c475 DeviceAction action = _DEVICE_ACTION_INVALID; local
504 action = device_action_from_string(value);
505 if (action == _DEVICE_ACTION_INVALID)
527 if (action != _DEVICE_ACTION_INVALID)
528 *_action = action;
542 static int device_verify(sd_device *device, DeviceAction action, uint64_t seqnum) { argument
545 if (!device->devpath || !device->subsystem || action == _DEVICE_ACTION_INVALID || seqnum == 0) {
546 log_debug("sd-device: device created from strv lacks devpath, subsystem, action or seqnum");
559 DeviceAction action = _DEVICE_ACTION_INVALID; local
571 r = device_append(device, *key, &major, &minor, &seqnum, &action);
595 DeviceAction action = _DEVICE_ACTION_INVALID; local
845 device_new_from_synthetic_event(sd_device **new_device, const char *syspath, const char *action) argument
[all...]
H A Ddevice-private.h63 int device_new_from_synthetic_event(sd_device **new_device, const char *syspath, const char *action);
/systemd/src/journal/
H A Dcompress.c374 lzma_action action = LZMA_RUN; local
386 if (s.avail_in == 0 && action == LZMA_RUN) {
397 action = LZMA_FINISH;
414 ret = lzma_code(&s, action);
545 lzma_action action = LZMA_RUN; local
557 if (s.avail_in == 0 && action == LZMA_RUN) {
564 action = LZMA_FINISH;
576 ret = lzma_code(&s, action);
/systemd/src/tmpfiles/
H A Dtmpfiles.c1054 static int item_do_children(Item *i, const char *path, action_t action) { argument
1089 q = action(i, p);
1094 q = item_do_children(i, p, action);
1103 static int glob_item(Item *i, action_t action, bool recursive) { argument
1120 k = action(i, *fn);
1125 k = item_do_children(i, *fn, action);
1159 log_debug("Running create action for entry %c %s", (char) i->type, i->path);
1545 log_debug("Running remove action for entry %c %s", (char) i->type, i->path);
1640 log_debug("Running clean action for entry %c %s", (char) i->type, i->path);
1812 _cleanup_free_ char *action local
[all...]
/systemd/src/libudev/
H A Dlibudev-device-private.c278 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action) { argument
286 r = device_new_from_synthetic_event(&device->device, syspath, action);
H A Dlibudev-device.c759 * sys do not have an action string. Usual actions are: add, remove, change, online,
762 * Returns: the kernel action value, or #NULL if there is no action value available.
765 const char *action = NULL; local
770 r = sd_device_get_property_value(udev_device->device, "ACTION", &action);
776 return action;
H A Dlibudev-private.h42 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, const char *action);
/systemd/src/shared/
H A Dbus-util.h70 int bus_test_polkit(sd_bus_message *call, int capability, const char *action, const char **details, uid_t good_user, bool *_challenge, sd_bus_error *e);
72 int bus_verify_polkit_async(sd_bus_message *call, int capability, const char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error);
H A Dbus-util.c250 const char *action,
259 assert(action);
297 action);
408 const char *action,
426 assert(action);
518 action);
247 bus_test_polkit( sd_bus_message *call, int capability, const char *action, const char **details, uid_t good_user, bool *_challenge, sd_bus_error *e) argument
405 bus_verify_polkit_async( sd_bus_message *call, int capability, const char *action, const char **details, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error) argument
/systemd/src/sysusers/
H A Dsysusers.c1387 _cleanup_free_ char *action = NULL, *name = NULL, *id = NULL, *resolved_name = NULL, *resolved_id = NULL, *description = NULL, *home = NULL; local
1400 r = extract_many_words(&p, NULL, EXTRACT_QUOTES, &action, &name, &id, &description, &home, NULL);
1406 log_error("[%s:%u] Missing action and name columns.", fname, line);
1414 /* Verify action */
1415 if (strlen(action) != 1) {
1416 log_error("[%s:%u] Unknown modifier '%s'", fname, line, action);
1420 if (!IN_SET(action[0], ADD_USER, ADD_GROUP, ADD_MEMBER, ADD_RANGE)) {
1421 log_error("[%s:%u] Unknown command command type '%c'.", fname, line, action[0]);
1476 switch (action[0]) {
1660 i->type = action[
[all...]
/systemd/src/login/
H A Dlogind-dbus.c1477 log_info("Running in dry run, suppressing action.");
1662 const char *action,
1708 if (!multiple_sessions && !blocked && action) {
1709 r = bus_verify_polkit_async(message, CAP_SYS_BOOT, action, NULL, interactive, UID_INVALID, &m->polkit_registry, error);
1724 const char *action,
1755 r = verify_shutdown_creds(m, message, w, interactive, action, action_multiple_sessions,
1917 const char *action = NULL; local
1935 action = "org.freedesktop.login1.reboot";
1939 action = "org.freedesktop.login1.halt";
1943 action
1657 verify_shutdown_creds( Manager *m, sd_bus_message *message, InhibitWhat w, bool interactive, const char *action, const char *action_multiple_sessions, const char *action_ignore_inhibit, sd_bus_error *error) argument
1719 method_do_shutdown_or_sleep( Manager *m, sd_bus_message *message, const char *unit_name, InhibitWhat w, const char *action, const char *action_multiple_sessions, const char *action_ignore_inhibit, const char *sleep_verb, sd_bus_error *error) argument
2077 method_can_shutdown_or_sleep( Manager *m, sd_bus_message *message, InhibitWhat w, const char *action, const char *action_multiple_sessions, const char *action_ignore_inhibit, const char *sleep_verb, sd_bus_error *error) argument
[all...]
/systemd/src/boot/
H A Dbootctl.c993 enum action { enum
1001 enum action action; member in struct:__anon40
1020 arg_action = verbs[i].action;
/systemd/src/systemctl/
H A Dsystemctl.c121 static enum action { enum
154 static int halt_now(enum action a);
2709 static enum action verb_to_action(const char *verb) {
2710 enum action i;
2735 enum action action; local
2738 action = verb_to_action(argv[0]);
2744 mode = action_table[action].mode ?: arg_job_mode;
2746 one_name = action_table[action].target;
2833 static int logind_reboot(enum action
7466 const char *action; local
[all...]
/systemd/test/
H A Dudev-test.pl1321 my ($action, $devpath, $rules) = @_;
1330 system("$udev_bin_valgrind $action $devpath");
1332 system("$udev_bin_gdb $action $devpath");
1334 system("$udev_bin", "$action", "$devpath");

Completed in 1769 milliseconds