aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Masters <jcm@jonmasters.org>2010-05-25 14:53:06 -0400
committerJon Masters <jcm@jonmasters.org>2010-05-25 14:53:06 -0400
commit58438d6fa97b00c4c86aa130869598229e92c267 (patch)
tree5aa6a5efae1d606340c5c958f776a2b6523dc9ba
parent7cb5bd86557dac8beb1371af50c9b6df9c34a57a (diff)
downloadmodule-init-tools-58438d6fa97b00c4c86aa130869598229e92c267.tar.gz
depmod: add some comments to the code
Some comments I was working on recently. More coming later. Signed-off-by: Jon Masters <jcm@jonmasters.org>
-rw-r--r--depmod.c11
-rw-r--r--depmod.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/depmod.c b/depmod.c
index 697477f..89e4c43 100644
--- a/depmod.c
+++ b/depmod.c
@@ -1,8 +1,9 @@
-/* New simplified depmod without backwards compat stuff and not
- requiring ksyms.
-
- (C) 2010 Jon Masters <jcm@jonmasters.org>, and others.
- (C) 2002 Rusty Russell IBM Corporation
+/*
+ * New simplified depmod without backwards compat stuff and not
+ * requiring ksyms.
+ *
+ * (C) 2010 Jon Masters <jcm@jonmasters.org>, and others.
+ * (C) 2002 Rusty Russell IBM Corporation
*/
#define _GNU_SOURCE /* asprintf */
diff --git a/depmod.h b/depmod.h
index 7678241..c3f08d1 100644
--- a/depmod.h
+++ b/depmod.h
@@ -9,6 +9,7 @@
struct module;
+/* This is not the same as the module struct in the kernel built .ko files */
struct module
{
/* Next module in list of all modules */
@@ -27,6 +28,7 @@ struct module
/* Tables extracted from module by ops->fetch_tables(). */
struct module_tables tables;
+ /* Module operations, endian conversion required, etc. */
struct elf_file *file;
char *basename; /* points into pathname */