proc-cmdline: introduce PROC_CMDLINE_TRUE_WHEN_MISSING

This commit is contained in:
Mike Yuan
2023-08-13 12:52:15 +08:00
parent f7590e3cb4
commit 97d5f09bd2
3 changed files with 13 additions and 8 deletions
+1
View File
@@ -10,6 +10,7 @@ typedef enum ProcCmdlineFlags {
PROC_CMDLINE_VALUE_OPTIONAL = 1 << 1, /* the value is optional (for boolean switches that can omit the value) */
PROC_CMDLINE_RD_STRICT = 1 << 2, /* ignore this in the initrd */
PROC_CMDLINE_IGNORE_EFI_OPTIONS = 1 << 3, /* don't check systemd's private EFI variable */
PROC_CMDLINE_TRUE_WHEN_MISSING = 1 << 4, /* default to true when the key is missing for bool */
} ProcCmdlineFlags;
typedef int (*proc_cmdline_parse_t)(const char *key, const char *value, void *data);