STRUCT SLIM_DEVICE(9)
π struct slim_device(9) β the Kernel API Manual, bestie edition π
okay so you're looking at struct slim_device, from the Kernel API Manual. it's the SLIMbus device handle, and honestly? she's iconic. let's get into it β¨
πΈ NAME πΈ
struct slim_device β the Slim device handle π
π¦ SYNOPSIS π¦
struct slim_device {
struct device dev;
struct slim_eaddr e_addr;
struct slim_controller *ctrl;
enum slim_device_status status;
u8 laddr;
bool is_laddr_valid;
struct list_head stream_list;
spinlock_t stream_list_lock;
};
like, look at her. eight members. all main character energy. π
π Members π
devβ the driver model representation of the device π«Άe_addrβ the enumeration address of this device βctrlβ the slim controller instance πstatusβ the slim device status π₯laddrβ 1-byte Logical address of this device πis_laddr_validβ tells you whether theladdris valid or not (vibe check on the address, basically) βstream_listβ the list of streams on this device πstream_list_lockβ the lock that protects the stream list π (do NOT skip her, she's doing important work)
β¨ Description β¨
so here's the tea π β this is the client/device handle you get back when a SLIMbus device gets registered with a controller. client-drivers use a pointer to this structure as their handle. that's it, that's the whole vibe. no cap. π
π SEE ALSO π
- Kernel file
./include/linux/slimbus.h struct slim_eaddr(9)enum slim_device_status(9)struct slim_driver(9)struct slim_val_inf(9)struct slim_stream_config(9)module_slim_driver(9)
iykyk β go read those next, bestie ππ
ngl this one's short but she ate. go forth and slay your SLIMbus driver π§ββοΈ
π that's the whole page! it lives in ./include/linux, this printout is from October 2026, and the manual page is struct slim_device(9) β mwah, 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