aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/devctl.h
blob: b72cd28dfce8398fcbdd5b2bf19942196c6d6d59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*-
 * Copyright 2020 M. Warner Losh <imp@FreeBSD.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#ifndef _SYS_DEVCTL_H_
#define _SYS_DEVCTL_H_

#ifdef _KERNEL
/**
 * devctl hooks.  Typically one should use the devctl_notify
 * hook to send the message.
 */
bool devctl_process_running(void);
void devctl_notify(const char *__system, const char *__subsystem,
    const char *__type, const char *__data);
struct sbuf;
void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src);
#endif

#endif /* _SYS_DEVCTL_H_ */