STRUCT PWRSEQ_UNIT_DEP(9)
π struct pwrseq_unit_dep(9) β the kernel API manual, bestie edition π
okay so real talk: this is page struct pwrseq_unit_dep(9) from the Kernel API Manual, and it's honestly such a tiny icon. it's a little wrapper struct that holds a reference to a unit structure, and the whole point is that it lets you keep that reference on multiple dependency lists in different units. like, one unit, many lists, no drama. main character energy fr β¨
πΈ SYNOPSIS πΈ
here's the whole struct, and yes it's giving minimal but make it count:
struct pwrseq_unit_dep {
struct list_head list;
struct pwrseq_unit *unit;
};
that's it. that's the girl. two members, zero chaos π
π¦ Members π¦
listβ the siblings on the list π«Ά it's the list plumbing that lets this dep hang out on more than one dependency list at a time without falling apart.unitβ the address of the referenced unit π literally just a pointer to the unit you're depending on, no cap.
π SEE ALSO π
so here's the whole friend group β kernel file ./drivers/power/sequencing/core.c, plus:
struct pwrseq_unit(9)struct pwrseq_target(9)struct pwrseq_device(9)struct pwrseq_desc(9)pwrseq_device_register(9)pwrseq_device_unregister(9)devm_pwrseq_device_register(9)pwrseq_device_get_drvdata(9)pwrseq_get(9)pwrseq_put(9)devm_pwrseq_get(9)pwrseq_enable(9)pwrseq_disable(9)pwrseq_to_device(9)
lowkey a whole squad, go say hi π iykyk
ngl, that's the entire page β no hidden options, no exit statuses, no gotchas. just a struct being exactly what it says it is. iconic behaviour honestly π§
and that's a wrap, bestie π this came out of ./drivers/power/sequencing, dated October 2026, and it's filed under struct pwrseq_unit_dep(9) forever. slay ππβ
π¦ 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