slim_get_device(9)
π NAME π
okay bestie, welcome to slim_get_device(9) from the Kernel API Manual π
β this is the function that gets you a handle to a device, and that's literally the whole vibe. slim_get_device β get handle to a device. periodt β¨
π SYNOPSIS π
struct slim_device * slim_get_device (struct slim_controller *ctrl ,
struct slim_eaddr *e_addr );
πΈ ARGUMENTS πΈ
ctrlβ the controller on which this device is gonna be added or queried π«Άe_addrβ the enumeration address of the device you're querying π
β¨ DESCRIPTION β¨
It takes a reference to the embedded struct device, and bestie, that reference needs to be dropped after use. no cap.
π¨ important vibe check: do not forget to drop that reference after use. fr fr.
π₯ RETURN π₯
- if the device has already reported, you get a pointer to a device π
- if the device has not yet enumerated, it creates a new device and returns a pointer to it π
π SEE ALSO π
- Kernel file:
./drivers/slimbus/core.c slim_unregister_controller(9)slim_report_absent(9)of_slim_get_device(9)slim_device_report_present(9)slim_get_logical_addr(9)
mwah π β source/version: ./drivers/slimbus, date: October 2026, page: slim_get_device(9). bye bestie, go drop that reference π«Άπ
π¦ 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