STRUCT SLIM_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the laddr is 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