dpsw_if_get_attributes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dpsw_if_get_attributes β€” it's giving "tell me everything about this interface" πŸ’…

Okay bestie, so this is a page from the Kernel API Manual (section 9, kernel API), and the star of the show is dpsw_if_get_attributes. Lowkey the name spoils it, but fr fr: this function obtains attributes of an interface. That's the whole vibe. πŸ¦‹


🌸 NAME 🌸

dpsw_if_get_attributes β€” Function obtains attributes of interface


✨ SYNOPSIS ✨

int dpsw_if_get_attributes (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , u16 if_id , struct dpsw_if_attr *attr );

She takes five args and hands you back an int. Iconic signature, no notes. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mc_io β€” Pointer to MC portal's I/O object 🫢
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_' (yes, plural energy β€” you can stack 'em)
  • token β€” Token of DPSW object πŸ”‘
  • if_id β€” Interface Identifier
  • attr β€” Returned interface attributes ⭐ (this is where the good stuff lands, so don't forget to pass it)

🌈 RETURN 🌈

Completion status. '0' on Success; Error code otherwise. So like, zero is the slay outcome, anything else is the vibe check failing 😭


πŸ’– SEE ALSO πŸ’–

All the siblings and cousins live in the kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.c β€” go say hi to the whole fam:


ngl bestie, that's a lot of cross-references β€” but every single one is right there for when you need the rest of the DPSW lore 🧚

Sign-off time πŸŽ€ β€” this page came from the source/version tag ./drivers/net/ethernet/freesca... and it's dated October 2026, so yeah, she's from the future and she's thriving. Periodt. πŸ’œ

πŸ“¦ where this page comes from