From: Greg KH <greg@kroah.com>
To: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Does /sys/module/foo reflect external module name?
Date: Sun, 29 Jan 2006 12:26:58 -0800 [thread overview]
Message-ID: <20060129202658.GA7139@kroah.com> (raw)
In-Reply-To: <200601291914.48318.arvidjaar@mail.ru>
On Sun, Jan 29, 2006 at 07:14:47PM +0300, Andrey Borzenkov wrote:
> Is it correct that /sys/module lists module *file* names (sans -_ confusion)?
> Is it possible to find out if module is built in or truly external? The goal
> is to automate initrd build by walking from /dev/root up and pulling in all
> modules. Now missing module may mean that it is built in or that it is really
> missing :) In my case:
>
> {pts/1}% for i in /sys/module/*
> for> do
> for> grep -q ${i:t} /proc/modules || echo $i
> for> done
> /sys/module/8250
> /sys/module/i8042
> /sys/module/md_mod
> /sys/module/psmouse
> /sys/module/tcp_bic
> {pts/1}% for i in $(lsmod | awk '{print $1}')
> do
> [[ -d /sys/module/$i ]] || echo $i
> done
> Module
>
> so it looks quite reliable up to built in modules. Is there any information
> that could be exported in sysfs (like "builtin" == 0|1)?
What would that be needed for? You can always just compare the list
with /proc/modules, right?
thanks,
greg k-h
next prev parent reply other threads:[~2006-01-29 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 16:14 Does /sys/module/foo reflect external module name? Andrey Borzenkov
2006-01-29 20:26 ` Greg KH [this message]
2006-01-30 4:05 ` Andrey Borzenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060129202658.GA7139@kroah.com \
--to=greg@kroah.com \
--cc=arvidjaar@mail.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox