[PATCH 0/1] add support for enum module parameters

From: Jani Nikula
Date: Thu Apr 14 2022 - 08:30:44 EST


Hey, I've sent this before, ages ago, but haven't really followed
through with it. I still think it would be useful for many scenarios
where a plain number is a clumsy interface for a module param.

Thoughts?


BR,
Jani.

Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>

Jani Nikula (1):
module: add enum module parameter type to map names to values

include/linux/moduleparam.h | 64 +++++++++++++++++++++++++++++++++++++
kernel/params.c | 41 ++++++++++++++++++++++++
2 files changed, 105 insertions(+)

--
2.30.2