Searched refs:value (Results 1 - 25 of 129) sorted by relevance

123456

/systemd/src/shared/
H A Dsysctl-util.h23 int sysctl_read(const char *property, char **value);
24 int sysctl_write(const char *property, const char *value);
H A Dsysctl-util.c53 int sysctl_write(const char *property, const char *value) { argument
57 assert(value);
59 log_debug("Setting '%s' to '%s'", property, value);
62 return write_string_file(p, value, 0);
H A Defivars.h43 int efi_set_reboot_to_firmware(bool value);
45 int efi_get_variable(sd_id128_t vendor, const char *name, uint32_t *attribute, void **value, size_t *size);
46 int efi_set_variable(sd_id128_t vendor, const char *name, const void *value, size_t size);
81 static inline int efi_set_reboot_to_firmware(bool value) { argument
85 static inline int efi_get_variable(sd_id128_t vendor, const char *name, uint32_t *attribute, void **value, size_t *size) { argument
89 static inline int efi_set_variable(sd_id128_t vendor, const char *name, const void *value, size_t size) { argument
/systemd/src/basic/
H A Dproc-cmdline.h23 int parse_proc_cmdline(int (*parse_word)(const char *key, const char *value));
24 int get_proc_cmdline_key(const char *parameter, char **value);
H A Dchattr-util.h22 int chattr_fd(int fd, unsigned value, unsigned mask);
23 int chattr_path(const char *p, unsigned value, unsigned mask);
H A Dsparse-endian.h72 static inline le16_t htole16(uint16_t value) { return (le16_t __force) bswap_16_on_be(value); } argument
73 static inline le32_t htole32(uint32_t value) { return (le32_t __force) bswap_32_on_be(value); } argument
74 static inline le64_t htole64(uint64_t value) { return (le64_t __force) bswap_64_on_be(value); } argument
76 static inline be16_t htobe16(uint16_t value) { return (be16_t __force) bswap_16_on_le(value); } argument
77 static inline be32_t htobe32(uint32_t value) { return (be32_t __force) bswap_32_on_le(value); } argument
78 htobe64(uint64_t value) argument
80 le16toh(le16_t value) argument
81 le32toh(le32_t value) argument
82 le64toh(le64_t value) argument
84 be16toh(be16_t value) argument
85 be32toh(be32_t value) argument
86 be64toh(be64_t value) argument
[all...]
H A Dproc-cmdline.c45 int parse_proc_cmdline(int (*parse_item)(const char *key, const char *value)) { argument
59 char *value = NULL; local
72 value = strchr(word, '=');
73 if (value)
74 *(value++) = 0;
76 r = parse_item(word, value);
84 int get_proc_cmdline_key(const char *key, char **value) { argument
112 if (value) {
128 if (value) {
129 *value
138 _cleanup_free_ char *value = NULL; local
[all...]
H A Dxattr-util.h28 int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
29 int fgetxattr_malloc(int fd, const char *name, char **value);
31 ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, void *value, size_t size, int flags);
H A Dchattr-util.c30 int chattr_fd(int fd, unsigned value, unsigned mask) { argument
54 new_attr = (old_attr & ~mask) | (value & mask);
64 int chattr_path(const char *p, unsigned value, unsigned mask) { argument
76 return chattr_fd(fd, value, mask);
H A Dhashmap.h60 const void *next_key; /* expected value of that entry's key pointer */
141 int hashmap_put(Hashmap *h, const void *key, void *value);
142 static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) { argument
143 return hashmap_put(PLAIN_HASHMAP(h), key, value);
146 int hashmap_update(Hashmap *h, const void *key, void *value);
147 static inline int ordered_hashmap_update(OrderedHashmap *h, const void *key, void *value) { argument
148 return hashmap_update(PLAIN_HASHMAP(h), key, value);
151 int hashmap_replace(Hashmap *h, const void *key, void *value);
152 static inline int ordered_hashmap_replace(OrderedHashmap *h, const void *key, void *value) { argument
153 return hashmap_replace(PLAIN_HASHMAP(h), key, value);
191 ordered_hashmap_remove_value(OrderedHashmap *h, const void *key, void *value) argument
196 ordered_hashmap_remove_and_put(OrderedHashmap *h, const void *old_key, const void *new_key, void *value) argument
201 ordered_hashmap_remove_and_replace(OrderedHashmap *h, const void *old_key, const void *new_key, void *value) argument
260 hashmap_iterate(Hashmap *h, Iterator *i, void **value, const void **key) argument
263 ordered_hashmap_iterate(OrderedHashmap *h, Iterator *i, void **value, const void **key) argument
[all...]
H A Dxattr-util.c36 int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink) { argument
43 assert(value);
56 *value = v;
74 int fgetxattr_malloc(int fd, const char *name, char **value) { argument
81 assert(value);
91 *value = v;
106 ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, void *value, size_t size, int flags) { argument
119 l = getxattr(fn, attribute, value, size);
/systemd/src/systemd/
H A Dsd-hwdb.h35 int sd_hwdb_get(sd_hwdb *hwdb, const char *modalias, const char *key, const char **value);
38 int sd_hwdb_enumerate(sd_hwdb *hwdb, const char **key, const char **value);
41 #define SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) \
43 else while (sd_hwdb_enumerate(hwdb, &(key), &(value)) > 0)
H A Dsd-device.h65 const char *sd_device_get_property_first(sd_device *device, const char **value);
66 const char *sd_device_get_property_next(sd_device *device, const char **value);
71 int sd_device_get_property_value(sd_device *device, const char *key, const char **value);
74 int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, char *value);
88 int sd_device_enumerator_add_match_sysattr(sd_device_enumerator *enumerator, const char *sysattr, const char *value, int match);
89 int sd_device_enumerator_add_match_property(sd_device_enumerator *enumerator, const char *property, const char *value);
/systemd/src/quotacheck/
H A Dquotacheck.c35 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
37 if (streq(key, "quotacheck.mode") && value) {
39 if (streq(value, "auto"))
41 else if (streq(value, "force"))
43 else if (streq(value, "skip"))
46 log_warning("Invalid quotacheck.mode= parameter '%s'. Ignoring.", value);
50 else if (streq(key, "forcequotacheck") && !value) {
/systemd/src/debug-generator/
H A Ddebug-generator.c36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
43 if (!value)
48 r = unit_name_mangle(value, UNIT_NAME_NOGLOB, &n);
59 if (!value)
64 r = unit_name_mangle(value, UNIT_NAME_NOGLOB, &n);
75 if (value) {
76 r = parse_boolean(value);
78 log_error("Failed to parse systemd.debug-shell= argument '%s', ignoring.", value);
85 if (!value)
88 r = free_and_strdup(&arg_default_unit, value);
[all...]
/systemd/src/test/
H A Dtest-prioq.c75 unsigned value; member in struct:test
82 if (x->value < y->value)
85 if (x->value > y->value)
94 siphash24_compress(&x->value, sizeof(x->value), state);
121 t->value = (unsigned) rand();
153 assert_se(previous <= t->value);
154 previous = t->value;
[all...]
/systemd/src/sysctl/
H A Dsysctl.c45 char *property, *value; local
49 HASHMAP_FOREACH_KEY(value, property, sysctl_options, i) {
52 k = sysctl_write(property, value);
55 "Couldn't write '%s' to '%s', ignoring: %m", value, property);
81 char l[LINE_MAX], *p, *value, *new_value, *property, *existing; local
99 value = strchr(p, '=');
100 if (!value) {
101 log_error("Line is not an assignment in file '%s': %s", path, value);
108 *value = 0;
109 value
[all...]
/systemd/src/backlight/
H A Dbacklight.c68 const char *value; local
70 value = udev_device_get_sysattr_value(parent, "class");
71 if (value) {
74 if (safe_atolu(value, &class) < 0) {
76 value, subsystem, sysname);
235 static void clamp_brightness(struct udev_device *device, char **value, unsigned max_brightness) { argument
240 r = safe_atou(*value, &brightness);
242 log_warning_errno(r, "Failed to parse brightness \"%s\": %m", *value);
254 char *old_value = *value;
256 r = asprintf(value, "
379 _cleanup_free_ char *value = NULL; local
409 const char *value; local
[all...]
/systemd/src/udev/
H A Dudev-builtin-blkid.c39 static void print_property(struct udev_device *dev, bool test, const char *name, const char *value) { argument
45 udev_builtin_add_property(dev, test, "ID_FS_TYPE", value);
48 udev_builtin_add_property(dev, test, "ID_FS_USAGE", value);
51 udev_builtin_add_property(dev, test, "ID_FS_VERSION", value);
54 blkid_safe_string(value, s, sizeof(s));
56 blkid_encode_string(value, s, sizeof(s));
60 blkid_safe_string(value, s, sizeof(s));
62 blkid_encode_string(value, s, sizeof(s));
66 blkid_safe_string(value, s, sizeof(s));
68 blkid_encode_string(value,
[all...]
/systemd/src/libsystemd/sd-device/
H A Ddevice-util.h24 #define FOREACH_DEVICE_PROPERTY(device, key, value) \
25 for (key = sd_device_get_property_first(device, &(value)); \
27 key = sd_device_get_property_next(device, &(value)))
H A Ddevice-private.c48 int device_add_property(sd_device *device, const char *key, const char *value) { argument
54 r = device_add_property_aux(device, key, value, false);
59 r = device_add_property_aux(device, key, value, true);
69 char *value; local
78 value = strchr(key, '=');
79 if (!value)
82 *value = '\0';
84 if (isempty(++value))
85 value = NULL;
87 return device_add_property_internal(device, key, value);
90 handle_db_line(sd_device *device, char key, const char *value) argument
180 const char *id, *value; local
373 device_amend(sd_device *device, const char *key, const char *value) argument
478 char *value; local
872 const char *property, *value; local
1047 const char *property, *value, *tag; local
[all...]
H A Dsd-device.c108 _cleanup_free_ char *key = NULL, *value = NULL, *old_key = NULL, *old_value = NULL; local
119 value = strdup(_value);
120 if (!value)
125 r = ordered_hashmap_replace(*properties, key, value);
130 value = NULL;
133 _cleanup_free_ char *value = NULL; local
135 value = ordered_hashmap_remove2(*properties, _key, (void**) &key);
146 int device_add_property_internal(sd_device *device, const char *key, const char *value) { argument
147 return device_add_property_aux(device, key, value, false);
457 static int handle_uevent_line(sd_device *device, const char *key, const char *value, cons argument
497 const char *syspath, *key = NULL, *value = NULL, *major = NULL, *minor = NULL; local
1097 char *value; local
1138 handle_db_line(sd_device *device, char key, const char *value) argument
1256 const char *id, *value; local
1502 const char *value; local
1524 const char *value; local
1635 char *value; local
1656 device_add_sysattr_value(sd_device *device, const char *_key, char *value) argument
1685 const char *key = NULL, *value; local
1703 _cleanup_free_ char *value = NULL; local
1781 _cleanup_free_ char *value = NULL; local
1795 _cleanup_free_ char *value = NULL; local
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-gvariant.h29 void bus_gvariant_write_word_le(void *p, size_t sz, size_t value);
/systemd/src/cryptsetup/
H A Dcryptsetup-generator.c283 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
288 if (STR_IN_SET(key, "luks", "rd.luks") && value) {
290 r = parse_boolean(value);
292 log_warning("Failed to parse luks switch %s. Ignoring.", value);
296 } else if (STR_IN_SET(key, "luks.crypttab", "rd.luks.crypttab") && value) {
298 r = parse_boolean(value);
300 log_warning("Failed to parse luks crypttab switch %s. Ignoring.", value);
304 } else if (STR_IN_SET(key, "luks.uuid", "rd.luks.uuid") && value) {
306 d = get_crypto_device(startswith(value, "luks-") ? value
[all...]
/systemd/src/libudev/
H A Dlibudev-list.c39 * contains a name, and optionally a value.
45 char *value; member in struct:udev_list_entry
142 struct udev_list_entry *udev_list_entry_add(struct udev_list *list, const char *name, const char *value) argument
153 free(entry->value);
154 if (value == NULL) {
155 entry->value = NULL;
158 entry->value = strdup(value);
159 if (entry->value == NULL)
174 if (value !
[all...]

Completed in 84 milliseconds

123456