/systemd-251/src/shared/ |
D | lockfile-util.c | 18 int make_lock_file(const char *p, int operation, LockFile *ret) { in make_lock_file() argument 40 .l_type = (operation & ~LOCK_NB) == LOCK_EX ? F_WRLCK : F_RDLCK, in make_lock_file() 49 r = fcntl(fd, (operation & LOCK_NB) ? F_OFD_SETLK : F_OFD_SETLKW, &fl); in make_lock_file() 54 r = flock(fd, operation); in make_lock_file() 77 ret->operation = operation; in make_lock_file() 85 int make_lock_file_for(const char *p, int operation, LockFile *ret) { in make_lock_file_for() argument 99 return make_lock_file(t, operation, ret); in make_lock_file_for() 115 (f->operation & ~LOCK_NB) == LOCK_SH) { in release_lock_file() 126 f->operation = LOCK_EX|LOCK_NB; in release_lock_file() 129 if ((f->operation & ~LOCK_NB) == LOCK_EX) in release_lock_file() [all …]
|
D | sleep-config.c | 596 static int can_sleep_internal(const SleepConfig *sleep_config, SleepOperation operation, bool check… 627 SleepOperation operation, in can_sleep_internal() argument 630 assert(operation >= 0); in can_sleep_internal() 631 assert(operation < _SLEEP_OPERATION_MAX); in can_sleep_internal() 633 if (check_allowed && !sleep_config->allow[operation]) { in can_sleep_internal() 634 …log_debug("Sleep mode \"%s\" is disabled by configuration.", sleep_operation_to_string(operation)); in can_sleep_internal() 638 if (operation == SLEEP_SUSPEND_THEN_HIBERNATE) in can_sleep_internal() 641 if (can_sleep_state(sleep_config->states[operation]) <= 0 || in can_sleep_internal() 642 can_sleep_disk(sleep_config->modes[operation]) <= 0) in can_sleep_internal() 645 if (operation == SLEEP_SUSPEND) in can_sleep_internal() [all …]
|
D | lockfile-util.h | 7 int operation; member 10 int make_lock_file(const char *p, int operation, LockFile *ret); 11 int make_lock_file_for(const char *p, int operation, LockFile *ret);
|
D | discover-image.h | 79 int image_path_lock(const char *path, int operation, LockFile *global, LockFile *local); 80 int image_name_lock(const char *name, int operation, LockFile *ret);
|
D | discover-image.c | 1008 int image_path_lock(const char *path, int operation, LockFile *global, LockFile *local) { in image_path_lock() argument 1027 switch (operation & (LOCK_SH|LOCK_EX)) { in image_path_lock() 1073 r = make_lock_file_for(path, operation, &t); in image_path_lock() 1085 r = make_lock_file(p, operation, global); in image_path_lock() 1244 int image_name_lock(const char *name, int operation, LockFile *ret) { in image_name_lock() argument 1266 return make_lock_file(p, operation, ret); in image_name_lock()
|
D | blockdev-util.c | 217 int lock_whole_block_device(dev_t devt, int operation) { in lock_whole_block_device() argument 237 if (flock(lock_fd, operation) < 0) in lock_whole_block_device()
|
D | blockdev-util.h | 24 int lock_whole_block_device(dev_t devt, int operation);
|
D | loop-util.h | 33 int loop_device_flock(LoopDevice *d, int operation);
|
D | sleep-config.h | 55 int can_sleep(SleepOperation operation);
|
/systemd-251/src/sleep/ |
D | sleep.c | 170 SleepOperation operation, in execute() argument 192 assert(operation >= 0); in execute() 193 assert(operation < _SLEEP_OPERATION_MAX); in execute() 194 assert(operation != SLEEP_SUSPEND_THEN_HIBERNATE); /* Handled by execute_s2h() instead */ in execute() 196 states = sleep_config->states[operation]; in execute() 197 modes = sleep_config->modes[operation]; in execute() 202 sleep_operation_to_string(operation)); in execute() 233 action = sleep_operation_to_string(operation); in execute() 244 … LOG_MESSAGE("Entering sleep state '%s'...", sleep_operation_to_string(operation)), in execute()
|
/systemd-251/src/home/ |
D | homed-operation.h | 50 Operation *operation_ref(Operation *operation); 51 Operation *operation_unref(Operation *operation);
|
D | meson.build | 52 'homed-operation.c', 53 'homed-operation.h',
|
D | homed-operation.c | 61 DEFINE_TRIVIAL_REF_UNREF_FUNC(Operation, operation, operation_free);
|
/systemd-251/src/machine/ |
D | meson.build | 19 'operation.c', 20 'operation.h',
|
D | machined-dbus.c | 608 static int clean_pool_done(Operation *operation, int ret, sd_bus_error *error) { in clean_pool_done() argument 615 assert(operation); in clean_pool_done() 616 assert(operation->extra_fd >= 0); in clean_pool_done() 618 if (lseek(operation->extra_fd, 0, SEEK_SET) == (off_t) -1) in clean_pool_done() 621 f = take_fdopen(&operation->extra_fd, "r"); in clean_pool_done() 650 r = sd_bus_message_new_method_return(operation->message, &reply); in clean_pool_done() 696 Operation *operation; in method_clean_pool() local 825 r = operation_new(m, NULL, child, message, errno_pipe_fd[0], &operation); in method_clean_pool() 831 operation->extra_fd = result_fd; in method_clean_pool() 832 operation->done = clean_pool_done; in method_clean_pool()
|
/systemd-251/src/portable/ |
D | meson.build | 11 'portabled-operation.c', 12 'portabled-operation.h',
|
/systemd-251/src/basic/ |
D | unit-name.c | 704 int unit_name_mangle_with_suffix(const char *name, const char *operation, UnitNameMangle flags, con… in unit_name_mangle_with_suffix() argument 729 operation ? " " : "", strempty(operation)); in unit_name_mangle_with_suffix()
|
D | unit-name.h | 59 int unit_name_mangle_with_suffix(const char *name, const char *operation, UnitNameMangle flags, con…
|
/systemd-251/src/systemctl/ |
D | systemctl-util.h | 54 int mangle_names(const char *operation, char **original_names, char ***ret_mangled_names);
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 2541 static int process_item(Item *i, OperationMask operation) { in process_item() argument 2549 todo = operation & ~i->done; in process_item() 2553 i->done |= operation; in process_item() 2575 r = FLAGS_SET(operation, OPERATION_CREATE) ? create_item(i) : 0; in process_item() 2580 q = FLAGS_SET(operation, OPERATION_REMOVE) ? remove_item(i) : 0; in process_item() 2581 p = FLAGS_SET(operation, OPERATION_CLEAN) ? clean_item(i) : 0; in process_item() 2588 static int process_item_array(ItemArray *array, OperationMask operation) { in process_item_array() argument 2595 if (FLAGS_SET(operation, OPERATION_CREATE) && array->parent) in process_item_array() 2596 r = process_item_array(array->parent, operation & OPERATION_CREATE); in process_item_array() 2599 if ((operation & (OPERATION_REMOVE|OPERATION_CLEAN)) && !set_isempty(array->children)) { in process_item_array() [all …]
|
/systemd-251/units/ |
D | systemd-machined.service.in | 37 # "machinectl bind" operation.
|
/systemd-251/test/fuzz/fuzz-unit-file/ |
D | systemd-machined.service | 39 # "machinectl bind" operation.
|
/systemd-251/docs/ |
D | BLOCK_DEVICE_LOCKING.md | 43 half-written data either. After the operation is complete the 87 during normal operation, i.e. while file systems on it are mounted for
|
D | ROOT_STORAGE_DAEMONS.md | 52 initrd, stay running all the time during normal operation and are terminated 78 "`switch_root`" operation), so that no processes from the initrd survive to the 83 normal operation and are only killed after control is passed back to the
|
D | PORTABLE_SERVICES.md | 142 The `portablectl detach` command executes the reverse operation: it looks for 147 The same is true for the opposite `detach` operation. 151 operation on the units instead of `stop` plus `start`, thus providing lower 332 operation. In fact all but the `trusted` profile will default to this kind of
|