Lines Matching refs:slot

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()
413 r = c->callback(nl, m, slot->userdata); in process_reply()
416 slot->description ? "'" : "", in process_reply()
417 strempty(slot->description), in process_reply()
418 slot->description ? "' " : ""); in process_reply()
420 if (slot->floating) in process_reply()
421 netlink_slot_disconnect(slot, true); in process_reply()
446 sd_netlink_slot *slot; in process_match() local
463 slot = container_of(c, sd_netlink_slot, match_callback); in process_match()
465 r = c->callback(nl, m, slot->userdata); in process_match()
468 slot->description ? "'" : "", in process_match()
469 strempty(slot->description), in process_match()
470 slot->description ? "' " : ""); in process_match()
607 _cleanup_free_ sd_netlink_slot *slot = NULL; in sd_netlink_call_async() local
628 …l, !ret_slot, NETLINK_REPLY_CALLBACK, sizeof(struct reply_callback), userdata, description, &slot); in sd_netlink_call_async()
632 slot->reply_callback.callback = callback; in sd_netlink_call_async()
633 slot->reply_callback.timeout = calc_elapse(usec); in sd_netlink_call_async()
635 k = sd_netlink_send(nl, m, &slot->reply_callback.serial); in sd_netlink_call_async()
639 …r = hashmap_put(nl->reply_callbacks, UINT32_TO_PTR(slot->reply_callback.serial), &slot->reply_call… in sd_netlink_call_async()
643 if (slot->reply_callback.timeout != 0) { in sd_netlink_call_async()
644 … r = prioq_put(nl->reply_callbacks_prioq, &slot->reply_callback, &slot->reply_callback.prioq_idx); in sd_netlink_call_async()
646 … (void) hashmap_remove(nl->reply_callbacks, UINT32_TO_PTR(slot->reply_callback.serial)); in sd_netlink_call_async()
652 slot->destroy_callback = destroy_callback; in sd_netlink_call_async()
655 *ret_slot = slot; in sd_netlink_call_async()
657 TAKE_PTR(slot); in sd_netlink_call_async()
926 _cleanup_free_ sd_netlink_slot *slot = NULL; in netlink_add_match_internal() local
939 userdata, description, &slot); in netlink_add_match_internal()
943 slot->match_callback.groups = newdup(uint32_t, groups, n_groups); in netlink_add_match_internal()
944 if (!slot->match_callback.groups) in netlink_add_match_internal()
947 slot->match_callback.n_groups = n_groups; in netlink_add_match_internal()
948 slot->match_callback.callback = callback; in netlink_add_match_internal()
949 slot->match_callback.type = type; in netlink_add_match_internal()
950 slot->match_callback.cmd = cmd; in netlink_add_match_internal()
952 LIST_PREPEND(match_callbacks, nl->match_callbacks, &slot->match_callback); in netlink_add_match_internal()
955 slot->destroy_callback = destroy_callback; in netlink_add_match_internal()
958 *ret_slot = slot; in netlink_add_match_internal()
960 TAKE_PTR(slot); in netlink_add_match_internal()