rio_write_config_16(9)
β¨ rio_write_config_16(9) β¨
okay so bestie, this is a page from the Kernel API Manual and it's literally about writing 16 bits into configuration space. it's giving "small but mighty" energy ngl π
π NAME π
rio_write_config_16 β write 16 bits to configuration space. that's it. that's the whole vibe. no cap π
πΈ SYNOPSIS πΈ
int rio_write_config_16 (struct rio_dev *rdev , u32 offset , u16 data );
like yes she's a function, yes she returns an int, yes she takes three things. iconic of her honestly π«Ά
π¦ ARGUMENTS π¦
rdevβ the RIO device. the main character of this whole operation honestly πoffsetβ the offset into the device's configuration space. like where exactly we're dropping the data off, iykyk πdataβ the data to be written. this is the payload bestie, the whole reason we're here π
β¨ DESCRIPTION β¨
so what she does is: she writes 16 bits of data to the specified offset within the RIO device's configuration space. that's the tea β and it's literally that simple. no drama, no hidden catches, just 16 bits going exactly where you tell them to go π
bestie reminder: offset is measured into the device's configuration space, so make sure you're pointing at the right spot π―
π SEE ALSO π
first up, the kernel file where this all lives:
./include/linux/rio_drv.h
and then the whole friend group, in order, because we don't skip anyone in this house π«Ά:
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_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_get_drvdata(9)rio_set_drvdata(9)
mwah π that's the page! this icon ships from the kernel directory ./include/linux and it's stamped October 2026 β go forth and write those 16 bits, bestie, you're gonna slay π₯
π¦ 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