dpni_get_buffer_layout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_get_buffer_layout β€” Kernel API Manual ✨

okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is dpni_get_buffer_layout. It's a little function that goes and asks the hardware what your buffer layout actually looks like rn. No cap, that's the whole vibe. Let's get into it 🫢


🌸 NAME

dpni_get_buffer_layout β€” Retrieve buffer layout attributes. that's it, that's the function πŸ’–


✨ SYNOPSIS

int dpni_get_buffer_layout (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , enum dpni_queue_type qtype , struct dpni_buffer_layout
*layout );

five arguments, one int coming back, iconic behavior honestly πŸ‘‘


πŸŽ€ ARGUMENTS

  • mc_io β€” Pointer to MC portal's I/O object. this is your little portal handle, the thing that actually lets you talk to the MC. don't lose it πŸ™ˆ
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. yes, literally one or more of those, that's the spec, slay ⭐
  • token β€” Token of DPNI object. every DPNI's got its own token and this is how you tell the function which one you mean πŸ’…
  • qtype β€” Type of queue to retrieve configuration for. it's an enum dpni_queue_type, so pick your queue type and go off πŸ¦‹
  • layout β€” Returns buffer layout attributes. this is the output param bestie β€” you hand over a struct dpni_buffer_layout * and it gets filled in with the actual layout deets ✨

πŸ’€ RETURN

okay don't come for me but this section is literally empty in the original page 😭 like the synopsis says it returns an int, but the RETURN section itself gives you nothing to work with. no error codes, no descriptions, nada. so… that's the tea, and I'm not gonna invent lore that isn't there πŸ™ˆ


πŸ¦‹ SEE ALSO

first up, the kernel file where this lives β€” go read the source, it's giving main character energy:

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

and then literally the entire DPNI friend group, in order, no one left out 🫢:

like, the whole roster. go read them, iykyk πŸ’œ


and that's the page bestie!! πŸŽ€ little sign-off moment: this one's stamped from ./drivers/net/ethernet/freesca... (yes the footer literally truncates it with ..., we love a cliffhanger 😭) and it's dated October 2026. stay hydrated, read your kernel source, and remember β€” buffer layout doesn't lie πŸ’–βœ¨πŸ”₯

πŸ“¦ where this page comes from