From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 07 Jun 2004 23:38:20 +0000 Subject: Re: Coding problem with sysfs Message-Id: <20040607233820.GA11689@kroah.com> 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 On Sat, Jun 05, 2004 at 06:23:25PM +0200, Christian Gmeiner wrote: > > > > Anyway, how are you putting struct class_device structures into such a > > tree? We don't currently allow parents of them in the kernel. Are you > > using basic kobjects here? > Yep i am using kobjects to this. I need this structure, because there can be > more than one adapter. > At the moment i able to get some infos like: > vdr root # cat /sys/class/dvb/adapter0/name > KNC1 DVB-S > vdr root # cat /sys/class/dvb/adapter0/frontend > STV0299/TSA5059/SL1935 based That's fine. It's the subdirectories underneath the /sys/class/dvb/adapter0/ directory that will not work. You are attaching class_device structures by messing with the kobject parent pointer. Sorry, but we don't support that just yet in the driver model. Stick with a 1 level deep directory for device that have a "dev" file, or send in patches to the driver core :) > > What hotplug events get generated when you create your "demux0" and > > others devices? > How can i check the hotplug events? I have here an PCI-DVB card. Enable DEBUG for the lib/kobject.c file. That will spit out the hotplug events to the syslog debug file. Make sure when your device is added (modprobed or whatever) the hotplug event is getting generated. If so, udev should pick it up if it is installed properly. Good luck. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ 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