gpt_hdr
static struct gpt_hdr *
gpt_checkhdr(struct gpt_hdr *hdr, uint64_t lba_self, uint64_t lba_last,
gpt_checktbl(const struct gpt_hdr *hdr, uint8_t *tbl, size_t size,
struct gpt_hdr *phdr, hdr;
phdr = gpt_checkhdr((struct gpt_hdr *)buf, 1, table->sectors - 1,
phdr = gpt_checkhdr((struct gpt_hdr *)buf, offset,
gptread_hdr(const char *which, struct dsk *dskp, struct gpt_hdr *hdr,
gptbootconv(const char *which, struct dsk *dskp, struct gpt_hdr *hdr,
gptread_table(const char *which, struct dsk *dskp, struct gpt_hdr *hdr,
static struct gpt_hdr hdr_primary, hdr_backup, *gpthdr;
gptupdate(const char *which, struct dsk *dskp, struct gpt_hdr *hdr,
static struct gpt_hdr *
struct gpt_hdr *buf, *hdr;
enum gpt_elt elt, struct gpt_hdr *hdr)
gpt_matched_hdrs(struct gpt_hdr *pri, struct gpt_hdr *sec)
CTASSERT(offsetof(struct gpt_hdr, padding) == 92);
table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO);
table->hdr->hdr_size = offsetof(struct gpt_hdr, padding);
struct gpt_hdr *hdr;
struct gpt_hdr *prihdr, *sechdr;
CTASSERT(offsetof(struct gpt_hdr, padding) == 92);
gpt_write_hdr(struct gpt_hdr *hdr, uint64_t self, uint64_t alt, uint64_t tbl)
crc = crc32(hdr, offsetof(struct gpt_hdr, padding));
struct gpt_hdr *hdr;
le32enc(&hdr->hdr_size, offsetof(struct gpt_hdr, padding));