From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Sun, 29 Jan 2006 15:47:14 +0000 Subject: Re: cm4000 device creation Message-Id: <200601291847.18061.arvidjaar@mail.ru> List-Id: References: <1138536160.6509.5.camel@otto.ehbuehl.net> In-Reply-To: <1138536160.6509.5.camel@otto.ehbuehl.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 29 January 2006 16:33, Joachim Breitner wrote: > Hi, > > Am Sonntag, den 29.01.2006, 16:21 +0300 schrieb Andrey Borzenkov: > > > Thanks for the hint. What would you recommend as an intermediate > > > solution. A udev rule for the card reader with "RUN > > > mknod ... /dev/cmm0"? > > > > well, you have to know major allocated by kernel and it is hard without > > node appearing in sysfs (cm4000_cs does not request any specific major). > actually it is hard to get minor. For major you can use /proc/devices: major=$(awk '$2 = "cmm" {print $1}' /proc/devices) mknod /dev/cmm0 c $major 0 you do not even need udev rule for that, it can be run as postinstall from modprobe. - -andrey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD3OOFR6LMutpd94wRAinIAJwN0xe2wKw0st+50u2GBJky/JSU6QCeIhEF YKbO5F4GEGdesqJGJVzS8ks=Bx1A -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ 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