Searched refs:slot (Results 1 - 16 of 16) sorted by relevance

/systemd/src/libsystemd/sd-bus/
H A Dbus-slot.c25 #include "bus-slot.h"
35 sd_bus_slot *slot; local
39 slot = malloc0(offsetof(sd_bus_slot, reply_callback) + extra);
40 if (!slot)
43 slot->n_ref = 1;
44 slot->type = type;
45 slot->bus = bus;
46 slot->floating = floating;
47 slot->userdata = userdata;
52 LIST_PREPEND(slots, bus->slots, slot);
57 sd_bus_slot_ref(sd_bus_slot *slot) argument
68 bus_slot_disconnect(sd_bus_slot *slot) argument
201 sd_bus_slot_unref(sd_bus_slot *slot) argument
220 sd_bus_slot_get_bus(sd_bus_slot *slot) argument
226 sd_bus_slot_get_userdata(sd_bus_slot *slot) argument
232 sd_bus_slot_set_userdata(sd_bus_slot *slot, void *userdata) argument
243 sd_bus_slot_get_current_message(sd_bus_slot *slot) argument
253 sd_bus_slot_get_current_handler(sd_bus_slot *slot) argument
263 sd_bus_slot_get_current_userdata(sd_bus_slot *slot) argument
273 sd_bus_slot_set_description(sd_bus_slot *slot, const char *description) argument
279 sd_bus_slot_get_description(sd_bus_slot *slot, const char **description) argument
[all...]
H A Dbus-slot.h28 void bus_slot_disconnect(sd_bus_slot *slot);
H A Dbus-track.c164 _cleanup_(sd_bus_slot_unrefp) sd_bus_slot *slot = NULL;
182 r = sd_bus_add_match(track->bus, &slot, match, on_name_owner_changed, track);
186 r = hashmap_put(track->names, n, slot);
201 slot = NULL;
210 _cleanup_(sd_bus_slot_unrefp) sd_bus_slot *slot = NULL;
218 slot = hashmap_remove2(track->names, (char*) name, (void**) &n);
219 if (!slot)
H A Dbus-objects.c26 #include "bus-slot.h"
124 sd_bus_slot *slot; local
129 slot = container_of(c, sd_bus_slot, node_enumerator);
131 bus->current_slot = sd_bus_slot_ref(slot);
132 bus->current_userdata = slot->userdata;
133 r = c->callback(bus, prefix, slot->userdata, &children, error);
135 bus->current_slot = sd_bus_slot_unref(slot);
274 sd_bus_slot *slot; local
293 slot = container_of(c, sd_bus_slot, node_callback);
295 bus->current_slot = sd_bus_slot_ref(slot);
411 sd_bus_slot *slot; local
434 invoke_property_get( sd_bus *bus, sd_bus_slot *slot, const sd_bus_vtable *v, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error) argument
499 invoke_property_set( sd_bus *bus, sd_bus_slot *slot, const sd_bus_vtable *v, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *error) argument
583 sd_bus_slot *slot; local
695 sd_bus_slot *slot; local
1515 bus_add_object( sd_bus *bus, sd_bus_slot **slot, bool fallback, const char *path, sd_bus_message_handler_t callback, void *userdata) argument
1561 sd_bus_add_object( sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_message_handler_t callback, void *userdata) argument
1571 sd_bus_add_fallback( sd_bus *bus, sd_bus_slot **slot, const char *prefix, sd_bus_message_handler_t callback, void *userdata) argument
1614 add_object_vtable_internal( sd_bus *bus, sd_bus_slot **slot, const char *path, const char *interface, const sd_bus_vtable *vtable, bool fallback, sd_bus_object_find_t find, void *userdata) argument
1806 sd_bus_add_object_vtable( sd_bus *bus, sd_bus_slot **slot, const char *path, const char *interface, const sd_bus_vtable *vtable, void *userdata) argument
1817 sd_bus_add_fallback_vtable( sd_bus *bus, sd_bus_slot **slot, const char *prefix, const char *interface, const sd_bus_vtable *vtable, sd_bus_object_find_t find, void *userdata) argument
1829 sd_bus_add_node_enumerator( sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_node_enumerator_t callback, void *userdata) argument
2773 sd_bus_add_object_manager(sd_bus *bus, sd_bus_slot **slot, const char *path) argument
[all...]
H A Dsd-bus.c39 #include "bus-slot.h"
1879 sd_bus_slot **slot,
1919 s = bus_slot_allocate(bus, !slot, BUS_REPLY_CALLBACK, sizeof(struct reply_callback), userdata);
1945 if (slot)
1946 *slot = s;
2226 sd_bus_slot *slot; local
2258 slot = container_of(c, sd_bus_slot, reply_callback);
2263 bus->current_slot = sd_bus_slot_ref(slot);
2265 bus->current_userdata = slot->userdata;
2266 r = c->callback(m, slot
1877 sd_bus_call_async( sd_bus *bus, sd_bus_slot **slot, sd_bus_message *_m, sd_bus_message_handler_t callback, void *userdata, uint64_t usec) argument
2308 sd_bus_slot *slot; local
2396 sd_bus_slot *slot; local
2657 sd_bus_slot *slot; local
2937 sd_bus_add_filter( sd_bus *bus, sd_bus_slot **slot, sd_bus_message_handler_t callback, void *userdata) argument
2964 sd_bus_add_match( sd_bus *bus, sd_bus_slot **slot, const char *match, sd_bus_message_handler_t callback, void *userdata) argument
[all...]
H A Dbus-match.c319 sd_bus_slot *slot; local
321 slot = container_of(node->leaf.callback, sd_bus_slot, match_callback);
323 bus->current_slot = sd_bus_slot_ref(slot);
325 bus->current_userdata = slot->userdata;
327 r = node->leaf.callback->callback(m, slot->userdata, &error_buffer);
331 bus->current_slot = sd_bus_slot_unref(slot);
H A Dbus-convenience.c62 sd_bus_slot **slot,
94 return sd_bus_call_async(bus, slot, m, callback, userdata, 0);
60 sd_bus_call_method_async( sd_bus *bus, sd_bus_slot **slot, const char *destination, const char *path, const char *interface, const char *member, sd_bus_message_handler_t callback, void *userdata, const char *types, ...) argument
/systemd/src/bus-proxyd/
H A Dproxy.h55 sd_bus_slot *slot; member in struct:ProxyActivation
H A Ddriver.c90 sd_bus_slot_unref(activation->slot);
658 &activation->slot,
H A Dproxy.c287 sd_bus_slot_unref(activation->slot);
/systemd/src/systemd/
H A Dsd-bus.h172 int sd_bus_call_async(sd_bus *bus, sd_bus_slot **slot, sd_bus_message *m, sd_bus_message_handler_t callback, void *userdata, uint64_t usec);
191 int sd_bus_add_filter(sd_bus *bus, sd_bus_slot **slot, sd_bus_message_handler_t callback, void *userdata);
192 int sd_bus_add_match(sd_bus *bus, sd_bus_slot **slot, const char *match, sd_bus_message_handler_t callback, void *userdata);
193 int sd_bus_add_object(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_message_handler_t callback, void *userdata);
194 int sd_bus_add_fallback(sd_bus *bus, sd_bus_slot **slot, const char *prefix, sd_bus_message_handler_t callback, void *userdata);
195 int sd_bus_add_object_vtable(sd_bus *bus, sd_bus_slot **slot, const char *path, const char *interface, const sd_bus_vtable *vtable, void *userdata);
196 int sd_bus_add_fallback_vtable(sd_bus *bus, sd_bus_slot **slot, const char *prefix, const char *interface, const sd_bus_vtable *vtable, sd_bus_object_find_t find, void *userdata);
197 int sd_bus_add_node_enumerator(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_node_enumerator_t callback, void *userdata);
198 int sd_bus_add_object_manager(sd_bus *bus, sd_bus_slot **slot, const char *path);
202 sd_bus_slot* sd_bus_slot_ref(sd_bus_slot *slot);
[all...]
/systemd/src/boot/
H A Dbootctl.c658 /* find free slot in the sorted BootXXXX variable list */
672 static int insert_into_order(uint16_t slot, bool first) { argument
680 return efi_set_boot_order(&slot, 1);
683 if (n == 1 && order[0] == slot)
688 if (order[i] != slot)
695 /* move us to the first slot */
697 order[0] = slot;
710 order[0] = slot;
712 order[n] = slot;
717 static int remove_from_order(uint16_t slot) { argument
742 uint16_t slot; local
859 uint16_t slot; local
[all...]
/systemd/src/test/
H A Dtest-rbtree.c296 CRBNode **slot, *p; local
317 slot = c_rbtree_find_slot(&t, compare, (void *)nodes[i]->key, &p);
318 assert(slot);
319 c_rbtree_add(&t, p, slot, &nodes[i]->rb);
/systemd/src/udev/
H A Dudev-builtin-net_id.c23 * - firmware-provided pci-express hotplug slot index number
39 * s<slot>[f<function>][d<dev_port>] -- hotplug slot index number
41 * [P<domain>]p<bus>s<slot>[f<function>][d<dev_port>]
43 * [P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>]
60 * PCI Ethernet card in hotplug slot with firmware index number:
202 unsigned domain, bus, slot, func, dev_port = 0; local
212 if (sscanf(udev_device_get_sysname(names->pcidev), "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
220 /* compose a name based on the raw kernel's PCI bus, slot numbers */
225 l = strpcpyf(&s, l, "p%us%u", bus, slot);
[all...]
/systemd/src/shared/
H A Dbus-util.c357 sd_bus_slot *slot; member in struct:AsyncPolkitQuery
366 sd_bus_slot_unref(q->slot);
385 q->slot = sd_bus_slot_unref(q->slot);
556 r = sd_bus_call_async(call->bus, &q->slot, pk, async_polkit_callback, q, 0);
/systemd/src/machine/
H A Dmachinectl.c1228 _cleanup_(sd_bus_slot_unrefp) sd_bus_slot *slot = NULL;
1266 r = sd_bus_add_match(bus, &slot, match, on_machine_removed, &forward);
1295 _cleanup_(sd_bus_slot_unrefp) sd_bus_slot *slot = NULL;
1354 r = sd_bus_add_match(bus, &slot, match, on_machine_removed, &forward);

Completed in 3742 milliseconds