Make devctl_queue_data_f and devctl_queue_data private.

I thought we'd need them, but nobody is using them. Narrow the interface. This
will facilitate changes in the future.
This commit is contained in:
Warner Losh
2020-08-20 17:14:33 +00:00
parent 5e79303ba1
commit c9133e6c04
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -607,7 +607,7 @@ devctl_process_running(void)
* assumed that @p data is properly formatted. It is further assumed
* that @p data is allocated using the M_BUS malloc type.
*/
void
static void
devctl_queue_data_f(char *data, int flags)
{
struct dev_event_info *n1 = NULL, *n2 = NULL;
@@ -653,7 +653,7 @@ devctl_queue_data_f(char *data, int flags)
return;
}
void
static void
devctl_queue_data(char *data)
{
devctl_queue_data_f(data, M_NOWAIT);
+1 -4
View File
@@ -156,16 +156,13 @@ struct devreq {
/**
* devctl hooks. Typically one should use the devctl_notify
* hook to send the message. However, devctl_queue_data is also
* included in case devctl_notify isn't sufficiently general.
* hook to send the message.
*/
boolean_t devctl_process_running(void);
void devctl_notify_f(const char *__system, const char *__subsystem,
const char *__type, const char *__data, int __flags);
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);
struct sbuf;
void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src);