STRUCT MIPS_CDMM_DRIVER(9)
π NAME π
struct mips_cdmm_driver - Represents a driver for a CDMM device. β¨
okay so bestie, welcome to the struct mips_cdmm_driver(9) page from the Kernel API Manual. this struct is literally the whole vibe for a driver that handles a CDMM device β no cap, it's giving βkernel blueprintβ and we're obsessed. π«Ά
πΈ SYNOPSIS πΈ
here's the struct, verbatim with all the spacing exactly as the page shows it:
struct mips_cdmm_driver {
struct device_driver drv;
int (*probe)(struct mips_cdmm_device *);
int (*remove)(struct mips_cdmm_device *);
void (*shutdown)(struct mips_cdmm_device *);
int (*cpu_down)(struct mips_cdmm_device *);
int (*cpu_up)(struct mips_cdmm_device *);
const struct mips_cdmm_device_id *id_table;
};
π§ Members π§
ok bestie, here's the member-by-member vibe check. every field, every callback, all of it:
drvβ Driver model driver object. πprobeβ Callback for probing newly discovered devices. πremoveβ Callback to remove the device. π«Άshutdownβ Callback on system shutdown. πcpu_downβ Callback when the parent CPU is going down. Any CPU pinned threads/timers should be disabled. πcpu_upβ Callback when the parent CPU is coming back up again. CPU pinned threads/timers can be restarted. πid_tableβ Table for CDMM IDs to match against. π
π SEE ALSO π
- Kernel file
./arch/mips/include/asm/cdmm.hβ the source file flex. π struct mips_cdmm_device(9)β another page bestie should check. πmips_cdmm_phys_base(9)β also linked, periodt. β¨
mwah π β this page came from the source/version path ./arch/mips/include/asm, straight outta the Kernel API Manual, dated October 2026. ππ
π¦ 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