From patchwork Thu Feb 2 18:29:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 52143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp414815wrn; Thu, 2 Feb 2023 11:00:18 -0800 (PST) X-Google-Smtp-Source: AK7set8eM4/91Wdy1fqCccZqT+/JAcVyaNPMsLXhxXVdQx3bYXMNlSHhKmhC8K2I76FoZQ9fPXPC X-Received: by 2002:a05:6a00:410d:b0:593:ea06:7fd with SMTP id bu13-20020a056a00410d00b00593ea0607fdmr7521688pfb.13.1675364418278; Thu, 02 Feb 2023 11:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675364418; cv=none; d=google.com; s=arc-20160816; b=K5r+Id6YtGeEeEu9+kepQq8iuz8DPgMflrwSP0HDL1QMy1pIOASUVZyyKZ+5p9yPUD aY3TggUbIPYyuCFAV4Bo6DLZYyfBYFYFsfOJJXtSoJhofJ6FRsfyXOsDj2LnQh56H5G4 NID1n9ULaNiiA76tzAwRXhKeYE9Ui0irQVEmaltkyupestTzhBDQtLRg/tVsHQhmIGnV SZcSHMel/nBirjkelg05OJ/JY/a3rrlhz42y90FiVIUR+KyS1ayuOrWVlcRrGrkxojfC k7BghSRf8AqRtDsaijGQgdar/67HM/NgDRdJb2pV5Z5Ffi2B4UVJxc7aobEkBeNFijfe 5muw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=G9113WeU1VCYSJZi9oEtZ3+Oiam89PAL+MkdMDPwLfg=; b=aTksyDlQsDbf09fS3/AHpwklfWtjJJgVTM6tDmzHRjYJeDgsYGu2C1F8A6cadpuKXe 0uekW5FAIXWm/kJtklZk4uYAnvR+niG57z08dClSrL5w5Dgz6Qcnk2WRZrpdBZH3/2lT BW3V3TYmGegQM5t4nCQxudjHWRoDimOh57CcsyYQLjaMKEnJ9hPVq4TEbWe04NLR3qLJ 97EkqmBWGXlacmpsSLDgsS1tRTZCd7sm9HT3gLY+T5VxM/NU4GCducakQkblhG2Fgj6s e6xCGhnNWU+8Ju2OjPDyiy6YOnUtn/w+BnlGp3nz3Vf5b025lB1UpJpzgCoxUpE9f6Pf hACQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UY5r4vu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a620543000000b0053e8d0c9909si42663pff.221.2023.02.02.11.00.04; Thu, 02 Feb 2023 11:00:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=UY5r4vu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbjBBSkN (ORCPT + 99 others); Thu, 2 Feb 2023 13:40:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbjBBSkL (ORCPT ); Thu, 2 Feb 2023 13:40:11 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DC326778F; Thu, 2 Feb 2023 10:39:38 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9DD4533E29; Thu, 2 Feb 2023 18:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1675362611; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=G9113WeU1VCYSJZi9oEtZ3+Oiam89PAL+MkdMDPwLfg=; b=UY5r4vu1NVauUoWSTnh1YYk6qQr4oISsGqpR92zda4mPqgQTkrnArnD9+XWFVaf5q6LsSd 6RSDlIoX3pdLbNNlx8AsgvYntH5wq+ZsQfyGlMOCz6gvbkHXKwHLF76BHz3cyMxVv6gUsj V1oCZL+YAcbQ2SnYjBaGDQMqMuqMfgg= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0D72D138E8; Thu, 2 Feb 2023 18:30:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oCgYMTEB3GOQPwAAMHmgww (envelope-from ); Thu, 02 Feb 2023 18:30:09 +0000 From: Marcos Paulo de Souza To: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Cc: Marcos Paulo de Souza Subject: [PATCH] module.h: Document klp_modinfo struct members Date: Thu, 2 Feb 2023 15:29:50 -0300 Message-Id: <20230202182950.10471-1-mpdesouza@suse.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756746920372549931?= X-GMAIL-MSGID: =?utf-8?q?1756746920372549931?= 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 --- 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