/systemd-251/src/test/ |
D | test-cpu-set-util.c | 17 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 18 assert_se(CPU_ISSET_S(0, c.allocated, c.set)); in TEST() 19 assert_se(CPU_COUNT_S(c.allocated, c.set) == 1); in TEST() 33 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 34 assert_se(CPU_ISSET_S(1, c.allocated, c.set)); in TEST() 35 assert_se(CPU_ISSET_S(2, c.allocated, c.set)); in TEST() 36 assert_se(CPU_ISSET_S(4, c.allocated, c.set)); in TEST() 37 assert_se(CPU_COUNT_S(c.allocated, c.set) == 3); in TEST() 50 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST() 51 assert_se(CPU_COUNT_S(c.allocated, c.set) == 8); in TEST() [all …]
|
D | test-execute.c | 246 assert_se(sched_getaffinity(0, c.allocated, c.set) >= 0); in test_exec_cpuaffinity() 248 if (!CPU_ISSET_S(0, c.allocated, c.set)) { in test_exec_cpuaffinity() 256 if (!CPU_ISSET_S(1, c.allocated, c.set) || in test_exec_cpuaffinity() 257 !CPU_ISSET_S(2, c.allocated, c.set)) { in test_exec_cpuaffinity()
|
/systemd-251/src/shared/ |
D | cpu-set-util.c | 28 for (i = 0; (size_t) i < a->allocated * 8; i++) { in cpu_set_to_string() 29 if (!CPU_ISSET_S(i, a->allocated, a->set)) in cpu_set_to_string() 50 for (unsigned i = 0; i < set->allocated * 8; i++) in cpu_set_to_range_string() 51 if (CPU_ISSET_S(i, set->allocated, set->set)) { in cpu_set_to_range_string() 92 if (need > cpu_set->allocated) { in cpu_set_realloc() 99 memzero((uint8_t*) t + cpu_set->allocated, need - cpu_set->allocated); in cpu_set_realloc() 102 cpu_set->allocated = need; in cpu_set_realloc() 119 CPU_SET_S(cpu, cpu_set->allocated, cpu_set->set); in cpu_set_add() 127 for (unsigned cpu_p1 = b->allocated * 8; cpu_p1 > 0; cpu_p1--) in cpu_set_add_all() 128 if (CPU_ISSET_S(cpu_p1 - 1, b->allocated, b->set)) { in cpu_set_add_all() [all …]
|
D | numa-util.c | 29 CPU_COUNT_S(policy->nodes.allocated, policy->nodes.set) != 1) in numa_policy_is_valid() 50 bits = policy->nodes.allocated * 8; in numa_policy_to_mempolicy() 53 out = new0(unsigned long, DIV_ROUND_UP(policy->nodes.allocated, sizeof(unsigned long))); in numa_policy_to_mempolicy() 60 if (CPU_ISSET_S(node, policy->nodes.allocated, policy->nodes.set)) in numa_policy_to_mempolicy() 100 for (i = 0; i < policy->nodes.allocated * 8; i++) { in numa_to_cpu_set() 105 if (!CPU_ISSET_S(i, policy->nodes.allocated, policy->nodes.set)) in numa_to_cpu_set()
|
D | cpu-set-util.h | 12 size_t allocated; /* in bytes */ member 16 assert((a->allocated > 0) == !!a->set); in cpu_set_reset() 49 int cpu_set_to_dbus(const CPUSet *set, uint8_t **ret, size_t *allocated);
|
D | libfido2-util.c | 479 size_t allocated = 64, found = 0; in fido2_use_hmac_hash() local 490 di = sym_fido_dev_info_new(allocated); in fido2_use_hmac_hash() 494 r = sym_fido_dev_info_manifest(di, allocated, &found); in fido2_use_hmac_hash() 533 sym_fido_dev_info_free(&di, allocated); in fido2_use_hmac_hash() 951 size_t allocated = 64, found = 0; in fido2_list_devices() local 959 di = sym_fido_dev_info_new(allocated); in fido2_list_devices() 963 r = sym_fido_dev_info_manifest(di, allocated, &found); in fido2_list_devices() 1017 sym_fido_dev_info_free(&di, allocated); in fido2_list_devices() 1099 size_t allocated = 64, found = 0; in fido2_have_device() local 1120 di = sym_fido_dev_info_new(allocated); in fido2_have_device() [all …]
|
D | bus-unit-util.c | 484 size_t allocated; in bus_append_cgroup_property() local 490 r = cpu_set_to_dbus(&cpuset, &array, &allocated); in bus_append_cgroup_property() 494 return bus_append_byte_array(m, field, array, allocated); in bus_append_cgroup_property() 1339 size_t allocated; in bus_append_execute_property() local 1352 r = cpu_set_to_dbus(&cpuset, &array, &allocated); in bus_append_execute_property() 1356 return bus_append_byte_array(m, field, array, allocated); in bus_append_execute_property() 1374 size_t allocated; in bus_append_execute_property() local 1386 r = cpu_set_to_dbus(&nodes, &array, &allocated); in bus_append_execute_property() 1390 return bus_append_byte_array(m, field, array, allocated); in bus_append_execute_property()
|
/systemd-251/src/basic/ |
D | compress.c | 347 size_t allocated; in decompress_startswith_xz() local 365 allocated = MALLOC_SIZEOF_SAFE(*buffer); in decompress_startswith_xz() 371 s.avail_out = allocated; in decompress_startswith_xz() 379 if (allocated - s.avail_out >= prefix_len + 1) in decompress_startswith_xz() 386 s.avail_out += allocated; in decompress_startswith_xz() 388 if (!(greedy_realloc(buffer, allocated * 2, 1))) in decompress_startswith_xz() 391 allocated = MALLOC_SIZEOF_SAFE(*buffer); in decompress_startswith_xz() 392 s.next_out = *(uint8_t**)buffer + allocated - s.avail_out; in decompress_startswith_xz() 412 size_t allocated; in decompress_startswith_lz4() local 425 allocated = MALLOC_SIZEOF_SAFE(*buffer); in decompress_startswith_lz4() [all …]
|
D | user-util.c | 519 gid_t *allocated; in getgroups_alloc() local 524 allocated = new(gid_t, ngroups); in getgroups_alloc() 525 if (!allocated) in getgroups_alloc() 527 p = allocated; in getgroups_alloc() 548 free(allocated); in getgroups_alloc() 550 p = allocated = new(gid_t, ngroups); in getgroups_alloc() 551 if (!allocated) in getgroups_alloc()
|
/systemd-251/src/resolve/ |
D | test-resolved-packet.c | 16 log_debug("dns_packet_new: %zu → %zu", i, p->allocated); in TEST() 17 assert_se(p->allocated >= MIN(DNS_PACKET_SIZE_MAX, i)); in TEST()
|
D | fuzz-dns-packet.c | 18 assert_se(p->allocated >= DNS_PACKET_HEADER_SIZE); in LLVMFuzzerTestOneInput()
|
D | resolved-dns-packet.h | 64 size_t size, allocated, rindex, max_size, fragsize; member
|
D | resolved-dns-packet.c | 86 .allocated = a, in dns_packet_new() 186 .allocated = p->size, in dns_packet_dup() 350 if (p->size + add > p->allocated) { in dns_packet_extend() 379 p->allocated = a; in dns_packet_extend()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-socket.c | 281 size_t len, allocated; in socket_read_message() local 301 allocated = MALLOC_SIZEOF_SAFE(nl->rbuffer); in socket_read_message() 302 iov = IOVEC_MAKE(nl->rbuffer, allocated); in socket_read_message() 311 if (len > allocated) in socket_read_message()
|
/systemd-251/src/journal/ |
D | journald-stream.c | 550 size_t limit, consumed, allocated; in stdout_stream_process() local 573 allocated = MALLOC_ELEMENTSOF(s->buffer); in stdout_stream_process() 574 if (s->length + 512 >= allocated) { in stdout_stream_process() 580 allocated = MALLOC_ELEMENTSOF(s->buffer); in stdout_stream_process() 585 limit = MIN(allocated - 1, MAX(s->server->line_max, STDOUT_STREAM_SETUP_PROTOCOL_LINE_MAX)); in stdout_stream_process()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-kernel.h | 20 size_t allocated; member
|
D | bus-creds.h | 9 bool allocated; member
|
D | bus-creds.c | 63 if (c->allocated) { in sd_bus_creds_ref() 83 if (c->allocated) { in sd_bus_creds_unref() 136 c->allocated = true; in bus_creds_new() 759 assert(c->allocated); in bus_creds_add_more()
|
D | bus-message.h | 41 size_t allocated; member
|
/systemd-251/src/core/ |
D | dbus-unit.c | 1173 size_t allocated; in property_get_cpuset_cpus() local 1180 (void) cpu_set_to_dbus(&cpus, &array, &allocated); in property_get_cpuset_cpus() 1181 return sd_bus_message_append_array(reply, 'y', array, allocated); in property_get_cpuset_cpus() 1196 size_t allocated; in property_get_cpuset_mems() local 1203 (void) cpu_set_to_dbus(&mems, &array, &allocated); in property_get_cpuset_mems() 1204 return sd_bus_message_append_array(reply, 'y', array, allocated); in property_get_cpuset_mems()
|
D | dbus-execute.c | 259 size_t allocated; in property_get_cpu_affinity() local 273 (void) cpu_set_to_dbus(c->cpu_affinity_from_numa ? &s : &c->cpu_set, &array, &allocated); in property_get_cpu_affinity() 275 return sd_bus_message_append_array(reply, 'y', array, allocated); in property_get_cpu_affinity() 289 size_t allocated; in property_get_numa_mask() local 295 (void) cpu_set_to_dbus(&c->numa_policy.nodes, &array, &allocated); in property_get_numa_mask() 297 return sd_bus_message_append_array(reply, 'y', array, allocated); in property_get_numa_mask()
|
D | dbus-cgroup.c | 95 size_t allocated; in property_get_cpuset() local 101 (void) cpu_set_to_dbus(cpus, &array, &allocated); in property_get_cpuset() 102 return sd_bus_message_append_array(reply, 'y', array, allocated); in property_get_cpuset()
|
/systemd-251/docs/ |
D | TEMPORARY_DIRECTORIES.md | 193 Generally, files allocated from `/tmp/` and `/var/tmp/` are allocated from a
|
D | COREDUMP_PACKAGE_METADATA.md | 36 The metadata will be embedded in a single, new, 4-bytes-aligned, allocated, 0-padded,
|
D | UIDS-GIDS.md | 108 2. 61184…65519 → UIDs for dynamic users are allocated from this range (see the 119 for all currently allocated dynamic users from this range. Thus, NSS-based
|