dpni_set_buffer_layout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_set_buffer_layout(9) β€” like, the Kernel API Manual one πŸŽ€

Okay bestie, so this is dpni_set_buffer_layout(9) from the Kernel API Manual, and it's literally the glow-up button for your buffer layout config ✨ like the function that sets the whole vibe of how buffers are laid out. Let's go 🫢


🌸 NAME 🌸

dpni_set_buffer_layout β€” Set buffer layout configuration. That's it, that's the whole thing, no cap πŸ’…


✨ SYNOPSIS ✨

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

She takes five arguments and returns an int β€” iconic signature, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mc_io β€” Pointer to MC portal's I/O object. Your little doorway into the MC portal, fr fr πŸšͺ
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. Yes bestie, one or more, stack 'em 🌈
  • token β€” Token of DPNI object. It's the DPNI's little ID badge πŸͺͺ
  • qtype β€” Type of queue this configuration applies to. Which queue are we doing a makeover on? πŸ‘€
  • layout β€” Buffer layout configuration. The actual fit check, the outfit itself πŸ’–

πŸ”₯ RETURN πŸ”₯

So the RETURN section is just... sitting there. Nothing in it. The manpage gives it a heading and then dips 😭 no description, no exit codes, nothing β€” not me noticing the silence πŸ’€


πŸ¦‹ DESCRIPTION πŸ¦‹

  • warning β€” Allowed only when DPNI is disabled. Read that again, bestie 🚨 the DPNI has to be off before you touch the buffer layout. Do not come for this while she's running, that's the whole rule πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file lives right here, go peek: ./drivers/net/ethernet/freescale/dpaa2/dpni.c πŸ“

And the whole friend group, in order, every single one of them:

Like, all of them. Every last one. I counted, she counted, we all counted πŸ’…


And that's the page, bestie β€” sourced from ./drivers/net/ethernet/freesca... and dated October 2026 πŸ—“οΈβœ¨ mwah, go set those buffer layouts (with the DPNI disabled, obviously) πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from