rio_get_drvdata(9)
π rio_get_drvdata β like, the Kernel API Manual page for it β¨
okay so bestie, welcome to rio_get_drvdata(9) β yes that's the manual page name and yes we're gonna get through this together π«Ά
πΈ NAME πΈ
rio_get_drvdata β the little function that gets you the RIO driver specific data π
β¨ SYNOPSIS β¨
void * rio_get_drvdata (struct rio_dev *rdev );
look at her. one function, one arg, returns a void *. she's simple, she's iconic, she ate π₯
π ARGUMENTS π
rdevβ the RIO device in question π¦ like, the specific one you're asking about. that's it, that's the whole argument.
π DESCRIPTION π
Okay so the whole vibe here: rio_get_drvdata grabs the RIO driver specific data. That's literally the job.
It returns a pointer to that driver specific data. That pointer is what you get back. void *, as promised. no cap, no extra steps, no side quests π
ngl this one is short and sweet β the function does exactly what the NAME says and nothing else. love that for us π
π¦ SEE ALSO π¦
first up, the kernel file this lives in: ./include/linux/rio_drv.h β go say hi to her π
and then, the whole friend group of related calls, all in (9) section glory:
rio_local_read_config_32(9)rio_local_write_config_32(9)rio_local_read_config_16(9)rio_local_write_config_16(9)rio_local_read_config_8(9)rio_local_write_config_8(9)rio_read_config_32(9)rio_write_config_32(9)rio_read_config_16(9)rio_write_config_16(9)rio_read_config_8(9)rio_write_config_8(9)rio_send_doorbell(9)rio_init_mbox_res(9)rio_init_dbell_res(9)RIO_DEVICE(9)rio_add_outb_message(9)rio_add_inb_buffer(9)rio_get_inb_message(9)rio_name(9)rio_set_drvdata(9)
and yeah β rio_set_drvdata(9) is literally her other half, the one who sets what she gets. soulmate behavior fr fr π (go read that one too, iykyk)
source: ./include/linux Β· version/date: October 2026 β mwah, that's the whole page bestie, ily, go read your docs π
β¨π
π¦ 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