Home
last modified time | relevance | path

Searched refs:Header (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/boot/efi/
Dxbootldr.c38 if (CompareMem(&h->Header.Signature, "EFI PART", sizeof(h->Header.Signature) != 0)) in verify_gpt()
41 if (h->Header.HeaderSize < 92 || h->Header.HeaderSize > 512) in verify_gpt()
44 if (h->Header.Revision != 0x00010000U) in verify_gpt()
48 crc32_saved = h->Header.CRC32; in verify_gpt()
49 h->Header.CRC32 = 0; in verify_gpt()
50 err = BS->CalculateCrc32(gpt_header_buffer, h->Header.HeaderSize, &crc32); in verify_gpt()
51 h->Header.CRC32 = crc32_saved; in verify_gpt()
Dmeasure.c63 .Header.HeaderSize = sizeof(EFI_TCG2_EVENT_HEADER), in tpm2_measure_to_pcr_and_event_log()
64 .Header.HeaderVersion = EFI_TCG2_EVENT_HEADER_VERSION, in tpm2_measure_to_pcr_and_event_log()
65 .Header.PCRIndex = pcrindex, in tpm2_measure_to_pcr_and_event_log()
66 .Header.EventType = EV_IPL, in tpm2_measure_to_pcr_and_event_log()
Dinitrd.c26 .Header = {
Dmissing_efi.h260 EFI_TCG2_EVENT_HEADER Header; member
/systemd-251/src/import/
Dqcow2-util.c17 typedef struct _packed_ Header { struct
44 } Header; argument
57 static uint32_t HEADER_HEADER_LENGTH(const Header *h) { in HEADER_HEADER_LENGTH()
59 return offsetof(Header, incompatible_features); in HEADER_HEADER_LENGTH()
148 const Header *header, in normalize_offset()
193 static int verify_header(const Header *header) { in verify_header()
222 if (HEADER_HEADER_LENGTH(header) < sizeof(Header)) in verify_header()
233 Header header; in qcow2_convert()
/systemd-251/src/libsystemd/sd-journal/
Djournal-def.h15 typedef struct Header Header; typedef
219 struct Header struct_Header__contents;
221 assert_cc(sizeof(struct Header) == sizeof(struct Header__packed));
222 assert_cc(sizeof(struct Header) == 256);
Djournal-authenticate.c302 …gcry_md_write(f->hmac, f->header->signature, offsetof(Header, state) - offsetof(Header, signature)… in journal_file_hmac_put_header()
303 …gcry_md_write(f->hmac, &f->header->file_id, offsetof(Header, boot_id) - offsetof(Header, file_id)); in journal_file_hmac_put_header()
304 …gcry_md_write(f->hmac, &f->header->seqnum_id, offsetof(Header, arena_size) - offsetof(Header, seqn… in journal_file_hmac_put_header()
305 …f->hmac, &f->header->data_hash_table_offset, offsetof(Header, tail_object_offset) - offsetof(Heade… in journal_file_hmac_put_header()
Djournal-verify.c918 error(offsetof(Header, reserved[i]), "Reserved field is non-zero"); in journal_file_verify()
942 error(offsetof(Header, tail_object_offset), in journal_file_verify()
1225 error(offsetof(Header, n_objects), in journal_file_verify()
1234 error(offsetof(Header, n_entries), in journal_file_verify()
1244 error(offsetof(Header, n_data), in journal_file_verify()
1254 error(offsetof(Header, n_fields), in journal_file_verify()
1264 error(offsetof(Header, n_tags), in journal_file_verify()
1274 error(offsetof(Header, n_entry_arrays), in journal_file_verify()
1290 error(offsetof(Header, tail_entry_seqnum), in journal_file_verify()
Djournal-vacuum.c104 if (st.st_size < (off_t) sizeof(Header)) in journal_file_empty()
108 n = pread(fd, &n_entries, sizeof(n_entries), offsetof(Header, n_entries)); in journal_file_empty()
Djournal-file.h79 Header *header;
170 (le64toh((h)->header_size) >= offsetof(Header, field) + sizeof((h)->field))
Djournal-file.c73 #define HEADER_SIZE_MIN ALIGN64(offsetof(Header, n_data))
289 Header h = {}; in journal_file_init_header()
3549 …r = mmap_cache_fd_get(f->cache_fd, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_s… in journal_file_open()
3922 if (le64toh(f->header->header_size) < sizeof(Header)) { in journal_file_rotate_suggested()
/systemd-251/docs/
DJOURNAL_FILE_FORMAT.md141 ## Header section in Journal File Format
143 The Header struct defines, well, you guessed it, the file header:
146 _packed_ struct Header {
200 Header, it shall immediately rotate the file and start a new one.