Live Patching
 help / color / mirror / Atom feed
* [PATCH] module.h: Document klp_modinfo struct members
@ 2023-02-02 18:29 Marcos Paulo de Souza
  2023-02-02 19:02 ` Luis Chamberlain
  0 siblings, 1 reply; 3+ messages in thread
From: Marcos Paulo de Souza @ 2023-02-02 18:29 UTC (permalink / raw)
  To: mcgrof, linux-modules, linux-kernel, live-patching; +Cc: Marcos Paulo de Souza

The struct members description can be found on
Documentation/livepatch/module-elf-format.rst, but for a developer it's
easier to search for such information looking at the struct definition.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---
 include/linux/module.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index ec61fb53979a..4fbe06b29b39 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -353,10 +353,10 @@ struct mod_kallsyms {
 
 #ifdef CONFIG_LIVEPATCH
 struct klp_modinfo {
-	Elf_Ehdr hdr;
-	Elf_Shdr *sechdrs;
-	char *secstrings;
-	unsigned int symndx;
+	Elf_Ehdr hdr;		/* Elf header */
+	Elf_Shdr *sechdrs;	/* Section header table */
+	char *secstrings;	/* String table for the section headers */
+	unsigned int symndx;	/* The symbol table section index */
 };
 #endif
 
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] module.h: Document klp_modinfo struct members
  2023-02-02 18:29 [PATCH] module.h: Document klp_modinfo struct members Marcos Paulo de Souza
@ 2023-02-02 19:02 ` Luis Chamberlain
  2023-02-02 19:07   ` Marcos Paulo de Souza
  0 siblings, 1 reply; 3+ messages in thread
From: Luis Chamberlain @ 2023-02-02 19:02 UTC (permalink / raw)
  To: Marcos Paulo de Souza; +Cc: linux-modules, linux-kernel, live-patching

On Thu, Feb 02, 2023 at 03:29:50PM -0300, Marcos Paulo de Souza wrote:
> The struct members description can be found on
> Documentation/livepatch/module-elf-format.rst, but for a developer it's
> easier to search for such information looking at the struct definition.
> 
> Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>

Why not just embrace kdoc and then refer to it in the rst files?

  Luis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] module.h: Document klp_modinfo struct members
  2023-02-02 19:02 ` Luis Chamberlain
@ 2023-02-02 19:07   ` Marcos Paulo de Souza
  0 siblings, 0 replies; 3+ messages in thread
From: Marcos Paulo de Souza @ 2023-02-02 19:07 UTC (permalink / raw)
  To: Luis Chamberlain
  Cc: Marcos Paulo de Souza, linux-modules, linux-kernel, live-patching

On Thu, Feb 02, 2023 at 11:02:27AM -0800, Luis Chamberlain wrote:
> On Thu, Feb 02, 2023 at 03:29:50PM -0300, Marcos Paulo de Souza wrote:
> > The struct members description can be found on
> > Documentation/livepatch/module-elf-format.rst, but for a developer it's
> > easier to search for such information looking at the struct definition.
> > 
> > Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
> 
> Why not just embrace kdoc and then refer to it in the rst files?

Seems to be a very good idea Luis. I'll try to find some examples in our Docs
how this is done.

Thanks

> 
>   Luis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-02 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02 18:29 [PATCH] module.h: Document klp_modinfo struct members Marcos Paulo de Souza
2023-02-02 19:02 ` Luis Chamberlain
2023-02-02 19:07   ` Marcos Paulo de Souza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox