Searched defs:key (Results 1 - 25 of 96) sorted by relevance

1234

/systemd/src/basic/
H A Dstring-table.c23 ssize_t string_table_lookup(const char * const *table, size_t len, const char *key) { argument
26 if (!key)
30 if (streq_ptr(table[i], key))
H A DMurmurHash2.c37 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ) argument
51 const unsigned char * data = (const unsigned char *)key;
H A Dproc-cmdline.c45 int parse_proc_cmdline(int (*parse_item)(const char *key, const char *value)) { argument
84 int get_proc_cmdline_key(const char *key, char **value) { argument
90 assert(key);
113 e = startswith(word, key);
123 if (streq(word, key))
H A Dgunicode.c43 interval_compare (const void *key, const void *elt) argument
45 unichar c = (unichar) (long) (key);
H A Dset.h47 int set_put(Set *s, const void *key);
50 static inline void *set_get(Set *s, void *key) { argument
51 return internal_hashmap_get(HASHMAP_BASE(s), key);
55 static inline bool set_contains(Set *s, const void *key) { argument
56 return internal_hashmap_contains(HASHMAP_BASE(s), key);
59 static inline void *set_remove(Set *s, const void *key) { argument
60 return internal_hashmap_remove(HASHMAP_BASE(s), key);
77 static inline int set_move_one(Set *s, Set *other, const void *key) { argument
78 return internal_hashmap_move_one(HASHMAP_BASE(s), HASHMAP_BASE(other), key);
/systemd/src/hibernate-resume/
H A Dhibernate-resume-generator.c36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
38 if (streq(key, "resume") && value) {
/systemd/src/libudev/
H A Dlibudev-hwdb.c121 * Lookup a matching device in the hardware database. The lookup key is a
129 const char *key, *value; local
138 SD_HWDB_FOREACH_PROPERTY(hwdb->hwdb, modalias, key, value) {
139 if (udev_list_entry_add(&hwdb->properties_list, key, value) == NULL) {
H A Dlibudev.c111 char *key; local
116 /* find key */
117 key = line;
118 while (isspace(key[0]))
119 key++;
122 if (key[0] == '#' || key[0] == '\0')
125 /* split key/value */
126 val = strchr(key, '=');
138 /* terminate key */
[all...]
/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) {
50 else if (streq(key, "forcequotacheck") && !value) {
/systemd/src/test/
H A Dtest-siphash24.c25 static int do_test(const uint8_t *in, size_t len, const uint8_t *key) { argument
30 out = siphash24(in, len, key);
34 siphash24_init(&state, key);
55 siphash24_init(&state, key);
70 const uint8_t key[16] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, local
76 do_test(in_buf, sizeof(in), key);
78 do_test(in_buf + 1, sizeof(in), key);
80 do_test(in_buf + 2, sizeof(in), key);
82 do_test(in_buf + 4, sizeof(in), key);
H A Dtest-rbtree.c281 unsigned long key; member in struct:__anon313
288 unsigned long key = (unsigned long)k; local
291 return (key < node->key) ? -1 : (key > node->key) ? 1 : 0;
305 nodes[i]->key = i;
315 assert(!c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb));
317 slot = c_rbtree_find_slot(&t, compare, (void *)nodes[i]->key, &p);
322 assert(nodes[i] == c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Nod
[all...]
/systemd/src/core/
H A Dbus-endpoint.c84 _cleanup_free_ char *key = NULL; local
113 key = strdup(name);
114 if (!key)
117 po->name = key;
120 r = hashmap_put(ep->policy_hash, key, po);
125 key = NULL;
H A Dslice.c221 static int slice_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument
225 assert(key);
229 if (streq(key, "state")) {
239 log_debug("Unknown serialization key '%s'", key);
H A Dtarget.c156 static int target_deserialize_item(Unit *u, const char *key, const char *value, FDSet *fds) { argument
160 assert(key);
164 if (streq(key, "state")) {
174 log_debug("Unknown serialization key '%s'", key);
/systemd/src/debug-generator/
H A Ddebug-generator.c36 static int parse_proc_cmdline_item(const char *key, const char *value) { argument
39 assert(key);
41 if (streq(key, "systemd.mask")) {
57 } else if (streq(key, "systemd.wants")) {
73 } else if (streq(key, "systemd.debug-shell")) {
83 } else if (streq(key, "systemd.unit")) {
95 target = runlevel_to_target(key);
/systemd/src/libsystemd/sd-bus/
H A Dbus-slot.c149 struct vtable_member key; local
151 key.path = slot->node_vtable.node->path;
152 key.interface = slot->node_vtable.interface;
153 key.member = v->x.method.member;
155 x = hashmap_remove(slot->bus->vtable_methods, &key);
161 struct vtable_member key; local
163 key.path = slot->node_vtable.node->path;
164 key.interface = slot->node_vtable.interface;
165 key.member = v->x.method.member;
168 x = hashmap_remove(slot->bus->vtable_properties, &key);
[all...]
/systemd/src/udev/
H A Dudev-builtin.c136 int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val) { argument
137 udev_device_add_property(dev, key, val);
140 printf("%s=%s\n", key, val);
H A Dudev-builtin-hwdb.c39 const char *key, *value; local
52 SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value) {
53 if (filter && fnmatch(filter, key, FNM_NOESCAPE) != 0)
56 if (udev_builtin_add_property(dev, test, key, value) < 0)
173 /* query a specific key given as argument */
H A Dudevadm-trigger.c127 const char *key; local
171 key = keyval(optarg, &val, buf, sizeof(buf));
172 r = udev_enumerate_add_match_sysattr(udev_enumerate, key, val);
174 log_error_errno(r, "could not add sysattr match '%s=%s': %m", key, val);
179 key = keyval(optarg, &val, buf, sizeof(buf));
180 r = udev_enumerate_add_nomatch_sysattr(udev_enumerate, key, val);
182 log_error_errno(r, "could not add negative sysattr match '%s=%s': %m", key, val);
187 key = keyval(optarg, &val, buf, sizeof(buf));
188 r = udev_enumerate_add_match_property(udev_enumerate, key, val);
190 log_error_errno(r, "could not add property match '%s=%s': %m", key, va
[all...]
/systemd/src/boot/efi/
H A Dconsole.c79 EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait) { argument
95 /* wait until key is pressed */
122 *key = keypress;
130 * This is also called in case ReadKeyStrokeEx did not return a key, because
132 * handle any key. */
137 *key = KEYPRESS(0, k.ScanCode, k.UnicodeChar);
/systemd/src/libsystemd-network/
H A Dtest-dhcp-server.c198 static uint64_t client_id_hash_helper(DHCPClientId *id, uint8_t key[HASH_KEY_SIZE]) { argument
201 siphash24_init(&state, key);
/systemd/src/nspawn/
H A Dnspawn-setuid.c34 static int spawn_getent(const char *database, const char *key, pid_t *rpid) { argument
39 assert(key);
77 execle("/usr/bin/getent", "getent", database, key, NULL, &empty_env);
78 execle("/bin/getent", "getent", database, key, NULL, &empty_env);
/systemd/src/resolve/
H A Dresolved-dns-synthesize.c75 static int synthesize_localhost_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument
79 assert(key);
86 if (IN_SET(key->type, DNS_TYPE_A, DNS_TYPE_ANY)) {
89 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_A, DNS_RESOURCE_KEY_NAME(key));
100 if (IN_SET(key->type, DNS_TYPE_AAAA, DNS_TYPE_ANY)) {
103 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_AAAA, DNS_RESOURCE_KEY_NAME(key));
131 static int synthesize_localhost_ptr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) { argument
135 assert(key);
138 if (IN_SET(key->type, DNS_TYPE_PTR, DNS_TYPE_ANY)) {
143 r = answer_add_ptr(answer, DNS_RESOURCE_KEY_NAME(key), "localhos
223 synthesize_system_hostname_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument
307 synthesize_gateway_rr(Manager *m, const DnsResourceKey *key, int ifindex, DnsAnswer **answer) argument
347 DnsResourceKey *key; local
[all...]
/systemd/src/bootchart/
H A Dstore.c106 char key[256]; local
150 if (sscanf(m, "%s %s", key, val) < 2)
152 if (streq(key, "pgpgin"))
154 if (streq(key, "pgpgout")) {
171 if (sscanf(m, "%s %*s %*s %*s %*s %*s %*s %s %s", key, rt, wt) < 3)
174 if (strstr(key, "cpu")) {
175 r = safe_atoi((const char*)(key+3), &c);
270 if (!sscanf(buf, "%s %*s %*s", key))
273 strscpy(ps->name, sizeof(ps->name), key);
543 if (!sscanf(buf, "%s %*s %*s", key))
[all...]
/systemd/src/bus-proxyd/
H A Ddriver.c687 const char *key; local
690 r = sd_bus_message_read(m, "ss", &key, &value);
694 s = strjoin(key, "=", value, NULL);

Completed in 67 milliseconds

1234