sdma_ahg_alloc(9)
π sdma_ahg_alloc π
okay so bestie, we're in the Kernel API Manual today β yes, the fancy kernel docs, and no, you don't need to be scared, because this one is literally so tiny. It's giving "one job, does it well" energy. Let's get into it β¨
πΈ NAME πΈ
sdma_ahg_alloc β allocate an AHG entry π
Like, that's it. That's the whole vibe. It grabs you an AHG entry. Slay.
π¦ SYNOPSIS π¦
int sdma_ahg_alloc (struct sdma_engine *sde );
one function, one argument, one return value. minimalist queen behavior honestly π
π ARGUMENTS π
sdeβ the engine you're allocating from, bestie. that's thestruct sdma_engine *right there. you point at it, it gives you stuff. simple as π«Ά
β RETURN β
okay so here's the vibe check on what comes back at you:
0-31β success!! π you got an entry, and the number it hands you back is somewhere in that range. iconic.-EOPNOTSUPPβ rip π AHG is not enabled, so there's nothing to allocate, and the kernel is politely telling you "nope, not supported."-ENOSPCβ no cap, there's just no entry available right now. everything's taken. come back later π
like, fr fr, don't assume you always get a happy little number back β check for those negative returns or you WILL have a bad time π
π₯ SEE ALSO π₯
the whole friend group, gathered for you π
- Kernel file
./drivers/infiniband/hw/hfi1/sdma.c sdma_state_name(9)sdma_get_descq_cnt(9)sdma_engine_get_vl(9)sdma_select_engine_vl(9)sdma_select_engine_sc(9)sdma_seqfile_dump_cpu_list(9)sdma_map_init(9)sdma_clean(9)sdma_init(9)sdma_all_running(9)sdma_start(9)sdma_exit(9)__sdma_txclean(9)sdma_engine_error(9)sdma_seqfile_dump_sde(9)sdma_send_txreq(9)sdma_send_txlist(9)sdma_ahg_free(9)_sdma_engine_progress_schedule(9)
and that's the whole page, bestie, you ate that π go forth and allocate responsibly π§
this came out of ./drivers/infiniband/hw/hfi1, dated October 2026 β mwah, love u, 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