queue_qp_for_tid_wait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 character
  • queue β€” the queue to operate on πŸŽ€ the one getting the work
  • qp β€” 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 qp s_lock and the exp_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 🫢


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