ntb_transport_rx_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, gather round β€” ntb_transport_rx_remove is literally the function that dequeues enqueued rx packet. that's it, that's the whole vibe. she takes the packets out of the queue ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void * ntb_transport_rx_remove (struct ntb_transport_qp *qp , unsigned
int *len );

like... she returns a void * and she's got two whole arguments, and bestie you will be seeing those in a sec πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • qp β€” the NTB queue that's about to be freed 🫢 like, this is the queue we're packing up, sorry girl
  • len β€” pointer to the variable where we write the enqueued buffers length πŸ“ so you hand her a spot in memory and she fills in how long those buffers were

🌸 DESCRIPTION 🌸

so what she actually does β€” she dequeues the unused buffers from the receive queue, periodt πŸ’…

⚠️ but ngl there's a rule, and it's non-negotiable: she should only be used during shutdown of qp. that's her one and only window, bestie. don't be out here calling her mid-gig πŸ™ˆ

⭐ RETURN ⭐

  • NULL β†’ that's your error value on error 😭
  • void* β†’ that's your success slay πŸ”₯

no cap, those are the two options and there is no third one.


🧚 SEE ALSO 🧚


and that's the whole manual page, mwah πŸ’œ this lil cutie lives over in ./drivers/ntb, dated October 2026, and it's part of the Kernel API Manual β€” ntb_transport_rx_remove(9) if you're keeping score. go off, bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from