Skip to content

Implement /proc/built-in file similar to /proc/modules

Kirill Tkhai linux-kbuild linux-modules lkml 1 version In review

Get series with b4
b4 am 20140914100545.3745.23394.stgit@localhost

Versions newest first

  1. v1 Latest3 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kbuild: Make targets names tree-wide unique on x86drivers/acpi/acpica/Makefile drivers/pnp/pnpacpi/Makefile init/Makefile+28 -232 replies
2/3core: Save list of built-in drivers namesinclude/asm-generic/vmlinux.lds.h scripts/Makefile.build+13 -40 replies
3/3core: create /proc/built-in file to show the list of built-in driversfs/proc/Makefile fs/proc/builtin.c+71 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

This series implements a possibility to show the list of built-in drivers to userspace. The names of drivers will be the same as when they are modules. So, if your system has "loop" driver then it appears either in /proc/modules or in /proc/built-in and userspace will be able to know about this.

Now this is impossible. The only way to get kernel configuration is /proc/config.gz, but CONFIG_* names can change from time to time. Module names are more or less standardized.

---

Kirill Tkhai (3):
kbuild: Make targets names tree-wide unique on x86
core: Save list of built-in drivers names
core: create /proc/built-in file to show the list of built-in drivers

 drivers/acpi/acpica/Makefile      |   28 +++++++--------
 drivers/pnp/pnpacpi/Makefile      |    4 +-
 fs/proc/Makefile                  |    1 +
 fs/proc/builtin.c                 |   70 +++++++++++++++++++++++++++++++++++++
 include/asm-generic/vmlinux.lds.h |    3 ++
 init/Makefile                     |   19 ++++++----
 scripts/Makefile.build            |   14 +++++--
 7 files changed, 112 insertions(+), 27 deletions(-)
 create mode 100644 fs/proc/builtin.c

--