public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2]  sysctl: refactor ctl_table creation and change extra{1,2} type
@ 2026-02-07 20:35 wen.yang
  2026-02-07 20:35 ` [RFC PATCH v2 1/2] sysctl: introduce SYSCTL_ENTRY() helper macro wen.yang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: wen.yang @ 2026-02-07 20:35 UTC (permalink / raw)
  To: Joel Granados; +Cc: linux-kernel, Wen Yang

From: Wen Yang <wen.yang@linux.dev>

This series introduces macros to centralize ctl_table initialization,
preparing for future type changes to extra1/extra2 fields.

Following Joel's suggestion [1], we start with helpers that work for all
existing patterns before making invasive changes.


[1] https://lore.kernel.org/all/sytyqb3ajm6ysoifwp57ga7gzlnzodhdsbgizbn3hqnlwytn5a@pbscftrq2qwl/
[2] https://sysctl-dev-rtd.readthedocs.io/en/latest/notes/ctltable_entry_macro.html#table-entry-macro


Wen Yang (2):
  sysctl: introduce SYSCTL_ENTRY() helper macro
  sysctl: convert kernel/sysctl-test.c to use SYSCTL_TBL_ENTRY()

 include/linux/sysctl.h | 131 ++++++++++++++++++++++++++++++++++++++
 kernel/sysctl-test.c   | 139 ++++++++++++-----------------------------
 2 files changed, 171 insertions(+), 99 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-02-19 10:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-07 20:35 [RFC PATCH v2 0/2] sysctl: refactor ctl_table creation and change extra{1,2} type wen.yang
2026-02-07 20:35 ` [RFC PATCH v2 1/2] sysctl: introduce SYSCTL_ENTRY() helper macro wen.yang
2026-02-19 10:33   ` Joel Granados
2026-02-07 20:35 ` [RFC PATCH v2 2/2] sysctl: convert kernel/sysctl-test.c to use SYSCTL_TBL_ENTRY() wen.yang
2026-02-19  8:59 ` [RFC PATCH v2 0/2] sysctl: refactor ctl_table creation and change extra{1,2} type Joel Granados

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