sunxi_rsb_driver_register(9)
π sunxi_rsb_driver_register(9) β from the Kernel API Manual, bestie
okay so real talk, this one's a little function with a big job, and it lives in the Kernel API Manual (yes, the (9) is the manual section, we stan a section number). get comfy, this is gonna be quick but it's important π«Ά
β¨ NAME β¨
sunxi_rsb_driver_register β the way you tell the RSB core "hey bestie, here's a driver, please associate it, ty" π
πΈ SYNOPSIS πΈ
int sunxi_rsb_driver_register (struct sunxi_rsb_driver *rdrv );
that return type is int, and the one and only thing you hand over is a pointer to a struct sunxi_rsb_driver named rdrv. slay, one argument, we love a low-effort call β¨
π ARGUMENTS π
rdrvβ the device driver that's getting associated with the slave-device. that's it, that's the whole vibe check. this is the driver, and it wants to be hooked up to its slave-device π¦
π« DESCRIPTION π«
so what actually happens? this API registers the client driver with the RSB framework. no cap, that's the whole function's personality π₯
and where do you call it? it's typically called from the driver's module-init function β like, that's its natural habitat, that's where it belongs, main character energy honestly π
lowkey important: this is the register side of things. the unregister side exists and it's linked down below, so don't be a stranger to it when your module goes bye-bye π
π SEE ALSO π
- Kernel file
./drivers/bus/sunxi-rsb.cβ where the actual source lives, go read it, it's giving iconic sunxi_rsb_device_create(9)sunxi_rsb_device_unregister(9)
and that's the page!! π remember the whole thing came out of ./drivers/bus, dated October 2026, so if anyone asks where this lore dropped, that's the source and the date, 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