iio_dummy_write_raw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the struct iio_dev associated with this device instance 🫢
  • chan β€” the channel whose data is to be written ✨
  • val β€” first element of value to set (typically INT) πŸ‘‘
  • val2 β€” second element of value to set (typically MICRO) πŸŽ€
  • mask β€” what we actually want to write as per the info_mask_* in iio_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