xref: /freebsd/sys/sys/devctl.h (revision 681ce946)
1 /*-
2  * Copyright 2020 M. Warner Losh <imp@FreeBSD.org>
3  *
4  * SPDX-License-Identifier: BSD-2-Clause
5  */
6 
7 #ifndef _SYS_DEVCTL_H_
8 #define _SYS_DEVCTL_H_
9 
10 #ifdef _KERNEL
11 /**
12  * devctl hooks.  Typically one should use the devctl_notify
13  * hook to send the message.
14  */
15 bool devctl_process_running(void);
16 void devctl_notify(const char *__system, const char *__subsystem,
17     const char *__type, const char *__data);
18 struct sbuf;
19 void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src);
20 #endif
21 
22 #endif /* _SYS_DEVCTL_H_ */
23