axienet_calc_cr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… axienet_calc_cr(9) β€” the Kernel API Manual page you didn't know you needed πŸŽ€

okay bestie, so this is axienet_calc_cr, straight out of the Linux Kernel API Manual. yeah. we're in the kernel now. bring a snack. πŸ“


✨ NAME ✨

axienet_calc_cr β€” literally just Calculate control register value. that's the whole gig. iconic behaviour, no notes. πŸ‘‘


🌸 SYNOPSIS 🌸

u32 axienet_calc_cr(struct axienet_local *lp, u32 count, u32 usec);

three args, one u32 coming back at you. she's compact. she's efficient. she ate. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lp β€” the device's private data. like, the main character's whole lore file. πŸ“
  • count β€” how many completions happen before an interrupt fires. the "how many before we yell" number.
  • usec β€” microseconds after the last completion before an interrupt fires. the "wait a hot sec" number. ⏱️

πŸ’– DESCRIPTION πŸ’–

so the way this works is: axienet_calc_cr calculates a control register value based on the coalescing settings. that's it, that's the function. πŸ”₯

and the important bit β€” do not miss this β€” the run/stop bit is not set. nope. not her job. she hands you the value and the run/stop bit is somebody else's problem, fr fr. 🫢


🌈 RETURN 🌈

she returns the control register value with the coalescing settings all configured. ready to go, prepped, slayed. ✨


πŸ’œ SEE ALSO πŸ’œ

buckle up bestie, this list is a journey. the whole friend group showed up:

forty-something functions and not one of them skipped. iykyk. 😭


the whole thing lives under ./drivers/net/ethernet/xilinx β€” that's home base, that's the address, don't lose it. 🏑

and that's the page!! πŸ’« source: ./drivers/net/ethernet/xilinx, version October 2026 β€” mwah, catch you in the next man page, bestie. πŸ§šπŸ’œ

πŸ“¦ where this page comes from