From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 02 Feb 2006 16:17:18 +0000 Subject: Re: How to create the nodes dynamically - simple char driver Message-Id: <20060202161718.GA2121@vrfy.org> List-Id: References: <3AEC1E10243A314391FE9C01CD65429B28C755@mail.esn.co.in> In-Reply-To: <3AEC1E10243A314391FE9C01CD65429B28C755@mail.esn.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Feb 02, 2006 at 09:59:35AM -0600, Linas Vepstas wrote: > On Thu, Feb 02, 2006 at 03:43:25PM +0530, Srinivas G. was heard to remark: > > My question is: > > Is there any way to create the nodes automatically after restarting the > > system if the module exists? > > udev is erasing the files. /dev is on tmpfs, that does not survice a reboot. > On boot, it will copy any static device > nodes from /etc/udev (or somewhere like that) to /dev. It is /lib/udev/devices/. > The "correct" thing to do would have been to write the appropriate udev > rule, but since this sounds like a prototype board, a hack like > /etc/udev might be approrate. Huh no, both is definitely not "correct". Just use the kernel driver core functions and register your class device with the right name and udev will create the node automatically when the device shows up. Kay ------------------------------------------------------- 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