STRUCT LOONGARCH_IMAGE_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct loongarch_image_header(9)

okay so welcome to the Kernel API Manual bestie, and today's main character is struct loongarch_image_header πŸŽ€ this is the page for it, right here, in this manual. the NAME line gives you literally zero extra tea (no description, that's just the vibe), so let's get into the actual structure πŸ¦‹


✨ NAME ✨

struct loongarch_image_header β€” and that's it, that's the whole description. no cap, it's an empty description and honestly? iconic minimalism πŸ’…


🌸 SYNOPSIS 🌸

struct loongarch_image_header {
    uint8_t dos_sig[2];
    uint16_t padding_1[3];
    uint64_t kernel_entry;
    uint64_t kernel_asize;
    uint64_t text_offset;
    uint32_t padding_2[7];
    uint32_t pe_header;
 };

look at her. seven fields, perfectly arranged, she ate πŸ”₯ and yes the spacing and the types are exactly as written, we do not touch the code ✨


πŸ‘‘ Members πŸ‘‘

  • dos_sig β€” an optional PE format 'MZ' signature. optional bestie, so don't come for her if it's not there πŸ™ˆ
  • padding_1 β€” Reserved. that's it, that's the job, she's holding space πŸ’œ
  • kernel_entry β€” the Kernel image entry pointer. like the front door of the kernel image πŸšͺ✨
  • kernel_asize β€” an estimated size of the memory image size, in LSB byte order. estimated! so it's giving "roughly this big" not "exactly this big" 🫢 and yes, LSB byte order, write that down πŸ“
  • text_offset β€” the image load offset, in LSB byte order. again with the LSB byte order, she's consistent πŸ’…
  • padding_2 β€” Reserved. more space held, more room to breathe 🧚
  • pe_header β€” an optional offset to a PE format header. optional again, we love a flexible queen πŸ‘‘
lowkey the pattern here is reserved fields + optional PE bits + the load info, and every single field is listed above so nobody gets left out fr fr πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./arch/loongarch/include/asm/image.h β€” go read the source, that's where the real lore lives πŸ“–βœ¨

that's the whole page babes, no notes, no missing details πŸ’€πŸ«Ά

sign-off szn: this little beauty comes to you from the source path ./arch/loongarch/include/asm, dated October 2026, and it's a struct loon...image_header(9) page through and through. mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from