aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-06-27 04:10:48 +0000
committerWarner Losh <imp@FreeBSD.org>2018-06-27 04:10:48 +0000
commitab531b882577f707cd2a6ede1ef80720b53475c3 (patch)
tree6ca7aee553ac853e8cb5f60985c7afbe9ed0029a /sys/sys/bus.h
parentff6197771acff4190667cf6de5a4b66b2c849d4b (diff)
downloadsrc-ab531b882577f707cd2a6ede1ef80720b53475c3.tar.gz
src-ab531b882577f707cd2a6ede1ef80720b53475c3.zip
Create new devctl_safe_quote_sb to copy a source string into a struct
sbuf to make it safe. Callers are expected to add the " " around it, if needed. Sponsored by: Netflix Differential Review: https://reviews.freebsd.org/D16026
Notes
Notes: svn path=/head/; revision=335689
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index c5305fee41d9..b82e958df64c 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -156,7 +156,9 @@ void devctl_notify(const char *__system, const char *__subsystem,
const char *__type, const char *__data);
void devctl_queue_data_f(char *__data, int __flags);
void devctl_queue_data(char *__data);
-void devctl_safe_quote(char *__dst, const char *__src, size_t len);
+void devctl_safe_quote(char *__dst, const char *__src, size_t __len);
+struct sbuf;
+void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src);
/**
* Device name parsers. Hook to allow device enumerators to map