From 58438d6fa97b00c4c86aa130869598229e92c267 Mon Sep 17 00:00:00 2001 From: Jon Masters Date: Tue, 25 May 2010 14:53:06 -0400 Subject: [PATCH] depmod: add some comments to the code Some comments I was working on recently. More coming later. Signed-off-by: Jon Masters --- depmod.c | 11 ++++++----- depmod.h | 2 ++ 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 , and others. - (C) 2002 Rusty Russell IBM Corporation +/* + * New simplified depmod without backwards compat stuff and not + * requiring ksyms. + * + * (C) 2010 Jon Masters , 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 */ -- 2.11.4.GIT