summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2014-08-14 17:15:27 +0800
committerMatt Fleming <matt.fleming@intel.com>2014-10-03 18:40:58 +0100
commit6ccc72b87b83ece31c2a75bbe07f440b0378f7a9 (patch)
tree777aaf2d1e492963dc65bff61c236edb31532650 /include/linux/kernel.h
parentb2e0a54a1296a91b800f316df7bef7d1905e4fd0 (diff)
downloadlinux-6ccc72b87b83ece31c2a75bbe07f440b0378f7a9.tar.gz
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);