STRUCT CCWGROUP_DRIVER(9)
NAME π
okay so bestie, welcome to the Kernel API Manual β this page is literally all about struct ccwgroup_driver, which is, like, the driver for ccw group devices. that's the whole vibe. main character struct energy, no cap π
β¨ SYNOPSIS β¨
here's the glow-up in code form, copying it exactly so nobody comes for me:
struct ccwgroup_driver {
int (*setup) (struct ccwgroup_device *);
void (*remove) (struct ccwgroup_device *);
int (*set_online) (struct ccwgroup_device *);
int (*set_offline) (struct ccwgroup_device *);
void (*shutdown)(struct ccwgroup_device *);
struct device_driver driver;
struct ccw_driver *ccw_driver;
};
like, look at her. seven whole members. she's serving structure, she's serving function pointers, she's serving embedded driver. iconic π
πΈ Members πΈ
bestie, let's go through the cast one by one, they all have a job and they're all doing it:
setupβ this one gets called during device creation to setup the device π«Ά like she's the one setting up the party before anyone arrives.removeβ called on remove. that's it, that's the job. she shows up when the device is getting taken out πset_onlineβ called when the device is set online β the "we're so back" function, fr fr.set_offlineβ called when the device is set offline π the "it's over" function. opposite energy, same amount of commitment.shutdownβ called when the device is shut down π she's the one locking up on the way out.driverβ the embedded driver structure π¦ lowkey just astruct device_driverchilling inside, being supportive.ccw_driverβ the supportedccw_driver, and ngl, she's optional π astruct ccw_driver *that doesn't have to be there. queen of "if you want".
heads up bestie: keep track of which of these are plain functions and which are pointers β the synopsis is right there and it does not lie to you π
π¦ SEE ALSO π¦
- Kernel file
./arch/s390/include/asm/ccwgroup.hβ go read the header, she's got the lore π₯ struct ccwgroup_device(9)β the other half of this whole situation, you literally cannot skip her π
and that's the page!! π written by the good people over at ./arch/s390/include/asm, dated October 2026, and officially titled struct ccwgroup_driver(9) β mwah, slay, periodt π
β¨π
π¦ 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