LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-12-2017, 08:02 AM   #1
Pieter Cardoen
LQ Newbie
 
Registered: Apr 2017
Posts: 3

Rep: Reputation: Disabled
Question udev rules for iio devices


Dear

I am trying to define udev rules for iio devices. For GPIO devices I do this:

ACTION=="add", SUBSYSTEM=="gpio", KERNEL=="gpio26", PROGRAM+="/bin/sh -c 'mkdir -p /dev/gpio && ln -s /sys%p /dev/gpio/in_3'"

How do you handle iio devices in udev. I'm having multiple ADC channels which can be reached by i.e.:
/sys/bus/iio/devices/iio\:device0/in_voltage0_raw

Can someone help me to define a udev rule per analog input channel?

Thanks
Pieter
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
udev rules for /dev/mapper devices? usao Linux - Server 2 09-05-2016 11:38 AM
What happaned to /etc/udev/rules.d/75-network-devices.rules ? czezz Slackware 13 04-29-2013 07:40 AM
[SOLVED] Mounting USB-storage devices using udev-rules markush Slackware 6 10-11-2012 06:25 PM
VirtualBox USB devices history effect: fstab and udev rules catkin Slackware 3 11-07-2010 09:48 AM
Udev Rules To Differentiate Between Multiple Identical Devices anon185 Linux - General 15 08-26-2010 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration