queue_qp_for_tid_wait(9)
π queue_qp_for_tid_wait(9) β the Kernel API Manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and it's about queue_qp_for_tid_wait β say that five times fast, I dare you π it's a lil function that puts a QP to sleep on tid space, and honestly? it ate.
β¨ NAME β¨
queue_qp_for_tid_wait β suspend QP on tid space π¦
β¨ SYNOPSIS β¨
void queue_qp_for_tid_wait (struct hfi1_ctxtdata *rcd , struct tid_queue
*queue , struct rvt_qp *qp );
like, that's the whole signature, no cap. void return, three args, she's neat π
β¨ ARGUMENTS β¨
rcdβ the receive context π this is the whole vibe, the main characterqueueβ the queue to operate on π the one getting the workqpβ the qp πΈ yes that's genuinely all the original says about it, so I'm not gonna invent lore
β¨ DESCRIPTION β¨
So here's what goes down, bestie: the qp gets inserted at the tail of the rcd wait queue π₯ and the HFI1_S_WAIT_TID_SPACE s_flag gets set. That's it. That's the whole function. She queues and she flags, periodt π
β οΈ okay important, do NOT skip this: must hold the qps_lockand theexp_lock. like, both of them. this is a hard requirement, not a suggestion, she will not be held responsible for what happens if you don't π
β¨ SEE ALSO β¨
go read these next, i'm obsessed with this whole little friend group π«Ά
- Kernel file
./drivers/infiniband/hw/hfi1/tid_rdma.c TID RDMA READ protocol(9)qp_to_rcd(9)lock ordering(9)kernel_tid_waiters(9)dequeue_tid_waiter(9)__trigger_tid_waiter(9)tid_rdma_schedule_tid_wakeup(9)tid_rdma_trigger_resume(9)kern_reserve_flow(9)tid_rdma_find_phys_blocks_4k(9)tid_flush_pages(9)tid_rdma_find_phys_blocks_8k(9)hfi1_kern_exp_rcv_setup(9)hfi1_kern_exp_rcv_free_flows(9)__trdma_clean_swqe(9)hfi1_schedule_tid_send(9)
and that's the page!! π this icon lived in ./drivers/infiniband/hw/hfi1 and was dated October 2026 β bestie, mark your calendar, she's from the future βπ go touch some tid space, ily, bye ππ
π¦ 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