STRUCT CCWGROUP_DEVICE(9)
β¨ struct ccwgroup_device β bestie edition β¨
okay so this is the struct ccwgroup_device(9) page from the Kernel API Manual, and it's literally the blueprint for a ccw group device π s390 hive rise up, this one's for you π¦
πΈ NAME πΈ
struct ccwgroup_device β ccw group device. that's it, that's the vibe π
β¨ SYNOPSIS β¨
bestie, here's the whole struct, copied exactly, no cap π«Ά
struct ccwgroup_device {
enum {
CCWGROUP_OFFLINE,
CCWGROUP_ONLINE,
} state;
unsigned int count;
struct device dev;
struct work_struct ungroup_work;
struct ccw_device *cdev[];
};
π Members π
okay so every single field, one by one, let's go π
stateβ the online/offline state. is it up or is it down? that's the question andstateis the answer β¨ (and yeah, the options areCCWGROUP_OFFLINEandCCWGROUP_ONLINE, living right there in that anonymous enum π)countβ number of attached slave devices. anunsigned int, keeping track of how many slaves are in the group πdevβ the embeddedstruct device. the main character energy of the whole struct, it's giving infrastructure πungroup_workβ astruct work_structused to ungroup the ccwgroup device. lowkey the breakup mechanic of this struct πcdevβ variable number of slave devices, allocated as needed. astruct ccw_device *flexible array, so it grows exactly as much as it needs to, obsessed π±
π₯ SEE ALSO π₯
- Kernel file
./arch/s390/include/asm/ccwgroup.h struct ccwgroup_driver(9)
go read those too, iykyk π
that's the whole thing bestie, every field accounted for, nothing skipped, fr fr π now go forth and slay your s390 driver work πβ
this gem lives under ./arch/s390/include/asm in the Kernel API Manual, dated October 2026 β screenshot it, bookmark it, tattoo it, whatever, and see you in the next manpage π§π
π¦ 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