STRUCT FWCTL_DEVICE(9)
π NAME π
struct fwctl_device β the per-driver registration struct, bestie. Like, this is the little registration baddie each driver gets. β¨
So this page is from the Kernel API Manual, and we are about to get into it. π
πΈ SYNOPSIS πΈ
struct fwctl_device {
struct device dev;
};
Yes, that's the whole struct. She's simple, she's iconic, she's doing her job. π
π¦ Members π¦
devβ the sysfs device, specifically atclass/fwctl/fwctlXX. That's the vibe. π«Ά
β¨ Description β¨
Okay so real talk: every driver instance gets one of these structs, and the driver's private data sits immediately after it. No cap. π
This struct is refcounted, and it gets freed by calling fwctl_put. That's literally the cleanup move, so don't forget it. π
Lowkey important: refcounted means refcounted. fwctl_put is the one doing the freeing. Periodt. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/fwctl.h struct fwctl_ops(9)fwctl_alloc_device(9)struct fwctl_uctx(9)
That's the whole page, bestie. Header energy: struct fwctl_device(9). Footer energy: from ./include/linux, dated October 2026. 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