dpni_set_single_step_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dpni_set_single_step_cfg(9) ✨

okay so this is a page from the Kernel API Manual, and it's all about dpni_set_single_step_cfg β€” the little function that turns single step PTP on or off and configures it. yes bestie, we're doing PTP things today πŸ•°οΈπŸ’…


🌸 NAME 🌸

dpni_set_single_step_cfg β€” enable/disable and configure single step PTP


πŸ¦‹ SYNOPSIS πŸ¦‹

int dpni_set_single_step_cfg (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , struct dpni_single_step_cfg *ptp_cfg );

like, it returns an int, and it takes four things. that's the whole vibe. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • mc_io β€” Pointer to MC portal's I/O object. it's giving "the doorway to the management complex" energy πŸšͺ
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. flags on flags on flags, periodt 🚩
  • token β€” Token of DPNI object. your little DPNI hall pass, lowkey πŸ”‘
  • ptp_cfg β€” ptp single step configuration. the actual config, the main character of this whole function πŸ‘‘

πŸ’€ RETURN πŸ’€

sooo the original page literally leaves this section empty β€” no return value description to be found. i'm not gonna invent one for you, bestie. that's a no-cap boundary πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

okay here's the tea β˜• β€” this function has effect only when the dpni object is connected to a dpmac object.

and if the dpni is not connected to a dpmac? no stress. the configuration will be stored inside and applied when the connection is made. it's giving "saving your draft until the wifi comes back" energy πŸ˜­πŸ’Ύ


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpni.c β€” go look, iykyk πŸ“

and here's the whole friend group, no one left out 🫢:


and that's the page, bestie!! πŸŽ€βœ¨ this one came from the kernel source at ./drivers/net/ethernet/freesca... and it's dated October 2026 β€” so go forth, configure that single step PTP, and slay πŸ’…πŸ‘‘

πŸ“¦ where this page comes from