sc_wait_for_packet_egress(9)
okay bestie, welcome to the Kernel API Manual entry for sc_wait_for_packet_egress(9) β yes, the packet-waiting one. letβs get into it π
β¨ NAME β¨
sc_wait_for_packet_egress β wait for packet. thatβs the whole assignment, and it ate π
π¦ SYNOPSIS π¦
void sc_wait_for_packet_egress (struct send_context *sc , int pause );
π ARGUMENTS π
scβ valid send context. gotta be valid, bestie, no fake IDs at the function door πpauseβ wait for credit return. itβs giving βhold up, let the credits come backβ β³
πΈ DESCRIPTION πΈ
Wait for packet egress, optionally pause for credit return. lowkey iconic behavior.
Egress halt and Context halt are not necessarily the same thing, so check for both. both. not one. both. this is a two-halt situation and you need the full set, no shortcuts π₯
π NOTE π
The context halt bit may not be set immediately. because of this, it is necessary to check the SW SFC_HALTED bit (set in the IRQ) and the HW context bit to determine if the context is halted.
so yeah β SW SFC_HALTED plus HW context bit, both receipts, then you know whatβs up. no cap π«Ά
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/hfi1/pio.c:pio_kernel_linkup(9),sc_piobufavail(9)
mwah π β this little page comes from ./drivers/infiniband/hw/hfi1, dated October 2026. stay hydrated and check both halt bits, bestie π§π
π¦ 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