From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christian Gmeiner" Date: Sat, 05 Jun 2004 00:30:33 +0000 Subject: Re: Coding problem with sysfs Message-Id: <000a01c44a95$8edeb8c0$0600a8c0@blackbox> List-Id: References: <002c01c44883$2717bfc0$0600a8c0@blackbox> In-Reply-To: <002c01c44883$2717bfc0$0600a8c0@blackbox> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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