From mboxrd@z Thu Jan 1 00:00:00 1970 From: Terry Barnaby Date: Fri, 03 Jun 2005 13:24:44 +0000 Subject: Question on how to get custom kernel module to work with udev Message-Id: <42A05A1C.80101@beam.ltd.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi, I have a custom kernel device driver module for a PCI hardware device that = I would like to integrate with UDEV to get UDEV to generate the /dev nodes. I am using Fedora Core 3. I have not been able to make this work so far, so any ideas ? When the device is loaded /sbin/hotplug is called with the environment: export SUBSYSTEM=3Ddrivers export DEVPATH=3D/bus/pci/drivers/admxrc2 export PATH=3D/sbin:/bin:/usr/sbin:/usr/bin export ACTION=ADd export PWD=3D/ export SHLVL=3D1 export HOME=3D/ export SEQNUMx5 export _=3D/bin/env I have added a file /etc/udev/rules.d/40-admxrc.rules with the contents: KERNEL=3D"admxrc2", NAME=3D"admxrcii%k" SYSFS{vendor}=3D"0x4144", NAME=3D"admxrciii%k" The two line are alternate versions for testing. I have tried setting the udev config parameter "udev_log" to "yes" and do get logs when other drivers are loaded. However when I do a "rmmod admxrc2; modprobe admxrc2" no log information is printed. 1. Is there a way to get more debug information out of udev ? 2. Is there some special thing I need to do in the device module ? 3. Is there something wround with the configuration ? Cheers Terry ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 _______________________________________________ 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