qp_to_rcd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qp_to_rcd(9) πŸ’…

okay so welcome to the Kernel API Manual bestie, today we're reading qp_to_rcd(9) and honestly? it's giving tiny-but-mighty. short function, zero drama, absolute icon. ✨


πŸŽ€ NAME πŸŽ€

qp_to_rcd β€” figure out which receive context a qp is using, no cap 🫢


🌸 SYNOPSIS 🌸

struct hfi1_ctxtdata * qp_to_rcd (struct rvt_dev_info *rdi , struct
       rvt_qp *qp );

literally that's it. that's the whole vibe. returns a struct hfi1_ctxtdata *, takes two args, done. πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdi β€” the rvt dev struct, aka the device-info situation 🧚
  • qp β€” the qp. the queue pair in question. the main character πŸ‘‘

⭐ DESCRIPTION ⭐

so this routine returns the receive context associated with a qp's qpn. that's the whole thing. that's the assignment. it reads the qpn, it hands you back the context, it does not make a whole production out of it. lowkey iconic behavior honestly. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

the context. that's the return. the context. πŸ’€βœ¨

ngl bestie this is the shortest RETURN section maybe ever written, and I respect it enormously.

🌈 SEE ALSO 🌈

okay this is where it gets loud, because the SEE ALSO list is long and every single one of these needs to be here, so buckle up πŸŽ€:

Kernel file ./drivers/infiniband/hw/hfi1/tid_rdma.c TID RDMA READ protocol(9), lock ordering(9), kernel_tid_waiters(9), dequeue_tid_waiter(9), queue_qp_for_tid_wait(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)

like... the friend group is HUGE and we love them all for it πŸ«ΆπŸ’œ


mwah, that's the whole page β€” brought to you by ./drivers/infiniband/hw/hfi1, dated October 2026. go read qp_to_rcd(9) again if you miss it, she's short but she's perfect πŸ’…πŸŽ€

πŸ“¦ where this page comes from