diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-20 01:56:13 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-20 01:56:13 +0400 |
commit | 98a38a5d60a6e79eaad7f4a9b68cc1bd306ac5c0 (patch) | |
tree | bc6e761e7ead6b877c28abe908eaf9745c4f8627 /include/linux/bsearch.h | |
parent | 7663164f2619e37a1dcad59383e2fcf8c5194107 (diff) | |
parent | f721a465cddbe7f03e6cd2272008da558cf93818 (diff) | |
download | linux-98a38a5d60a6e79eaad7f4a9b68cc1bd306ac5c0.tar.xz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
params.c: Use new strtobool function to process boolean inputs
debugfs: move to new strtobool
Add a strtobool function matching semantics of existing in kernel equivalents
modpost: Update 64k section support for binutils 2.18.50
module: Use binary search in lookup_symbol()
module: Use the binary search for symbols resolution
lib: Add generic binary search function to the kernel.
module: Sort exported symbols
module: each_symbol_section instead of each_symbol
module: split unset_section_ro_nx function.
module: undo module RONX protection correctly.
module: zero mod->init_ro_size after init is freed.
minor ANSI prototype sparse fix
module: reorder kparam_array to remove alignment padding on 64 bit builds
module: remove 64 bit alignment padding from struct module with CONFIG_TRACE*
module: do not hide __modver_version_show declaration behind ifdef
module: deal with alignment issues in built-in module versions
Diffstat (limited to 'include/linux/bsearch.h')
-rw-r--r-- | include/linux/bsearch.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/bsearch.h b/include/linux/bsearch.h new file mode 100644 index 000000000000..90b1aa867224 --- /dev/null +++ b/include/linux/bsearch.h @@ -0,0 +1,9 @@ +#ifndef _LINUX_BSEARCH_H +#define _LINUX_BSEARCH_H + +#include <linux/types.h> + +void *bsearch(const void *key, const void *base, size_t num, size_t size, + int (*cmp)(const void *key, const void *elt)); + +#endif /* _LINUX_BSEARCH_H */ |