STRUCT SDMA_ENGINE(9)
π struct sdma_engine(9) β bestie edition
okay so sticky note first: this is a page from the Kernel API Manual, and the star of the show is struct sdma_engine(9). yes the title is literally the name of the struct. iconic behavior tbh.
β¨ NAME β¨
struct sdma_engine β the data that pertains to each SDMA engine. one of these per engine, no cap. π¦
πΈ SYNOPSIS πΈ
like, here's the whole struct, and honestly it's giving "small but mighty":
struct sdma_engine {
struct hfi1_devdata *dd;
struct hfi1_pportdata *ppd;
};
lowkey obsessed with how short that is. two pointers. that's the whole vibe. π
π Members π
ddβ a back-pointer to the device data. it's the "who's your device" link, fr fr. π«Άppdβ the per port back-pointer. one port, one pointer, periodt. β¨
π Description π
so this structure has the state for each sdma_engine. that's it, that's the whole job β it's the main character energy container holding an engine's state. π
and here's the part where i have to be a responsible bestie: accessing the non-public fields is not supported, because those private members are subject to change. like, they will absolutely get rearranged on you. so don't go poking at the private stuff, ngl. π
β οΈ warning, gently: private members = subject to change = not your business. touch the public stuff only. π
π SEE ALSO π
go read these next, i promise they're worth it:
- Kernel file
./drivers/infiniband/hw/hfi1/sdma.h sdma exported routines(9)sdma PSM/verbs API(9)Infrastructure calls(9)sdma_empty(9)sdma_running(9)sdma_txinit_ahg(9)sdma_txinit(9)sdma_txadd_page(9)sdma_txadd_daddr(9)sdma_txadd_kvaddr(9)sdma_progress(9)struct sdma_map_elem(9)sdma_engine_progress_schedule(9)
okay that's the whole page, you ate that π and for the record, this one lives in ./drivers/infiniband/hw/hfi1 and it's dated October 2026 β so like, future vibes π bye 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