STRUCT D40_PHY_RES(9)
π struct d40_phy_res(9) β like, the Kernel API Manual page, bestie β¨
okay so this is one of those kernel API manual pages, the struct d40_phy_res(9) one, and honestly? it's giving "small but crucial" energy. it's literally the struct for handling eventlines mapped to physical channels. that's the whole vibe. π
β¨ NAME β¨
struct d40_phy_res β the struct that handles eventlines mapped to physical channels. yes that's it, that's the job. π¦
πΈ SYNOPSIS πΈ
okay here's the whole thing, exactly as it is, no cap:
struct d40_phy_res {
spinlock_t lock;
bool reserved;
int num;
u32 allocated_src;
u32 allocated_dst;
bool use_soft_lli;
};
π Members π
bestie, let's meet the members, they all matter, don't skip any of them:
lockβ a lock that protects this entity. it's the bouncer at the door of this struct, keeping things from getting messy. πreservedβtrueif it's used by secure world or otherwise. so like, if this istrue, hands off, it's taken. π€numβ the physical channel number of this entity. that's its literal ID, its name tag at the party. π₯allocated_srcβ a bit map showing which src event line's are mapped to this physical channel. it can also be free or physically allocated. lowkey doing a lot of jobs at once. πallocated_dstβ same as for src but it's dst. and listen,allocated_dstandallocated_srcboth use theD40_ALLOC*defines as well as the event line number. important detail, don't forget it. πuse_soft_lliβ to mark if the linked lists of the channel are managed by SW. SW = software, and it's the one holding the clipboard here. π§
π«Ά SEE ALSO π«Ά
go read these too, they're all in the same friend group, iykyk:
Kernel file ./drivers/dma/ste_dma40.c struct stedma40_platform_data(9), enum d40_command(9), struct d40_interrupt_lookup(9), struct d40_reg_val(9), struct d40_lli_pool(9), struct d40_desc(9), struct d40_lcla_pool(9), struct d40_chan(9), struct d40_gen_dmac(9), struct d40_base(9)
and that's the whole page, periodt πβ¨ cute lil sign-off time: this one lives under ./drivers/dma, dated October 2026, and it's still just struct d40_phy_res(9) being iconic. slay, go read your dma driver code, ily, 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