/systemd-251/src/shared/ |
D | bootspec.c | 192 if (!GREEDY_REALLOC0(config->entries, config->n_entries + 1)) in boot_config_load_type1() 195 r = boot_entry_load_type1(f, root, dir, id, config->entries + config->n_entries); in boot_config_load_type1() 199 config->n_entries++; in boot_config_load_type1() 219 for (size_t i = 0; i < config->n_entries; i++) in boot_config_free() 410 for (size_t i = 0; i < dentries->n_entries; i++) { in boot_entries_find_type1() 672 if (!GREEDY_REALLOC0(config->entries, config->n_entries + 1)) in boot_entries_find_unified() 694 … r = boot_entry_load_unified(root, j, osrelease, cmdline, config->entries + config->n_entries); in boot_entries_find_unified() 698 config->n_entries++; in boot_entries_find_unified() 704 static bool find_nonunique(const BootEntry *entries, size_t n_entries, bool arr[]) { in find_nonunique() argument 707 assert(entries || n_entries == 0); in find_nonunique() [all …]
|
D | bootspec.h | 59 size_t n_entries; member 83 assert((size_t) config->default_entry < config->n_entries); in boot_config_default_entry()
|
/systemd-251/src/pstore/ |
D | pstore.c | 104 size_t n_entries; member 108 for (size_t i = 0; i < list->n_entries; i++) in pstore_entries_reset() 111 list->n_entries = 0; in pstore_entries_reset() 216 for (size_t n = list->n_entries; n > 0; n--) { in process_dmesg_files() 349 if (!GREEDY_REALLOC(list->entries, list->n_entries + 1)) in list_files() 352 list->entries[list->n_entries++] = (PStoreEntry) { in list_files() 394 typesafe_qsort(list.entries, list.n_entries, compare_pstore_entries); in run() 400 for (size_t n = 0; n < list.n_entries; n++) in run()
|
/systemd-251/tools/ |
D | gdb-sd_dump_hashmaps.py | 25 n_entries = h["indirect"]["n_entries"] 29 n_entries = h["n_direct_entries"] 36 if arg != "" and n_entries > 0: 49 … s = sum(dib*count for (dib, count) in histogram.items() if dib != 255) / n_entries
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-verify.c | 168 if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) { in journal_file_object_verify() 169 error(offset, "Bad n_entries: %"PRIu64, le64toh(o->data.n_entries)); in journal_file_object_verify() 429 MMapFileDescriptor *cache_entry_fd, uint64_t n_entries, in verify_data() argument 440 n = le64toh(o->data.n_entries); in verify_data() 456 if (!contains_uint64(cache_entry_fd, n_entries, q)) { in verify_data() 503 if (!contains_uint64(cache_entry_fd, n_entries, q)) { in verify_data() 531 MMapFileDescriptor *cache_entry_fd, uint64_t n_entries, in verify_data_hash_table() argument 584 … r = verify_data(f, o, p, cache_entry_fd, n_entries, cache_entry_array_fd, n_entry_arrays); in verify_data_hash_table() 692 MMapFileDescriptor *cache_entry_fd, uint64_t n_entries, in verify_entry_array() argument 706 n = le64toh(f->header->n_entries); in verify_entry_array() [all …]
|
D | journal-vacuum.c | 89 le64_t n_entries; in journal_file_empty() local 108 n = pread(fd, &n_entries, sizeof(n_entries), offsetof(Header, n_entries)); in journal_file_empty() 111 if (n != sizeof(n_entries)) in journal_file_empty() 114 return le64toh(n_entries) <= 0; in journal_file_empty()
|
D | journal-file.c | 661 if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) in journal_file_check_object() 664 le64toh(o->data.n_entries), in journal_file_check_object() 1205 o->data.n_entries = 0; in journal_file_link_data() 1811 &o->data.n_entries, in journal_file_link_entry_item() 1832 &f->header->n_entries, in journal_file_link_entry() 2681 le64toh(f->header->n_entries), in journal_file_move_to_entry_by_offset() 2721 le64toh(f->header->n_entries), in journal_file_move_to_entry_by_seqnum() 2761 le64toh(f->header->n_entries), in journal_file_move_to_entry_by_realtime() 2824 le64toh(o->data.n_entries), in journal_file_move_to_entry_by_monotonic() 2925 n = le64toh(READ_NOW(f->header->n_entries)); in journal_file_next_entry() [all …]
|
D | journal-def.h | 68 le64_t n_entries; \ 201 le64_t n_entries; \
|
D | sd-journal.c | 753 uint64_t cp, n_entries; in next_beyond_location() local 759 n_entries = le64toh(f->header->n_entries); in next_beyond_location() 764 n_entries == f->last_n_entries) in next_beyond_location() 767 f->last_n_entries = n_entries; in next_beyond_location()
|
/systemd-251/src/journal/ |
D | managed-journal-file.c | 40 …c int managed_journal_file_entry_array_punch_hole(JournalFile *f, uint64_t p, uint64_t n_entries) { in managed_journal_file_entry_array_punch_hole() argument 45 if (n_entries == 0) in managed_journal_file_entry_array_punch_hole() 60 if (n_entries > n_items) in managed_journal_file_entry_array_punch_hole() 64 n_unused = n_items - n_entries; in managed_journal_file_entry_array_punch_hole() 114 f, le64toh(f->header->entry_array_offset), le64toh(f->header->n_entries)); in managed_journal_file_punch_holes() 142 if (le64toh(o.data.n_entries) == 0) in managed_journal_file_punch_holes() 146 … f, le64toh(o.data.entry_array_offset), le64toh(o.data.n_entries) - 1); in managed_journal_file_punch_holes()
|
/systemd-251/src/basic/ |
D | recurse-dir.c | 82 de->n_entries = 0; in readdir_all() 87 de->n_entries++; in readdir_all() 91 add = sizeof(struct dirent*) * de->n_entries; in readdir_all() 111 typesafe_qsort(de->entries, de->n_entries, sort_func); in readdir_all() 146 for (size_t i = 0; i < de->n_entries; i++) { in recurse_dir()
|
D | parse-util.c | 177 unsigned n_entries, start_pos = 0; in parse_size() local 185 n_entries = ELEMENTSOF(si); in parse_size() 188 n_entries = ELEMENTSOF(iec); in parse_size() 230 for (i = start_pos; i < n_entries; i++) in parse_size() 234 if (i >= n_entries) in parse_size()
|
D | hashmap.c | 162 unsigned n_entries; /* number of stored entries */ member 307 static unsigned n_entries(HashmapBase *h) { in n_entries() function 308 return h->has_indirect ? h->indirect.n_entries in n_entries() 314 h->indirect.n_entries++; in n_entries_inc() 321 h->indirect.n_entries--; in n_entries_dec() 1025 assert(n_entries(h) < n_buckets(h)); in hashmap_base_put_boldly() 1050 h->debug.max_entries = MAX(h->debug.max_entries, n_entries(h)); in hashmap_base_put_boldly() 1078 new_n_entries = n_entries(h) + entries_add; in resize_buckets() 1119 h->indirect.n_entries = h->n_direct_entries; in resize_buckets() 1194 assert(n_rehashed == n_entries(h)); in resize_buckets() [all …]
|
D | recurse-dir.h | 71 size_t n_entries; member
|
/systemd-251/src/boot/efi/ |
D | bcd.c | 89 UINT16 n_entries; member 96 assert_cc(offsetof(SubkeyFast, n_entries) == 2); 138 if (BAD_ARRAY(SubkeyFast, entries, offset, subkey->n_entries, bcd_len)) in get_subkey() 141 for (UINT16 i = 0; i < subkey->n_entries; i++) { in get_subkey()
|
/systemd-251/src/test/ |
D | test-hashmap-plain.c | 701 unsigned n_entries; in TEST() member 714 for (i = 1; i < tests[j].n_entries*3; i+=3) { in TEST() 719 for (i = 1; i < tests[j].n_entries*3; i++) in TEST() 726 assert_se(hashmap_size(h) == tests[j].n_entries); in TEST() 748 unsigned n_entries = slow ? 1 << 20 : 240; in TEST() local 755 { "string_hash_ops", &boring_hash_ops, 2 * n_entries}, in TEST() 759 log_info("/* %s (%s, %u entries) */", __func__, slow ? "slow" : "fast", n_entries); in TEST() 766 for (unsigned i = 0; i < n_entries; i++) { in TEST()
|
D | test-bootspec.c | 79 assert_se(config.n_entries == 6); in TEST_RET()
|
/systemd-251/src/journal-remote/ |
D | journal-gatewayd.c | 56 uint64_t n_entries; member 168 m->n_entries <= 0) in request_reader_entries() 215 m->n_entries -= 1; in request_reader_entries() 333 r = safe_atou64(p, &m->n_entries); in request_parse_range() 337 if (m->n_entries <= 0) in request_parse_range() 493 m->n_entries = 1; in request_handler_entries()
|
/systemd-251/src/core/ |
D | import-creds.c | 179 for (size_t i = 0; i < de->n_entries; i++) { in import_credentials_boot() 382 for (size_t i = 0; i < de->n_entries; i++) { in import_credentials_qemu()
|
/systemd-251/docs/ |
D | JOURNAL_FILE_FORMAT.md | 164 le64_t n_entries; 210 The **n_entries**, **n_data**, **n_fields**, **n_tags**, **n_entry_arrays** are 395 le64_t n_entries; 420 includes a practically unique string). **n_entries** is a counter of the total
|
/systemd-251/src/boot/ |
D | bootctl.c | 620 … printf("%zu entries, no entry could be determined as default.\n", config->n_entries); in status_entries() 1733 if (config.n_entries == 0 && FLAGS_SET(arg_json_format_flags, JSON_FORMAT_OFF)) { in verb_list()
|
/systemd-251/src/login/ |
D | logind-dbus.c | 3169 for (i = 0; i < config.n_entries; i++) { in property_get_boot_loader_entries()
|