ntb_transport_create_queue(9)
π ntb_transport_create_queue β NAME β¨
okay so this is ntb_transport_create_queue(9) from the Kernel API Manual, and it literally does what it says on the tin: Create a new NTB transport layer queue. bestie, that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
struct ntb_transport_qp * ntb_transport_create_queue (void *data ,
struct device *client_dev , const struct ntb_queue_handlers *handlers );
no cap, that's the whole call signature π
π¦ ARGUMENTS π¦
dataβ a pointer for callback data π«Ά like, this is the little bag of stuff your callbacks get handed back later, iykykclient_devβ astruct devicepointer βhandlersβ pointer to various ntb queue (callback) handlers π this is where all your callback functions live
π DESCRIPTION π
so basically you're creating a new NTB transport layer queue, and while you're at it you're giving that queue a callback routine for both transmit and receive. two-for-one, obsessed π
the receive callback routine will be used to pass up data when the transport has received it on the queue β¨ (like, incoming data goes up to you through it).
the transmit callback routine will be called when the transport has completed the transmission of the data on the queue and the data is ready to be freed π₯ β so yes, that callback is your green light to free the data. main character energy for real π
π RETURN π
a pointer to the newly created ntb_queue, or NULL on error π (check it, bestie, always check it).
π§ SEE ALSO π§
- Kernel file
./drivers/ntb/ntb_transport.cπ (the source, go read it) ntb_transport_unregister_client_dev(9)ntb_transport_register_client_dev(9)ntb_transport_register_client(9)ntb_transport_unregister_client(9)ntb_transport_free_queue(9)ntb_transport_rx_remove(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)
fr fr, go touch grass after reading all those, but also read them, they're your friends π
okay that's the whole page!! this came from the ./drivers/ntb source, October 2026 edition, and it lives at ntb_transport_create_queue(9) β slay, you're done, go build something iconic π¦π
π¦ 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