diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/subr_bus.c | 9 | ||||
| -rw-r--r-- | sys/sys/bus.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 5435a7c5f4a8..3e45743ffd6f 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -499,6 +499,15 @@ devpoll(struct cdev *dev, int events, d_thread_t *td) } /** + * @brief Return whether the userland process is running + */ +boolean_t +devctl_process_running(void) +{ + return (devsoftc.async_proc != NULL); +} + +/** * @brief Queue data to be read from the devctl device * * Generic interface to queue data to the devctl device. It is diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 18f246eaa0d5..14634371b260 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -83,6 +83,7 @@ struct u_device { * hook to send the message. However, devctl_queue_data is also * included in case devctl_notify isn't sufficiently general. */ +boolean_t devctl_process_running(void); void devctl_notify(const char *__system, const char *__subsystem, const char *__type, const char *__data); void devctl_queue_data(char *__data); |
