Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Map mtx_sleep() to our mtsleep() API



details:   https://anonhg.NetBSD.org/src-all/rev/22790a7d0079
branches:  trunk
changeset: 367152:22790a7d0079
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Sat Feb 13 18:40:55 2021 +0100

description:
Map mtx_sleep() to our mtsleep() API

diffstat:

 sys/net80211/ieee80211_netbsd.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 6e7502c58cdd -r 22790a7d0079 sys/net80211/ieee80211_netbsd.h
--- a/sys/net80211/ieee80211_netbsd.h   Sat Feb 13 18:39:41 2021 +0100
+++ b/sys/net80211/ieee80211_netbsd.h   Sat Feb 13 18:40:55 2021 +0100
@@ -72,7 +72,8 @@
 #define mtx_unlock(mtx)                mutex_exit(mtx)
 #define mtx_owned(mtx)         mutex_owned(mtx)
 #define mtx_destroy(mtx)       mutex_destroy(mtx)
-#define mtx_sleep(a1, a2, a3, a4, a5) /* NNN not sure what it should be. */
+#define mtx_sleep(ident, mtx, prio, wmesg, timo)       \
+       mtsleep(ident, prio, wmesg, timo, mtx)
 #define nitems(x)    (sizeof((x)) / sizeof((x)[0]))
 #define ovbcopy(dst,src,size)  memmove(dst,src,size)
 #define ticks   hardclock_ticks



Home | Main Index | Thread Index | Old Index