HomeFreeBSD

Convert malloc/free back to #define's, as part of OS portability work.

Description

Convert malloc/free back to #define's, as part of OS portability work.

DragonflyBSD uses the FreeBSD wireless stack and drivers. Their malloc()
API is named differently, so they don't have userland/kernel symbol
clashes like we do (think libuinet.)

So, to make it easier for them and to port to other BSDs/other operating
systems, start hiding the malloc specific bits behind defines in
ieee80211_freebsd.h.

DragonflyBSD can now put these portability defines in their local
ieee80211_dragonflybsd.h.

This should be a great big no-op for everyone running wifi.

TODO:

  • kill M_WAITOK - some platforms just don't want you to use it
  • .. and/or handle it returning NULL rather than waiting forever.
  • MALLOC_DEFINE() ?
  • Migrate the well-known malloc names (eg M_TEMP) to net80211 namespace defines.

Details

Provenance
adrianAuthored on
Parents
rS283537: Set ic_softc in all 802.11 drivers. Not required right now, but will be
Branches
Unknown
Tags
Unknown