STRUCT DPNI_LINK_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay so bestie, welcome to the Kernel API Manual β€” yes, that kernel API manual β€” and today's main character is struct dpni_link_state. It's the struct that literally represents your DPNI link state. Three fields. Zero filler. We love a minimalist icon. πŸŽ€


✨ NAME ✨

struct dpni_link_state β€” Structure representing DPNI link state. That's the whole description and honestly? It ate. No notes. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dpni_link_state {
    u32 rate;
    u64 options;
    int up;
 };

Look at her. Gorgeous. Note the types, bestie β€” u32, u64, and a plain int β€” copy them exactly because the compiler is not forgiving and will not be doing a vibe check before it yells at you. 😭


🧚 Members 🧚

  • rate β€” Rate. That's it, that's the description. u32. The docs said what they said and nothing more. πŸ’€
  • options β€” Mask of available options; use 'DPNI_LINK_OPT_<X>' values. It's a u64, so there's plenty of room in there for every option you're about to pile on. πŸ”₯
  • up β€” Link state; '0' for down, '1' for up. Binary queen. No in-between, no "it's complicated", just 0 or 1. πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/net/ethernet/freescale/dpaa2/dpni.h β€” that's where she lives, go say hi. 🫢

And now, the friend group. Literally all of them, no cap, nobody gets left out:

That's the whole squad, fr fr β€” every single cross-reference, no skipped members. πŸ’–

Okay that's the page!! Sourced from ./drivers/net/ethernet/freesca..., straight out of the Kernel API Manual, dated October 2026 β€” so go forth, set your rate, mask your options, and tell everyone whether you're up or down. Slay. πŸŒˆβœ¨πŸ’…

πŸ“¦ where this page comes from