dpsw_if_get_link_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the dpsw_if_get_link_state(9) page from the Kernel API Manual β€” yes that's the whole title, we're being official today πŸ’…. This one's a tiny little function with a big job: it tells you whether a link is up or down. That's it. That's the whole vibe. Let me walk you through it 🫢


✨ SYNOPSIS ✨

int dpsw_if_get_link_state (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , u16 if_id , struct dpsw_link_state *state );

five arguments, one int coming back at you, no cap 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • mc_io β€” pointer to the MC portal's I/O object, iykyk πŸ¦‹
  • cmd_flags β€” the command flags, and it's one or more of 'MC_CMD_FLAG_' (plural besties, you can stack 'em)
  • token β€” token of the DPSW object πŸ”‘
  • if_id β€” the interface id, literally which interface you're asking about
  • state β€” the link state: 1 means linkup, 0 means link down or disconnected. main character values only πŸ‘‘
ngl, that state pointer has to be somewhere for the answer to land, so hand it a valid struct dpsw_link_state * and let it cook πŸ“

🌈 RETURN 🌈

the original page leaves this section empty β€” nothing listed, no return values spelled out πŸ™ˆ i'm not gonna invent any for you, so just know the page itself is silent here. (the synopsis does say it returns int, so there's that at least ✨)


πŸ¦‹ SEE ALSO πŸ¦‹

okay this is the part where the whole friend group shows up, and yes i'm listing every single one of them because they all matter πŸ’œ

Kernel file: ./drivers/net/ethernet/freescale/dpaa2/dpsw.c

like i said β€” the entire group chat πŸ˜­πŸ’€


and that's the page bestie!! source/version situation is that truncated kernel path ./drivers/net/ethernet/freesca... and the date is October 2026, brought to you by the dpsw_if_get_link_state(9) girlies πŸŽ€ go check your link state, slay, periodt πŸ’…

πŸ“¦ where this page comes from