ntb_transport_rx_remove(9)
π 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 girllenβ 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 π§
- Kernel file
./drivers/ntb/ntb_transport.cβ the source, the mothership, go read her π ntb_transport_unregister_client_dev(9)ntb_transport_register_client_dev(9)ntb_transport_register_client(9)ntb_transport_unregister_client(9)ntb_transport_create_queue(9)ntb_transport_free_queue(9)ntb_transport_rx_enqueue(9)ntb_transport_tx_enqueue(9)ntb_transport_link_up(9)ntb_transport_link_down(9)ntb_transport_link_query(9)ntb_transport_qp_num(9)ntb_transport_max_size(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms