diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-03-26 20:29:15 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-03-26 20:29:15 +0000 |
commit | 23793c11720ffd37e1d27f5203c412c32bd84067 (patch) | |
tree | a6b53a8b3f46fd255b47398c57d630f5d71bdcbc /sys/kern/kern_malloc.c | |
parent | 5f310404861601fe025be84a90a67328b8c5368c (diff) | |
download | FreeBSD-src-23793c11720ffd37e1d27f5203c412c32bd84067.zip FreeBSD-src-23793c11720ffd37e1d27f5203c412c32bd84067.tar.gz |
Add MBTOM(), a macro that converts from an mbuf blocking disposition
flag (M_DONTWAIT / M_TRYWAIT) to a malloc(9) blocking disposition flag
(M_NOWAIT, M_WAITOK). The semantic match isn't perfect, but for
scenarios where malloc data is used in the network stack, such as for
MAC labeling or for m_tags, we sometimes need to map from one to the
other to get the right blocking behavior.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/kern_malloc.c')
0 files changed, 0 insertions, 0 deletions