summaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorDave Young2014-08-14 11:15:27 +0200
committerMatt Fleming2014-10-03 19:40:58 +0200
commit6ccc72b87b83ece31c2a75bbe07f440b0378f7a9 (patch)
tree777aaf2d1e492963dc65bff61c236edb31532650 /include/linux/kernel.h
parentefi: Move noefi early param code out of x86 arch code (diff)
downloadkernel-qcow2-linux-6ccc72b87b83ece31c2a75bbe07f440b0378f7a9.tar.gz
kernel-qcow2-linux-6ccc72b87b83ece31c2a75bbe07f440b0378f7a9.tar.xz
kernel-qcow2-linux-6ccc72b87b83ece31c2a75bbe07f440b0378f7a9.zip
lib: Add a generic cmdline parse function parse_option_str
There should be a generic function to parse params like a=b,c Adding parse_option_str in lib/cmdline.c which will return true if there's specified option set in the params. Also updated efi=old_map parsing code to use the new function Signed-off-by: Dave Young <dyoung@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 95624bed87ef..f66427ef0628 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -407,6 +407,7 @@ int vsscanf(const char *, const char *, va_list);
extern int get_option(char **str, int *pint);
extern char *get_options(const char *str, int nints, int *ints);
extern unsigned long long memparse(const char *ptr, char **retptr);
+extern bool parse_option_str(const char *str, const char *option);
extern int core_kernel_text(unsigned long addr);
extern int core_kernel_data(unsigned long addr);