All of lore.kernel.org
 help / color / mirror / Atom feed
* udev and w1/wire
@ 2013-10-05 10:21 Max Hille
  2013-10-05 13:19 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Max Hille @ 2013-10-05 10:21 UTC (permalink / raw)
  To: linux-hotplug

I want to use a 1-wire slave device from user space.

My first approach is to get a symlink like /dev/wire-slave with user
read/write permissions. I have tried this with udev rules but didn't
get it to work so far.

Some additional information about the wire kernel module:
Module name: wire (available in stock Ubuntu 13,04)
Subsystem: w1
creates the following in /sys/:
devices/w1_bus_master1/81-XXXXXXXXXXXX/
where the 81 is a slave device specific identifier. Inside that
directory is a file(?) named "rw" which I can (successfully) use to
communicate with the onewire device.

I have already managed to write a udev rule which sets the permissions
on this "rw" so I can use it from user space. But then I have my
program to search through /sys/ to access the device which does not
seems to be the right way (eg. did not work on my friends Linux Mint).

If it is not possible to create a device node in /dev, I'd be thankful
for alternative solutions.

-- Max

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-05 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 10:21 udev and w1/wire Max Hille
2013-10-05 13:19 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.