STRUCT SERDEV_DEVICE_DRIVER(9)
π NAME π
ok so struct serdev_device_driver β it's the serdev slave device driver, bestie. that's the whole vibe. a driver struct for serdev slave devices. slay.
β¨ SYNOPSIS β¨
like, here's literally the whole shape of it, no cap:
struct serdev_device_driver {
struct device_driver driver;
int (*probe)(struct serdev_device *);
void (*remove)(struct serdev_device *);
void (*shutdown)(struct serdev_device *);
};
π Members π
driverβ this is thestruct device_driverbit, and omg here's the thing: serdev device drivers should initialize thenamefield of this structure. that's the assignment, bestie. don't forget it. πprobeβint (*probe)(struct serdev_device *), and its whole job is binding this driver to a serdev device. it's giving matchmaker energy fr fr. π«Άremoveβvoid (*remove)(struct serdev_device *), and this one unbinds this driver from the serdev device. the breakup arc. πshutdownβvoid (*shutdown)(struct serdev_device *), and it shuts down this serdev device. powering down, going to sleep, self-care era. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/serdev.h struct serdev_device_ops(9)struct serdev_device(9)struct serdev_controller(9)serdev_device_put(9)serdev_controller_put(9)serdev_device_driver_unregister(9)
go read those too, iykyk π
ok that's the whole page, you ate that ngl π
so like, this lil masterpiece lives in ./include/linux and it's dated October 2026 β yeah, it's from the future, main character energy βπ bye bestie!! π¦πΈ
π¦ 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