iio_dummy_write_raw(9)
β¨ NAME β¨
okay so this is the iio_dummy_write_raw(9) page from the Kernel API Manual, and it's literally the manual for iio_dummy_write_raw β the data write function. no cap, that's the whole name vibe π
πΈ SYNOPSIS πΈ
bestie, here's the signature, copied exactly because we do not mess with code:
int iio_dummy_write_raw (struct iio_dev *indio_dev , struct
iio_chan_spec const *chan , int val , int val2 , long mask );
π ARGUMENTS π
indio_devβ thestruct iio_devassociated with this device instance π«Άchanβ the channel whose data is to be written β¨valβ first element of value to set (typicallyINT) πval2β second element of value to set (typicallyMICRO) πmaskβ what we actually want to write as per theinfo_mask_*iniio_chan_specπ
π¦ DESCRIPTION π¦
heads up, bestie, this is the caveat part and it matters:
Note that all raw writes are assumed IIO_VAL_INT and info mask elements are assumed to be IIO_INT_PLUS_MICRO unless the callback write_raw_get_fmt in struct iio_info is provided by the driver. literally iconic behavior, but also literally the rule π
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/dummy/iio_simple_dummy.c struct iio_dummy_accel_calibscale(9), iio_dummy_read_raw(9), iio_dummy_init_device(9), iio_dummy_probe(9), iio_dummy_remove(9) β go read these too, iykyk π§
okay bye bestie π this one's from ./drivers/iio/dummy, dated October 2026, and it's the iio_dummy_write_raw(9) manual. mwah! π
π¦ 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