From 6d76013381ed28979cd122eb4b249a88b5e384fa Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 16 Oct 2007 23:26:40 -0700 Subject: Add /sys/module/name/notes This patch adds the /sys/module//notes/ magic directory, which has a file for each allocated SHT_NOTE section that appears in .ko. This is the counterpart for each module of /sys/kernel/notes for vmlinux. Reading this delivers the contents of the module's SHT_NOTE sections. This lets userland easily glean any detailed information about that module's build that was stored there at compile time (e.g. by ld --build-id). Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/module.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux/module.h') diff --git a/include/linux/module.h b/include/linux/module.h index 5523e10fb2f0..642f325e4917 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -343,6 +343,9 @@ struct module /* Section attributes */ struct module_sect_attrs *sect_attrs; + + /* Notes attributes */ + struct module_notes_attrs *notes_attrs; #endif /* Per-cpu data. */ -- cgit v1.2.3-59-g8ed1b