UNION MACADDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… union macaddr(9) β€” the Kernel API Manual page your bestie actually wants to read

okay so. welcome to the Kernel API Manual, section 9, and today's main character is union macaddr β€” literally just a generic MAC address container. that's it. that's the whole vibe. it holds a MAC address, it's a union, and it's about to slay in the most low-key way possible. πŸŽ€


✨ NAME ✨

union macaddr β€” a generic MAC address container 🫢

like, not specific to any one thing. generic. it contains. it holds. iconic behaviour honestly.


🌸 SYNOPSIS 🌸

union macaddr {
    u16 short_address;
    u8 ieee_address[8];
 };

look at her. two members. one union. the way that she can be either a short address or an extended address and you just have to pick β€” that's the whole point, bestie πŸ’–


πŸ¦‹ Members πŸ¦‹

  • short_address β€” the 16-bit short address. small. compact. doing the most with the least ✨
  • ieee_address β€” the 64-bit extended address, stored as a LE byte array. little-endian, byte by byte, no cap. when you need the big one, this is her πŸ‘‘
fr fr remember: it's a union, so these two share the same space. it's giving "one closet, two outfits." don't expect to have both at the same time, iykyk πŸ’€

🌈 SEE ALSO 🌈

okay this is the part where the page just absolutely dumps the entire ca8210 cinematic universe on you and honestly? respect. grab a snack πŸ“ β€” everything lives in the kernel file ./drivers/net/ieee802154/ca8210.c:

that's the whole friend group. every single one of them. go say hi πŸ‘‹πŸ’œ


so yeah β€” that's union macaddr, a tiny little union holding either a 16-bit short address or a 64-bit extended address as a LE byte array, living its best life in ./drivers/net/ieee802154. short page, huge main character energy. periodt. πŸ’…

okay bye bestie, this one's out of ./drivers/net/ieee802154 and stamped October 2026 β€” mwah, drink water, and remember: it's a union, not a struct 🌸✨🫢

πŸ“¦ where this page comes from