From: Fernando Pablo Lopez-Lezcano Subject: Re: [lack of] dynamic detection/loading of modules Date: 04 Mar 2003 19:05:58 -0800 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <1046833558.6760.255.camel@cmn37.Stanford.EDU> References: <1046378100.22559.23.camel@cmn37.Stanford.EDU> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1046378100.22559.23.camel@cmn37.Stanford.EDU> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Paul Davis Cc: Ivica Bukvic , alsa-devel@lists.sourceforge.net, alsa-user@lists.sourceforge.net, Fernando Pablo Lopez-Lezcano List-Id: alsa-devel@alsa-project.org > > >lists about this and to do it cleanly it would be nice to have available > > >in /proc/asound the list of modules currently loaded. That is not > > >available today (I think Takashi said he might add that)." > > > > cat /proc/modules | grep '^snd' I wrote this: > This relies in an (AFAIK) unenforceable convention (all modules that > start with "snd" are alsa modules). I think the information has to come > from within the alsa driver, or from some place that actually knows that > the module _is_ an alsa module. IMHO a name is not enough. True, but I was wrong nevertheless. For the proposed use your solution works fine because we already know the name of the alsa module we want to check for (DOH!!!). -- Fernando ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com