axienet_check_tx_bd_space(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ axienet_check_tx_bd_space(9) ✨

okay so bestie, welcome to the axienet_check_tx_bd_space page of the Kernel API Manual β€” yes that's the whole name, no I will not be shortening it, it's iconic πŸ’…


πŸŽ€ NAME πŸŽ€

axienet_check_tx_bd_space β€” the little vibe check that tells you whether a BD (or a whole group of BDs) is currently busy 🫢


🌸 SYNOPSIS 🌸

int axienet_check_tx_bd_space (struct axienet_local *lp , int num_frag );

like, that's the whole signature, periodt ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • lp β€” a pointer to the axienet_local structure, aka the main character of this whole file 🧚
  • num_frag β€” the number of BDs you want to check for. yes, plural, you can ask about a whole little squad of them πŸ’œ

⭐ RETURN ⭐

  • 0 β€” on success, slay πŸ’–
  • NETDEV_TX_BUSY β€” if any of the descriptors are not free 😭 not a single one of them can be busy, fr fr

πŸ”₯ DESCRIPTION πŸ”₯

This function is invoked before BDs are allocated and transmission starts. no cap, it's literally the pre-flight check πŸ”₯

So here's the tea: it returns 0 if a BD or a group of BDs can be allocated for transmission. if the BD β€” or any single one of the BDs in that group, like even one β€” is not free, the function hits you with a busy status. it's giving strict group project energy: everyone has to be available or nobody's going anywhere πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

and now for the whole friend group 🫢 the kernel file lives at ./drivers/net/ethernet/xilinx/xilinx_axienet_main.c, and here's everyone else:


🌈 okay that's the whole page, you ate that πŸ’… this lil masterpiece comes to you from ./drivers/net/ethernet/xilinx, dated October 2026 β€” mwah, bye bestie! πŸ“πŸ’œπŸŽ€

πŸ“¦ where this page comes from