diff options
author | Jon Masters <jcm@jonmasters.org> | 2010-05-25 14:53:06 -0400 |
---|---|---|
committer | Jon Masters <jcm@jonmasters.org> | 2010-05-25 14:53:06 -0400 |
commit | 58438d6fa97b00c4c86aa130869598229e92c267 (patch) | |
tree | 5aa6a5efae1d606340c5c958f776a2b6523dc9ba | |
parent | 7cb5bd86557dac8beb1371af50c9b6df9c34a57a (diff) | |
download | module-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.c | 11 | ||||
-rw-r--r-- | depmod.h | 2 |
2 files changed, 8 insertions, 5 deletions
@@ -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 */ @@ -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 */ |