int nsegs;
void *buf;
- MGETHDR(m, M_DONTWAIT, MT_DATA);
+ MGETHDR(m, MB_DONTWAIT, MT_DATA);
if (m == NULL)
return (ENOBUFS);
buf = msk_jalloc(sc_if);
* In-kernel UNI stack message functions.
*
* $FreeBSD: src/sys/netgraph/atm/ngatmbase.c,v 1.3 2005/01/07 01:45:40 imp Exp $
- * $DragonFly: src/sys/netgraph7/atm/ngatmbase.c,v 1.2 2008/06/26 23:05:37 dillon Exp $
- * $DragonFly: src/sys/netgraph7/atm/ngatmbase.c,v 1.2 2008/06/26 23:05:37 dillon Exp $
*/
#include <sys/param.h>
lead = uni_msg_leading(m);
len = uni_msg_len(m);
s += lead + len + EXTRA;
- if ((b = kmalloc(s, M_UNIMSG, MB_DONTWAIT)) == NULL) {
+ if ((b = kmalloc(s, M_UNIMSG, M_NOWAIT)) == NULL) {
uni_msg_destroy(m);
return (ENOMEM);
}
{
int ret;
struct sctp_copy_all *ca;
- ca = kmalloc(sizeof(struct sctp_copy_all), M_PCB, MB_WAIT);
+ ca = kmalloc(sizeof(struct sctp_copy_all), M_PCB, M_NOWAIT);
if (ca == NULL) {
m_freem(m);
return (ENOMEM);
asoc->strmout = NULL;
asoc->streamoutcnt = asoc->pre_open_streams;
asoc->strmout = kmalloc(asoc->streamoutcnt * sizeof(struct sctp_stream_out),
- M_PCB, MB_WAIT);
+ M_PCB, M_WAITOK);
for (i = 0; i < asoc->streamoutcnt; i++) {
/*
* inbound side must be set to 0xffff,
asoc->strmout =
kmalloc(asoc->streamoutcnt *
sizeof(struct sctp_stream_out),
- M_PCB, MB_WAIT);
+ M_PCB, M_WAITOK);
for (i = 0; i < asoc->streamoutcnt; i++) {
/*
* inbound side must be set to 0xffff,