The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: Does /sys/module/foo reflect external module name?
Date: Sun, 29 Jan 2006 19:14:47 +0300	[thread overview]
Message-ID: <200601291914.48318.arvidjaar@mail.ru> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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)?

TIA

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD3On4R6LMutpd94wRAiAxAJ9859hlkCu9BpTmry+82fuCDeJoJQCfQ5cx
DTOPjNg3P6n8zyH2rthS4yE=
=D+H5
-----END PGP SIGNATURE-----

             reply	other threads:[~2006-01-29 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-29 16:14 Andrey Borzenkov [this message]
2006-01-29 20:26 ` Does /sys/module/foo reflect external module name? Greg KH
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=200601291914.48318.arvidjaar@mail.ru \
    --to=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