aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_bus.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-08-29 04:30:06 +0000
committerWarner Losh <imp@FreeBSD.org>2020-08-29 04:30:06 +0000
commit887611b1227c95b8d5588f920822435a7021fd2a (patch)
treec41b465d08edd734fe094c49cf0f2a73e4f64a0b /sys/kern/subr_bus.c
parentbca8f35f285b3dcf79807f1cee69e5b1647c5243 (diff)
downloadsrc-887611b1227c95b8d5588f920822435a7021fd2a.tar.gz
src-887611b1227c95b8d5588f920822435a7021fd2a.zip
Retire devctl_notify_f()
devctl_notify_f isn't needed, so retire it. The flags argument is now unused, so rather than keep it around, retire it. Convert all old users of it to devctl_notify(). This path no longer sleeps, so is safe to call from any context. Since it doesn't sleep, it doesn't need to know if it is OK to sleep or not. Reviewed by: markj@ Differential Revision: https://reviews.freebsd.org/D26140
Notes
Notes: svn path=/head/; revision=364945
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r--sys/kern/subr_bus.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 2232799ebb92..503e73ff59b0 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -651,8 +651,8 @@ devctl_queue(struct dev_event_info *dei)
* @brief Send a 'notification' to userland, using standard ways
*/
void
-devctl_notify_f(const char *system, const char *subsystem, const char *type,
- const char *data, int flags __unused)
+devctl_notify(const char *system, const char *subsystem, const char *type,
+ const char *data)
{
struct dev_event_info *dei;
struct sbuf sb;
@@ -679,13 +679,6 @@ devctl_notify_f(const char *system, const char *subsystem, const char *type,
devctl_queue(dei);
}
-void
-devctl_notify(const char *system, const char *subsystem, const char *type,
- const char *data)
-{
- devctl_notify_f(system, subsystem, type, data, M_NOWAIT);
-}
-
/*
* Common routine that tries to make sending messages as easy as possible.
* We allocate memory for the data, copy strings into that, but do not