STRUCT DPKG_MASK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so picture this: you're deep in the kernel, you need one single extraction mask, and you do NOT want to hand-roll it. enter struct dpkg_mask, the tiny little icon that does exactly one job and does it flawlessly. main character energy, no notes. πŸŽ€


✨ NAME ✨

struct dpkg_mask β€” a structure for defining a single extraction mask. that's it, that's the whole vibe. one mask, one struct, slay. πŸ’–


🌸 SYNOPSIS 🌸

struct dpkg_mask {
    u8 mask;
    u8 offset;
 };

literally just two u8s and a dream. look at her. so compact. πŸ¦‹


🫢 Members 🫢

  • mask β€” the byte mask for the extracted content. this is the actual masking byte, bestie, the whole point of the struct ngl. πŸ”₯
  • offset β€” the offset within the extracted content. where in the extracted content you're pointing at, fr fr. ⭐
both members are u8, so keep that in mind β€” no cap, the struct says u8 and we respect the struct. πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpkg.h β€” go read the source, it's giving lore. πŸ“–
  • DPKG_NUM_OF_MASKS(9)
  • DPKG_MAX_NUM_OF_EXTRACTS(9)
  • enum dpkg_extract_from_hdr_type(9)
  • enum dpkg_extract_type(9)
  • struct dpkg_extract(9)
  • struct dpkg_profile_cfg(9)

the whole friend group, honestly. go say hi to all of them. πŸ’œ


okay that's the page!! mwah πŸ’‹ β€” this little beauty comes from ./drivers/net/ethernet/freesca..., dated October 2026, and it's filed under struct dpkg_mask(9). go forth and mask your extractions, bestie 🧚✨

πŸ“¦ where this page comes from