dpni_get_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dpni_get_queue(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for dpni_get_queue, and yes it's exactly what it sounds like: you're getting your queue parameters back out of the DPAA2 life. no cap, it's a little function with a lot of friends (see the SEE ALSO at the bottom, it's giving squad goals 🫢).


✨ SYNOPSIS ✨

int dpni_get_queue (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token
, enum dpni_queue_type qtype , u8 tc , u8 index , struct dpni_queue
*queue , struct dpni_queue_id *qid );

she's long, she's lowercase-ish, she returns an int β€” iconic behavior honestly πŸ’…


🌸 ARGUMENTS 🌸

  • mc_io β€” Pointer to MC portal's I/O object. like, your little handle to the management complex portal, that's the vibe πŸ¦‹
  • cmd_flags β€” Command flags; one or more of MC_CMD_FLAG_. pick your flags, be free ✨
  • token β€” Token of DPNI object. it's a u16, it identifies your DPNI, pls don't lose it πŸ™ˆ
  • qtype β€” Type of queue β€” all queue types are supported, and we love an inclusive queen πŸ‘‘
  • tc β€” Traffic class, in range 0 to NUM_TCS - 1. respect the range, she's strict πŸ’€
  • index β€” Selects the specific queue out of the set allocated for the same TC. Value must be in range 0 to NUM_QUEUES - 1. again: range check is real, do not test her πŸŽ€
  • queue β€” Queue configuration structure. this is where the tea gets poured πŸ“
  • qid β€” Queue identification. your queue's little ID card, very main character πŸ“‡

πŸ’€ RETURN πŸ’€

bestie… the RETURN section is literally empty in this manpage. not me noticing that 😭 the return type is int in the synopsis up there, but the original page documents nothing under RETURN, so i'm not gonna make something up. periodt. βœ‹

ngl that's a whole vibe check fail from whoever wrote the original, but we respect the source material around here 🫢

🌈 SEE ALSO 🌈

first up, the kernel file herself:

  • Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpni.c

and now the entire extended friend group (grab a snack, this is a long one):

like… that's the whole department at this point 😭 but fr fr, if you're poking at queues you're gonna bump into these. iykyk πŸ’œ


and that's the page!! this lil beauty comes from ./drivers/net/ethernet/freesca... and is dated October 2026, and it'll keep showing dpni_get_queue(9) in the corner forever because that's her name and she's not changing it πŸ’…βœ¨ slay, go get those queue params bestie πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from