From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 04 Mar 2006 00:51:32 +0000 Subject: Re: How to check if driver is in-built or module? Message-Id: <20060304005132.GA27526@kroah.com> List-Id: References: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> In-Reply-To: <1141418150.4408a8a625721@cs1.alpha12.l-secure.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Mar 03, 2006 at 10:35:50PM +0200, juuso.alasuutari@tamperelainen.org wrote: > Hello. This is my first post on this list, and I hope I'm not asking something > that's already been dealt with. (I searched the docs and this list before > posting.) > > How can I tell udev to modprobe only if exists and hasn't been > compiled in the kernel? In my experience modules are visible to udev only when > and after they are loaded, which makes finding a solution to my problem a bit > of a paradox. Look in /sys/module/ That will have the module name if the module is loaded _or_ if the module is built into the kernel. If it's not there, then it should be safe to load it. Or you can always just try to load the thing, as if it's already in the kernel built in, it will not be present in the tree as a module. Hope this helps, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&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