rvt_get_credit(9)
๐ฆ rvt_get_credit(9) ๐ฆ
okay so bestie, this is a page straight out of the Kernel API Manual โ section 9, kernel girlie territory โ and it's all about rvt_get_credit. no cap, it's a tiny one, so let's get into it ๐
โจ NAME โจ
rvt_get_credit โ flush the send work queue of a QP
like, that's the whole vibe. it flushes the send work queue of a QP. periodt ๐
๐ธ SYNOPSIS ๐ธ
void rvt_get_credit (struct rvt_qp *qp , u32 aeth );
that's it. that's the function. two args, no return value, iconic behavior ๐
๐ซถ ARGUMENTS ๐ซถ
qpโ the qp who's send work queue to flush ๐ (yes, that's the qp in question, the main character of this whole operation)aethโ the Acknowledge Extended Transport Header ๐ (au32, bestie, it's giving "packed header energy")
๐ฅ DESCRIPTION ๐ฅ
so here's the one thing you literally cannot skip:
The QP s_lock should be held. ๐
that's the whole description, and it is not a suggestion. lock first, then call. that's the vibe check and you gotta pass it ๐ญ
โญ SEE ALSO โญ
- Kernel file
./drivers/infiniband/sw/rdmavt/rc.c๐ โ like, the actual file, go read it rvt_compute_aeth(9)๐งฎrvt_restart_sge(9)๐
mwah, that's the page! stay safe out there, hold your locks, and remember this lil gem came from ./drivers/infiniband/sw/rdmavt, dated October 2026, in the Kernel API Manual ๐โจ bye bestie, slay responsibly ๐งโโ๏ธ๐
๐ฆ 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