diff options
author | sam <sam@FreeBSD.org> | 2003-09-26 16:52:12 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-09-26 16:52:12 +0000 |
commit | 22bdcdfcee58aa1bd57b6499c6bae32f2a2e2f86 (patch) | |
tree | 2a6ce3912ba717b02e669e06bcca6251d57f5e4b /sys/net80211 | |
parent | 19d2ca15c6e619cb12157ee3a065d32f58e79b6c (diff) | |
download | FreeBSD-src-22bdcdfcee58aa1bd57b6499c6bae32f2a2e2f86.zip FreeBSD-src-22bdcdfcee58aa1bd57b6499c6bae32f2a2e2f86.tar.gz |
allocate node table entries with a specific malloc type
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index fe0c9b1..e688fde 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -78,6 +78,8 @@ static void ieee80211_setup_node(struct ieee80211com *ic, static void _ieee80211_free_node(struct ieee80211com *, struct ieee80211_node *); +MALLOC_DEFINE(M_80211_NODE, "node", "802.11 node state"); + void ieee80211_node_attach(struct ifnet *ifp) { @@ -393,14 +395,14 @@ ieee80211_end_scan(struct ifnet *ifp) static struct ieee80211_node * ieee80211_node_alloc(struct ieee80211com *ic) { - return malloc(sizeof(struct ieee80211_node), M_DEVBUF, + return malloc(sizeof(struct ieee80211_node), M_80211_NODE, M_NOWAIT | M_ZERO); } static void ieee80211_node_free(struct ieee80211com *ic, struct ieee80211_node *ni) { - free(ni, M_DEVBUF); + free(ni, M_80211_NODE); } static void |