#
b5523eac |
| 19-Feb-2015 |
Sascha Wildner <saw@online.de> |
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.
The main reason is that our having to use the MB_WAIT and MB_DONTWAIT flags was a recurring issue when porting drivers from FreeBSD
kernel: Move us to using M_NOWAIT and M_WAITOK for mbuf functions.
The main reason is that our having to use the MB_WAIT and MB_DONTWAIT flags was a recurring issue when porting drivers from FreeBSD because it tended to get forgotten and the code would compile anyway with the wrong constants. And since MB_WAIT and MB_DONTWAIT ended up as ocflags for an objcache_get() or objcache_reclaimlist call (which use M_WAITOK and M_NOWAIT), it was just one big converting back and forth with some sanitization in between.
This commit allows M_* again for the mbuf functions and keeps the sanitizing as it was before: when M_WAITOK is among the passed flags, objcache functions will be called with M_WAITOK and when it is absent, they will be called with M_NOWAIT. All other flags are scrubbed by the MB_OCFLAG() macro which does the same as the former MBTOM().
Approved-by: dillon
show more ...
|
#
e85b99ab |
| 15-Nov-2014 |
Sascha Wildner <saw@online.de> |
kernel/netgraph7: Port the kernel part of the netgraph7 bluetooth stack.
It still needs more testing/debugging, along with the userland part.
In-discussion-with: nant
|
#
fc025606 |
| 10-Dec-2011 |
Sascha Wildner <saw@online.de> |
kernel/netgraph7: Replace usage of MALLOC/FREE with kmalloc/kfree here too.
Requested-by: Nuno Antunes
|
#
5a975a3d |
| 26-Jun-2008 |
Matthew Dillon <dillon@dragonflybsd.org> |
Netgraph port from FreeBSD - initial porting work
* Use relative #include's as appropriate so the code doesn't dig into the original netgraph/ directory.
* Move FBSDID's and add DragonFly ids.
*
Netgraph port from FreeBSD - initial porting work
* Use relative #include's as appropriate so the code doesn't dig into the original netgraph/ directory.
* Move FBSDID's and add DragonFly ids.
* Fix improper uses of M_NOWAIT.
* Fix uses of M_NOWAIT which should be MB_DONTWAIT and vise-versa (also forward to Julian).
* Add a dragonfly.h compatibility header.
* NOTE: m_tag_alloc() in DFly takes MB_ flags.
show more ...
|
#
b06ebda0 |
| 26-Jun-2008 |
Matthew Dillon <dillon@dragonflybsd.org> |
Vendor import of netgraph from FreeBSD-current 20080626
|