dpni_set_errors_behavior(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_set_errors_behavior(9) β€” like, the Kernel API Manual page, bestie

okay so this is dpni_set_errors_behavior from the Kernel API Manual (section 9, the kernel API girlies) and honestly? she's a little short but she works. Let's get into it 🫢


✨ NAME ✨

dpni_set_errors_behavior β€” literally just sets the errors behavior. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

int dpni_set_errors_behavior (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , struct dpni_error_cfg *cfg );

she returns an int, she takes four things, and yes you have to pass all of them. no shortcuts bestie πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” a pointer to the MC portal's I/O object. like, the portal. the I/O object. your entry point, your main character 🫢
  • cmd_flags β€” command flags, and they're one or more of the MC_CMD_FLAG_ crew. pick your flags, queen πŸ‘‘
  • token β€” the token of the DPNI object. that's your little ID badge for the DPNI you're talking to πŸŽ€
  • cfg β€” the errors configuration. this is where you actually say what you want the errors behavior to be ✨

πŸ’œ DESCRIPTION πŸ’œ

so the one actual lore drop here is: this function may be called numerous times with different error masks. numerous. like, as many times as you want, with different masks each time. lowkey iconic that she's reusable like that πŸ”₯


⭐ RETURN ⭐

ngl the page doesn't say anything here β€” the section exists and the content is just… not there. so we're not gonna invent return values, we're just gonna acknowledge the silence πŸ™ˆπŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file that's giving source of truth:

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

and then the whole entire friendship group of DPNI functions β€” every single one, no cap:

that's the whole group chat, everyone accounted for, no one left on read 🧚


🌈 real talk: keep the literal bits literal β€” the flags, the token, the config struct pointer β€” because the kernel does not accept vibes as arguments, bestie 😭

okay that's the page!! sourced from ./drivers/net/ethernet/freesca... and dated October 2026 β€” ty for coming to my TED talk, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from