STRUCT SLIM_DRIVER(9)
β¨ struct slim_driver(9) β¨
okay bestie, we're in the kernel API manual and today's main character is struct slim_driver β the SLIMbus "generic device" (slave) device driver. think of it as the SLIMbus glow-up of spi_device on SPI, iykyk π
β¨ NAME β¨
struct slim_driver β the SLIMbus "generic device" (slave) device driver, which is literally the SLIMbus version of 'spi_device' on SPI π¦
β¨ SYNOPSIS β¨
struct slim_driver {
int (*probe)(struct slim_device *sl);
void (*remove)(struct slim_device *sl);
void (*shutdown)(struct slim_device *sl);
int (*device_status)(struct slim_device *sl, enum slim_device_status
s);
struct device_driver driver;
const struct slim_device_id *id_table;
};
β¨ Members β¨
π the callback squad
probeβ this one binds your driver to a SLIMbus device. it's giving "first meeting, instant connection" π«Άremoveβ and this one unbinds your driver from the SLIMbus device. sad goodbye energy, but make it clean πshutdownβ the standard shutdown callback, used during powerdown/halt. it shows up when everything's wrapping up πdevice_statusβ this callback gets called when:- the device reports present and gets a
laddrassigned π - the device reports absent, or the bus goes down π
- the device reports present and gets a
π¦ the fields
driverβ SLIMbus device drivers should initialize thenameandownerfield of this structure. no cap, do it πid_tableβ the list of SLIMbus devices supported by this driver. it's the guest list, basically π
β¨ SEE ALSO β¨
kernel file ./include/linux/slimbus.h, plus struct slim_eaddr(9), enum slim_device_status(9), struct slim_device(9), struct slim_val_inf(9), struct slim_stream_config(9), and module_slim_driver(9) β go read them, they're iconic fr fr πβ¨
and that's the whole vibe check, bestie π§ this page came from ./include/linux and the version/date situation is October 2026 β so yeah, future-dated 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