STRUCT LOONGARCH_IMAGE_HEADER(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms