STRUCT COREDUMP_ACK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct coredump_ack(9) β€” from the Kernel API Manual, bestie πŸ’…

okay so real talk, this page is about struct coredump_ack, and yes it lives in the kernel API manual, we love a glow-up ✨


πŸŽ€ NAME πŸŽ€

struct coredump_ack β€” the lil message that userspace sends to the kernel 🫢 (yes, userspace talks back, it's giving main character energy)


🌸 SYNOPSIS 🌸

struct coredump_ack {
    __u32 size;
    __u32 spare;
    __u64 mask;
 };

look at her, iconic, three whole members, no notes πŸ’…


πŸ¦‹ Members πŸ¦‹

  • size β€” literally just the size of the struct, that's it, that's the whole job πŸ’–
  • spare β€” unused, lowkey just vibing there, doing absolutely nothing, respect πŸ™ˆ
  • mask β€” the features the kernel is supposed to use, like a little wishlist of what you want πŸŽ€

🌈 Description 🌈

okay so the size member must be set to the size of struct coredump_ack. no cap. and it may never exceed what the kernel returned in coredump_req->size_ack β€” like, that's the ceiling, bestie βœ‹ but it may of course be smaller, as long as it's >= COREDUMP_ACK_SIZE_VER0 and <= coredump_req->size_ack. it's giving "you can be smaller but you cannot come for the queen" πŸ‘‘

the mask member must be set to the features the coredump server wants the kernel to use. and here's the vibe check: only bits the kernel returned in coredump_req->mask may be set. don't be out here setting bits the kernel didn't hand you, that's not the move 😭πŸ”₯

fr fr, those two constraints are not suggestions, they're the whole assignment. get them wrong and the kernel is not gonna be chill about it πŸ’€

⭐ SEE ALSO ⭐

  • Kernel file ./tools/include/uapi/linux/coredump.h πŸ’œ
  • struct coredump_req(9) β€” her sibling, the request side of the convo 🫢
  • enum coredump_mark(9) β€” the enum bestie, go say hi 🌸

and that's the page!! 🧚 from ./tools/include/uapi/linux, dated October 2026 β€” slay, periodt, go read coredump.h and stay hydrated πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from