summaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-10-13 15:55:16 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:26 +0200
commitc8250381c8272a9828fdd353171727b154fbd296 (patch)
tree050650d45d87d430334939f0552deafbe36561f9 /include/acpi
parent45ff337a54c154680edf0c538e5c9eb4a2f862cc (diff)
downloadlinux-stable-c8250381c8272a9828fdd353171727b154fbd296.tar.gz
linux-stable-c8250381c8272a9828fdd353171727b154fbd296.tar.bz2
linux-stable-c8250381c8272a9828fdd353171727b154fbd296.zip
lib / string_helpers: introduce string_escape_mem()
This is almost the opposite function to string_unescape(). Nevertheless it handles \0 and could be used for any byte buffer. The documentation is supplied together with the function prototype. The test cases covers most of the scenarios and would be expanded later on. [akpm@linux-foundation.org: avoid 1k stack consumption] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: "John W . Linville" <linville@tuxdriver.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Joe Perches <joe@perches.com> Cc: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions