aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMitsuru IWASAKI <iwasaki@FreeBSD.org>2008-02-06 01:34:18 +0000
committerMitsuru IWASAKI <iwasaki@FreeBSD.org>2008-02-06 01:34:18 +0000
commit5ffca72edfcb421ed969fb437eceee93086b374e (patch)
treedd251ea5320c731b379d6344321a883361c24c55 /sys
parent0b0ae3f9d9522e120a6505e936efe29d5a33f810 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_bus.c9
-rw-r--r--sys/sys/bus.h1
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);