From: "Christian Gmeiner" <christian@visual-page.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: Coding problem with sysfs
Date: Sat, 05 Jun 2004 00:30:33 +0000 [thread overview]
Message-ID: <000a01c44a95$8edeb8c0$0600a8c0@blackbox> (raw)
In-Reply-To: <002c01c44883$2717bfc0$0600a8c0@blackbox>
Hi Greg,
> On Wed, Jun 02, 2004 at 11:21:53AM +0200, Christian Gmeiner wrote:
> > /sys/class/dvb/adapter0:
> > demux0 dvr0 frontend frontend0 name net0
>
> The 'dev' file needs to be here. That's the problem.
Oh i forgot something - my fault:
vdr root # ls -Rl /sys/class/dvb
/sys/class/dvb:
total 0
drwxr-xr-x 5 root root 0 Jun 5 02:22 adapter0
/sys/class/dvb/adapter0:
total 0
drwxr-xr-x 2 root root 0 Jun 5 02:22 demux0
drwxr-xr-x 2 root root 0 Jun 5 02:22 dvr0
-r--r--r-- 1 root root 4096 Jun 5 02:22 frontend
-r--r--r-- 1 root root 4096 Jun 5 02:22 name
drwxr-xr-x 2 root root 0 Jun 5 02:22 net0
/sys/class/dvb/adapter0/demux0:
total 0
-r--r--r-- 1 root root 4096 Jun 5 02:22 adap
-r--r--r-- 1 root root 4096 Jun 5 02:22 dev
/sys/class/dvb/adapter0/dvr0:
total 0
-r--r--r-- 1 root root 4096 Jun 5 02:22 adap
-r--r--r-- 1 root root 4096 Jun 5 02:22 dev
/sys/class/dvb/adapter0/net0:
total 0
-r--r--r-- 1 root root 4096 Jun 5 02:22 adap
-r--r--r-- 1 root root 4096 Jun 5 02:22 dev
Frontend is missing, but thats, because i switched to new cvs, wicht seams
to have some problems with
my frontend.
>
> What happens if you run
> udevtest /sys/class/dvb/adapter0
vdr root # udevtest /sys/class/dvb/adapter0
version 025
looking at '/class/dvb/adapter0'
configured rule in '/etc/udev/rules.d//10-myrule.rules' at line 2 applied,
'adapter0' becomes 'dvb/adapter%n/%k'
creating device node '/dev/dvb/adapter0/adapter0', major = '250', minor '7', mode = '020660', uid = '0', gid = '27'
>
This is my udev rule:
# dvb devices
SYSFS{adap}="adapter[0-9]*", NAME="dvb/adapter%n/%k"
And this is the result in /dev:
vdr root # ls -Rl /dev/dvb
/dev/dvb:
total 0
drwxr-xr-x 2 root root 0 Jun 5 02:22 adapter0
/dev/dvb/adapter0:
total 0
crw-rw---- 1 root video 250, 7 Jun 5 02:22 adapter0
crw-rw---- 1 root video 250, 4 Jun 5 02:22 demux0
crw-rw---- 1 root video 250, 5 Jun 5 02:22 dvr0
crw-rw---- 1 root video 250, 7 Jun 5 02:22 net0
And here is the problem:
vdr root # ls /dev/dvb/adapter0/demux0
/dev/dvb/adapter0/demux0
vdr root # cat /dev/dvb/adapter0/demux0
cat: /dev/dvb/adapter0/demux0: No such device or address
with devfs:
cat /dev/dvb/adapter0/demux0 -> invaild argument
So i can not work/access the device via sysfs :(
Thanks,
Christian
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-06-05 0:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 9:21 Coding problem with sysfs Christian Gmeiner
2004-06-04 21:05 ` Greg KH
2004-06-05 0:30 ` Christian Gmeiner [this message]
2004-06-05 15:40 ` Greg KH
2004-06-05 16:23 ` Christian Gmeiner
2004-06-07 23:38 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2004-06-01 22:19 Christian Gmeiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000a01c44a95$8edeb8c0$0600a8c0@blackbox' \
--to=christian@visual-page.de \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.