From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simone Gotti Date: Tue, 13 Apr 2004 17:06:14 +0000 Subject: Re: Little script for ISAPNP hotplug Message-Id: <200404131906.14454.simone.gotti@email.it> List-Id: References: <200404092044.54429.simone.gotti@email.it> In-Reply-To: <200404092044.54429.simone.gotti@email.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tuesday 13 April 2004 17:47, Alexander E. Patrakov wrote: > Simone Gotti wrote: > >No I'm using the vendor and function values but I didn't know that there > > can be more the 1 value of vendor and function for every line of > >modules.isapnpmap. Now I've changed the script, it's attached. > > I see the change in isapnp.agent. It is probably still wrong: I don't > see the equivalent of the following lines: > > rawvendor=`echo $ID | cut -b8-10` > rawfunction=`echo $ID | cut -b11-14` > This is the contents of my /proc/bus/pnp/devices. It's for 2.6 kernels (I don't use 2.4 anymore). I think that probably it's quite different from the 2.4 version. For this reason I have used a different parsing function. I have to try a 2.4 kernel but like I've said in the last compiled I can't found the /proc/bus/isapnp directory... In 2.6 like you can see in isapnp.rc I prefer the use of sysfs. # cat /proc/bus/pnp/devices 00 0000d041 08:00:00 0003 01 0002d041 08:01:00 0003 02 0001d041 08:02:01 0003 03 000bd041 08:03:00 0003 04 0303d041 09:00:00 000b 05 0008d041 08:80:00 0003 06 040cd041 0b:01:00 0003 07 010cd041 05:00:00 0003 08 020cd041 08:80:00 0003 09 030ad041 06:04:00 0003 0a 130fd041 09:02:00 0180 0b 020cd041 08:80:00 0003 0c 0105d041 07:00:02 0180 0d 0007d041 01:02:00 0003 0e 0004d041 07:01:00 0180 10 0105d041 07:00:02 0180 11 06b0d041 04:01:00 0180 12 2fb0d041 04:01:00 0180 > Also, I don't see any attempt to follow "0xffff matches everything" rule. I didn't know that this was a rule. If you say that it's mandatory to check for this I'll do it! Thanks! Bye! -- Simone Gotti ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ 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