/systemd-251/src/libsystemd/sd-bus/ |
D | bus-slot.c | 18 sd_bus_slot *slot; in bus_slot_allocate() local 22 slot = malloc0(offsetof(sd_bus_slot, reply_callback) + extra); in bus_slot_allocate() 23 if (!slot) in bus_slot_allocate() 26 slot->n_ref = 1; in bus_slot_allocate() 27 slot->type = type; in bus_slot_allocate() 28 slot->bus = bus; in bus_slot_allocate() 29 slot->floating = floating; in bus_slot_allocate() 30 slot->userdata = userdata; in bus_slot_allocate() 35 LIST_PREPEND(slots, bus->slots, slot); in bus_slot_allocate() 37 return slot; in bus_slot_allocate() [all …]
|
D | bus-objects.c | 112 sd_bus_slot *slot; in add_enumerated_to_set() local 117 slot = container_of(c, sd_bus_slot, node_enumerator); in add_enumerated_to_set() 119 bus->current_slot = sd_bus_slot_ref(slot); in add_enumerated_to_set() 120 bus->current_userdata = slot->userdata; in add_enumerated_to_set() 121 r = c->callback(bus, prefix, slot->userdata, &children, error); in add_enumerated_to_set() 123 bus->current_slot = sd_bus_slot_unref(slot); in add_enumerated_to_set() 258 sd_bus_slot *slot; in node_callbacks_run() local 277 slot = container_of(c, sd_bus_slot, node_callback); in node_callbacks_run() 279 bus->current_slot = sd_bus_slot_ref(slot); in node_callbacks_run() 281 bus->current_userdata = slot->userdata; in node_callbacks_run() [all …]
|
D | sd-bus.c | 2239 sd_bus_slot **slot, in sd_bus_call_async() argument 2263 if (!callback && !slot && !m->sealed) in sd_bus_call_async() 2282 if (slot || callback) { in sd_bus_call_async() 2283 … s = bus_slot_allocate(bus, !slot, BUS_REPLY_CALLBACK, sizeof(struct reply_callback), userdata); in sd_bus_call_async() 2310 if (slot) in sd_bus_call_async() 2311 *slot = s; in sd_bus_call_async() 2615 sd_bus_slot *slot; in process_timeout() local 2651 slot = container_of(c, sd_bus_slot, reply_callback); in process_timeout() 2658 bus->current_slot = sd_bus_slot_ref(slot); in process_timeout() 2660 bus->current_userdata = slot->userdata; in process_timeout() [all …]
|
D | fuzz-bus-match.c | 35 sd_bus_slot slot = { in LLVMFuzzerTestOneInput() local 77 r = bus_match_add(&root, components, n_components, &slot.match_callback); in LLVMFuzzerTestOneInput()
|
D | bus-match.c | 306 sd_bus_slot *slot; in bus_match_run() local 308 slot = container_of(node->leaf.callback, sd_bus_slot, match_callback); in bus_match_run() 310 bus->current_slot = sd_bus_slot_ref(slot); in bus_match_run() 312 bus->current_userdata = slot->userdata; in bus_match_run() 314 r = node->leaf.callback->callback(m, slot->userdata, &error_buffer); in bus_match_run() 318 bus->current_slot = sd_bus_slot_unref(slot); in bus_match_run()
|
D | bus-track.c | 13 sd_bus_slot *slot; member 46 sd_bus_slot_unref(i->slot); in track_item_free() 231 r = sd_bus_add_match_async(track->bus, &n->slot, match, on_name_owner_changed, NULL, track); in sd_bus_track_add_name()
|
D | bus-slot.h | 10 void bus_slot_disconnect(sd_bus_slot *slot, bool unref);
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-slot.c | 21 _cleanup_free_ sd_netlink_slot *slot = NULL; in netlink_slot_allocate() local 26 slot = malloc0(offsetof(sd_netlink_slot, reply_callback) + extra); in netlink_slot_allocate() 27 if (!slot) in netlink_slot_allocate() 30 slot->n_ref = 1; in netlink_slot_allocate() 31 slot->netlink = nl; in netlink_slot_allocate() 32 slot->userdata = userdata; in netlink_slot_allocate() 33 slot->type = type; in netlink_slot_allocate() 34 slot->floating = floating; in netlink_slot_allocate() 37 slot->description = strdup(description); in netlink_slot_allocate() 38 if (!slot->description) in netlink_slot_allocate() [all …]
|
D | sd-netlink.c | 347 sd_netlink_slot *slot; in process_timeout() local 369 slot = container_of(c, sd_netlink_slot, reply_callback); in process_timeout() 371 r = c->callback(nl, m, slot->userdata); in process_timeout() 374 slot->description ? "'" : "", in process_timeout() 375 strempty(slot->description), in process_timeout() 376 slot->description ? "' " : ""); in process_timeout() 378 if (slot->floating) in process_timeout() 379 netlink_slot_disconnect(slot, true); in process_timeout() 386 sd_netlink_slot *slot; in process_reply() local 411 slot = container_of(c, sd_netlink_slot, reply_callback); in process_reply() [all …]
|
D | test-netlink.c | 213 _cleanup_(sd_netlink_slot_unrefp) sd_netlink_slot *slot = NULL; in test_async() 227 …assert_se(sd_netlink_call_async(rtnl, &slot, m, link_handler, test_async_destroy, ifname, 0, "hoge… in test_async() 229 assert_se(sd_netlink_slot_get_netlink(slot) == rtnl); in test_async() 230 assert_se(sd_netlink_slot_get_userdata(slot) == ifname); in test_async() 231 assert_se(sd_netlink_slot_get_destroy_callback(slot, &destroy_callback) == 1); in test_async() 233 assert_se(sd_netlink_slot_get_floating(slot) == 0); in test_async() 234 assert_se(sd_netlink_slot_get_description(slot, &description) == 1); in test_async() 246 _cleanup_(sd_netlink_slot_unrefp) sd_netlink_slot *slot = NULL; in test_slot_set() 260 assert_se(sd_netlink_call_async(rtnl, &slot, m, link_handler, NULL, NULL, 0, NULL) >= 0); in test_slot_set() 262 assert_se(sd_netlink_slot_get_netlink(slot) == rtnl); in test_slot_set() [all …]
|
/systemd-251/src/cryptenroll/ |
D | cryptenroll-wipe.c | 20 for (int slot = 0; slot < slot_max; slot++) { in find_all_slots() local 24 if (set_contains(keep_slots, INT_TO_PTR(slot)) || in find_all_slots() 25 set_contains(wipe_slots, INT_TO_PTR(slot))) in find_all_slots() 28 status = crypt_keyslot_status(cd, slot); in find_all_slots() 32 if (set_put(wipe_slots, INT_TO_PTR(slot)) < 0) in find_all_slots() 55 for (int slot = 0; slot < slot_max; slot++) { in find_empty_passphrase_slots() local 60 if (set_contains(keep_slots, INT_TO_PTR(slot)) || in find_empty_passphrase_slots() 61 set_contains(wipe_slots, INT_TO_PTR(slot))) in find_empty_passphrase_slots() 64 status = crypt_keyslot_status(cd, slot); in find_empty_passphrase_slots() 72 r = crypt_volume_key_get(cd, slot, vk, &vks, "", 0); in find_empty_passphrase_slots() [all …]
|
D | cryptenroll.c | 342 _cleanup_free_ char *slot = NULL; in parse_argv() local 345 … r = extract_first_word(&p, &slot, ",", EXTRACT_DONT_COALESCE_SEPARATORS); in parse_argv() 351 if (streq(slot, "all")) in parse_argv() 353 else if (streq(slot, "empty")) { in parse_argv() 356 } else if (streq(slot, "password")) in parse_argv() 358 else if (streq(slot, "recovery")) in parse_argv() 360 else if (streq(slot, "pkcs11")) in parse_argv() 362 else if (streq(slot, "fido2")) in parse_argv() 364 else if (streq(slot, "tpm2")) in parse_argv() 369 r = safe_atou(slot, &n); in parse_argv() [all …]
|
D | cryptenroll-list.c | 11 int slot; in list_enrolled() member 23 for (int slot = 0; slot < slot_max; slot++) { in list_enrolled() local 26 status = crypt_keyslot_status(cd, slot); in list_enrolled() 34 .slot = slot, in list_enrolled() 87 if ((unsigned) keyslot_metadata[i].slot != u) in list_enrolled() 109 TABLE_INT, keyslot_metadata[i].slot, in list_enrolled()
|
/systemd-251/src/test/ |
D | test-bus-util.c | 19 sd_bus_slot *slot = NULL; in TEST() local 30 …r = sd_bus_request_name_async(bus, &slot, "org.freedesktop.systemd.test-bus-util", 0, callback, &n… in TEST() 33 assert_se(sd_bus_slot_get_destroy_callback(slot, NULL) == 0); in TEST() 34 assert_se(sd_bus_slot_get_destroy_callback(slot, &t) == 0); in TEST() 36 assert_se(sd_bus_slot_set_destroy_callback(slot, destroy_callback) == 0); in TEST() 37 assert_se(sd_bus_slot_get_destroy_callback(slot, NULL) == 1); in TEST() 38 assert_se(sd_bus_slot_get_destroy_callback(slot, &t) == 1); in TEST() 43 sd_bus_slot_unref(slot); in TEST()
|
/systemd-251/src/systemd/ |
D | sd-bus.h | 203 int sd_bus_call_async(sd_bus *bus, sd_bus_slot **slot, sd_bus_message *m, sd_bus_message_handler_t … 229 int sd_bus_add_filter(sd_bus *bus, sd_bus_slot **slot, sd_bus_message_handler_t callback, void *use… 230 int sd_bus_add_match(sd_bus *bus, sd_bus_slot **slot, const char *match, sd_bus_message_handler_t c… 231 int sd_bus_add_match_async(sd_bus *bus, sd_bus_slot **slot, const char *match, sd_bus_message_handl… 232 int sd_bus_add_object(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_message_handler_t c… 233 int sd_bus_add_fallback(sd_bus *bus, sd_bus_slot **slot, const char *prefix, sd_bus_message_handler… 234 int sd_bus_add_object_vtable(sd_bus *bus, sd_bus_slot **slot, const char *path, const char *interfa… 235 int sd_bus_add_fallback_vtable(sd_bus *bus, sd_bus_slot **slot, const char *prefix, const char *int… 236 int sd_bus_add_node_enumerator(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_node_enume… 237 int sd_bus_add_object_manager(sd_bus *bus, sd_bus_slot **slot, const char *path); [all …]
|
D | sd-netlink.h | 251 sd_netlink_slot *sd_netlink_slot_ref(sd_netlink_slot *slot); 252 sd_netlink_slot *sd_netlink_slot_unref(sd_netlink_slot *slot); 254 sd_netlink *sd_netlink_slot_get_netlink(sd_netlink_slot *slot); 255 void *sd_netlink_slot_get_userdata(sd_netlink_slot *slot); 256 void *sd_netlink_slot_set_userdata(sd_netlink_slot *slot, void *userdata); 257 int sd_netlink_slot_get_destroy_callback(sd_netlink_slot *slot, sd_netlink_destroy_t *callback); 258 int sd_netlink_slot_set_destroy_callback(sd_netlink_slot *slot, sd_netlink_destroy_t callback); 259 int sd_netlink_slot_get_floating(sd_netlink_slot *slot); 260 int sd_netlink_slot_set_floating(sd_netlink_slot *slot, int b); 261 int sd_netlink_slot_get_description(sd_netlink_slot *slot, const char **description); [all …]
|
/systemd-251/src/shared/ |
D | bus-polkit.c | 162 sd_bus_slot *slot; member 172 sd_bus_slot_unref(q->slot); in async_polkit_query_free() 206 assert(q->slot); in async_polkit_callback() 207 q->slot = sd_bus_slot_unref(q->slot); in async_polkit_callback() 395 r = sd_bus_call_async(call->bus, &q->slot, pk, async_polkit_callback, q, 0); in bus_verify_polkit_async()
|
D | bus-locator.c | 70 sd_bus_slot **slot, in bus_call_method_async() argument 83 …r = sd_bus_call_method_asyncv(bus, slot, locator->destination, locator->path, locator->interface, … in bus_call_method_async()
|
/systemd-251/src/boot/ |
D | bootctl.c | 916 static int insert_into_order(uint16_t slot, bool first) { in insert_into_order() argument 924 return efi_set_boot_order(&slot, 1); in insert_into_order() 927 if (n == 1 && order[0] == slot) in insert_into_order() 932 if (order[i] != slot) in insert_into_order() 941 order[0] = slot; in insert_into_order() 954 order[0] = slot; in insert_into_order() 956 order[n] = slot; in insert_into_order() 961 static int remove_from_order(uint16_t slot) { in remove_from_order() argument 970 if (order[i] != slot) in remove_from_order() 986 uint16_t slot; in install_variables() local [all …]
|
/systemd-251/test/test-network/conf/ |
D | 25-sriov.link | 6 NamePolicy=keep kernel database onboard slot path 7 AlternativeNamesPolicy=database onboard slot path mac
|
/systemd-251/network/ |
D | 99-default.link | 18 NamePolicy=keep kernel database onboard slot path 19 AlternativeNamesPolicy=database onboard slot path
|
/systemd-251/test/units/ |
D | testsuite-70.sh | 24 systemd-cryptenroll --wipe-slot=tpm2 $img 37 systemd-cryptenroll --wipe-slot=tpm2 $img
|
/systemd-251/src/libsystemd/ |
D | meson.build | 115 'sd-bus/bus-slot.c', 116 'sd-bus/bus-slot.h', 142 'sd-netlink/netlink-slot.c', 143 'sd-netlink/netlink-slot.h',
|
/systemd-251/src/home/ |
D | homework-fscrypt.c | 648 uint32_t slot = 0; in home_passwd_fscrypt() local 666 r = fscrypt_slot_set(setup->root_fd, volume_key, volume_key_size, *p, slot); in home_passwd_fscrypt() 670 slot++; in home_passwd_fscrypt() 688 if (z < slot) in home_passwd_fscrypt()
|
/systemd-251/src/hostname/ |
D | hostnamed.c | 751 sd_bus_slot *slot; in property_get_machine_info_field() local 763 assert_se(slot = sd_bus_get_current_slot(bus)); in property_get_machine_info_field() 764 assert_se(c = sd_bus_slot_get_userdata(slot)); in property_get_machine_info_field() 780 sd_bus_slot *slot; in property_get_os_release_field() local 784 assert_se(slot = sd_bus_get_current_slot(bus)); in property_get_os_release_field() 785 assert_se(c = sd_bus_slot_get_userdata(slot)); in property_get_os_release_field()
|