STRUCT CCWGROUP_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 and state is the answer ✨ (and yeah, the options are CCWGROUP_OFFLINE and CCWGROUP_ONLINE, living right there in that anonymous enum πŸŽ€)
  • count β€” number of attached slave devices. an unsigned int, keeping track of how many slaves are in the group πŸ’€
  • dev β€” the embedded struct device. the main character energy of the whole struct, it's giving infrastructure πŸ‘‘
  • ungroup_work β€” a struct work_struct used to ungroup the ccwgroup device. lowkey the breakup mechanic of this struct 😭
  • cdev β€” variable number of slave devices, allocated as needed. a struct 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