Pedru
Pedru

Reputation: 1460

IIO expose direct values to the user on Nvidia Jetson

I'm fairly new to the Linux kernel development and very new to IIO, I'm confused about the IIO interface.

I see that with IIO there are two interfaces for the user:

  1. Expose values in sysfs (done with INDIO_DIRECT_MODE), where each channel can be read/written individually.
  2. Expose buffered values from /dev/iio:deviceN where channels values are packed into a sequence of bytes.

I'm writing a driver on Nvidia Jetson for a mechanical device that can move, in the driver there's a device with two channels:

I would like to expose those value to the user directly (no need for sampling, just read/write values as the user reads/writes), so something like option (1.) above, but the sysfs files that are created belong to root:root and their permission is 0600.

Upvotes: 0

Views: 56

Answers (0)

Related Questions