summaryrefslogtreecommitdiffstats
path: root/sys/netatm/uni
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commitcf874b345d0f766fb64cf4737e1c85ccc78d2bee (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/netatm/uni
parentb72619cecb8265d3efb3781b0acff1380762c173 (diff)
downloadFreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.zip
FreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.tar.gz
Back out M_* changes, per decision of the TRB.
Approved by: trb
Diffstat (limited to 'sys/netatm/uni')
-rw-r--r--sys/netatm/uni/sscf_uni.c2
-rw-r--r--sys/netatm/uni/sscop.c2
-rw-r--r--sys/netatm/uni/uniarp.c2
-rw-r--r--sys/netatm/uni/uniarp_cache.c2
-rw-r--r--sys/netatm/uni/uniarp_vcm.c6
-rw-r--r--sys/netatm/uni/uniip.c2
-rw-r--r--sys/netatm/uni/unisig_decode.c2
-rw-r--r--sys/netatm/uni/unisig_subr.c26
-rw-r--r--sys/netatm/uni/unisig_vc_state.c24
9 files changed, 34 insertions, 34 deletions
diff --git a/sys/netatm/uni/sscf_uni.c b/sys/netatm/uni/sscf_uni.c
index a0c3d67..b5ff7d0 100644
--- a/sys/netatm/uni/sscf_uni.c
+++ b/sys/netatm/uni/sscf_uni.c
@@ -213,7 +213,7 @@ sscf_uni_inst(ssp, cvp)
/*
* Allocate our control block
*/
- uvp = uma_zalloc(sscf_uni_zone, 0);
+ uvp = uma_zalloc(sscf_uni_zone, M_WAITOK);
if (uvp == NULL)
return (ENOMEM);
uvp->uv_ustate = UVU_INST;
diff --git a/sys/netatm/uni/sscop.c b/sys/netatm/uni/sscop.c
index e555307..6374f30 100644
--- a/sys/netatm/uni/sscop.c
+++ b/sys/netatm/uni/sscop.c
@@ -258,7 +258,7 @@ sscop_inst(ssp, cvp)
/*
* Allocate our control block
*/
- sop = uma_zalloc(sscop_zone, 0);
+ sop = uma_zalloc(sscop_zone, M_WAITOK);
if (sop == NULL)
return (ENOMEM);
diff --git a/sys/netatm/uni/uniarp.c b/sys/netatm/uni/uniarp.c
index e946937..0de56b8 100644
--- a/sys/netatm/uni/uniarp.c
+++ b/sys/netatm/uni/uniarp.c
@@ -713,7 +713,7 @@ uniarp_client_mode(uip, aap)
* Now, get an arp entry for the server connection
*/
uip->uip_arpstate = UIAS_CLIENT_POPEN;
- uap = uma_zalloc(uniarp_zone, M_ZERO);
+ uap = uma_zalloc(uniarp_zone, M_WAITOK | M_ZERO);
if (uap == NULL) {
UNIIP_ARP_TIMER(uip, 1 * ATM_HZ);
return;
diff --git a/sys/netatm/uni/uniarp_cache.c b/sys/netatm/uni/uniarp_cache.c
index 10c780a..dbfe402 100644
--- a/sys/netatm/uni/uniarp_cache.c
+++ b/sys/netatm/uni/uniarp_cache.c
@@ -126,7 +126,7 @@ uniarp_cache_svc(uip, ip, atm, atmsub, origin)
* If there aren't any entries yet, create one
*/
if ((ipuap == NULL) && (nouap == NULL)) {
- ipuap = uma_zalloc(uniarp_zone, 0);
+ ipuap = uma_zalloc(uniarp_zone, M_WAITOK);
if (ipuap == NULL)
return (ENOMEM);
ipuap->ua_dstip.s_addr = ip->s_addr;
diff --git a/sys/netatm/uni/uniarp_vcm.c b/sys/netatm/uni/uniarp_vcm.c
index cfc081c..ac1c167 100644
--- a/sys/netatm/uni/uniarp_vcm.c
+++ b/sys/netatm/uni/uniarp_vcm.c
@@ -133,7 +133,7 @@ uniarp_pvcopen(ivp)
/*
* Get an arp map entry
*/
- uap = uma_zalloc(uniarp_zone, M_ZERO);
+ uap = uma_zalloc(uniarp_zone, M_WAITOK | M_ZERO);
if (uap == NULL)
return (MAP_FAILED);
@@ -279,7 +279,7 @@ uniarp_svcout(ivp, dst)
/*
* We're a client with an open VCC to the server, get a new arp entry
*/
- uap = uma_zalloc(uniarp_zone, 0);
+ uap = uma_zalloc(uniarp_zone, M_WAITOK);
if (uap == NULL) {
(void) splx(s);
return (MAP_FAILED);
@@ -440,7 +440,7 @@ uniarp_svcin(ivp, dst, dstsub)
/*
* No info in the cache - get a new arp entry
*/
- uap = uma_zalloc(uniarp_zone, M_ZERO);
+ uap = uma_zalloc(uniarp_zone, M_WAITOK | M_ZERO);
if (uap == NULL) {
(void) splx(s);
return (MAP_FAILED);
diff --git a/sys/netatm/uni/uniip.c b/sys/netatm/uni/uniip.c
index 7bdb100..3635523 100644
--- a/sys/netatm/uni/uniip.c
+++ b/sys/netatm/uni/uniip.c
@@ -188,7 +188,7 @@ uniip_ipact(inp)
/*
* Get a new interface control block
*/
- uip = uma_zalloc(uniip_zone, M_ZERO);
+ uip = uma_zalloc(uniip_zone, M_WAITOK | M_ZERO);
if (uip == NULL)
return (ENOMEM);
diff --git a/sys/netatm/uni/unisig_decode.c b/sys/netatm/uni/unisig_decode.c
index c15d02e..aa49fda 100644
--- a/sys/netatm/uni/unisig_decode.c
+++ b/sys/netatm/uni/unisig_decode.c
@@ -67,7 +67,7 @@ __RCSID("@(#) $FreeBSD$");
#endif
#define ALLOC_IE(ie) do { \
- (ie) = uma_zalloc(unisig_ie_zone, M_ZERO); \
+ (ie) = uma_zalloc(unisig_ie_zone, M_WAITOK | M_ZERO); \
if ((ie) == NULL) \
return (ENOMEM); \
} while (0)
diff --git a/sys/netatm/uni/unisig_subr.c b/sys/netatm/uni/unisig_subr.c
index 8a91fb6..31cd1a4 100644
--- a/sys/netatm/uni/unisig_subr.c
+++ b/sys/netatm/uni/unisig_subr.c
@@ -275,7 +275,7 @@ unisig_open_vcc(usp, cvp)
/*
* Allocate control block for VCC
*/
- uvp = uma_zalloc(unisig_vc_zone, M_ZERO);
+ uvp = uma_zalloc(unisig_vc_zone, M_WAITOK | M_ZERO);
if (uvp == NULL) {
return(ENOMEM);
}
@@ -897,7 +897,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->aal.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_aalp) {
msg->msg_ie_aalp = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_aalp == NULL) {
err = ENOMEM;
goto done;
@@ -955,7 +955,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->traffic.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_clrt) {
msg->msg_ie_clrt = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_clrt == NULL) {
err = ENOMEM;
goto done;
@@ -1012,7 +1012,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->bearer.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_bbcp) {
msg->msg_ie_bbcp = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_bbcp == NULL) {
err = ENOMEM;
goto done;
@@ -1040,7 +1040,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->bhli.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_bhli) {
msg->msg_ie_bhli = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_bhli == NULL) {
err = ENOMEM;
goto done;
@@ -1080,7 +1080,7 @@ unisig_set_attrs(usp, msg, ap)
ap->blli.tag_l3 == T_ATM_PRESENT) {
if (!msg->msg_ie_blli) {
msg->msg_ie_blli = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_blli == NULL) {
err = ENOMEM;
goto done;
@@ -1165,7 +1165,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->called.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_cdad) {
msg->msg_ie_cdad = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_cdad == NULL) {
err = ENOMEM;
goto done;
@@ -1181,7 +1181,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->called.subaddr.address_format != T_ATM_ABSENT) {
if (!msg->msg_ie_cdsa) {
msg->msg_ie_cdsa = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_cdsa == NULL) {
err = ENOMEM;
goto done;
@@ -1203,7 +1203,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->calling.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_cgad) {
msg->msg_ie_cgad = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_cgad == NULL) {
err = ENOMEM;
goto done;
@@ -1220,7 +1220,7 @@ unisig_set_attrs(usp, msg, ap)
T_ATM_ABSENT) {
if (!msg->msg_ie_cgsa) {
msg->msg_ie_cgsa = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_cgsa == NULL) {
err = ENOMEM;
goto done;
@@ -1241,7 +1241,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->qos.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_qosp) {
msg->msg_ie_qosp = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_qosp == NULL) {
err = ENOMEM;
goto done;
@@ -1273,7 +1273,7 @@ unisig_set_attrs(usp, msg, ap)
ap->transit.v.length != 0) {
if (!msg->msg_ie_trnt) {
msg->msg_ie_trnt = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_trnt == NULL) {
err = ENOMEM;
goto done;
@@ -1298,7 +1298,7 @@ unisig_set_attrs(usp, msg, ap)
if (ap->cause.tag == T_ATM_PRESENT) {
if (!msg->msg_ie_caus) {
msg->msg_ie_caus = uma_zalloc(unisig_ie_zone,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (msg->msg_ie_caus == NULL) {
err = ENOMEM;
goto done;
diff --git a/sys/netatm/uni/unisig_vc_state.c b/sys/netatm/uni/unisig_vc_state.c
index 6c5bc36..3c88cba 100644
--- a/sys/netatm/uni/unisig_vc_state.c
+++ b/sys/netatm/uni/unisig_vc_state.c
@@ -456,7 +456,7 @@ unisig_vc_act04(usp, uvp, msg)
vpi = msg->msg_ie_cnid->ie_cnid_vpci;
vci = msg->msg_ie_cnid->ie_cnid_vci;
} else {
- iep = uma_zalloc(unisig_ie_zone, 0);
+ iep = uma_zalloc(unisig_ie_zone, M_WAITOK);
if (iep == NULL)
return (ENOMEM);
iep->ie_ident = UNI_IE_CNID;
@@ -548,10 +548,10 @@ unisig_vc_act05(usp, uvp, msg)
/*
* Send a RELEASE message
*/
- rls_msg = uma_zalloc(unisig_msg_zone, M_ZERO);
+ rls_msg = uma_zalloc(unisig_msg_zone, M_WAITOK | M_ZERO);
if (rls_msg == NULL)
return(ENOMEM);
- cause_ie = uma_zalloc(unisig_ie_zone, M_ZERO);
+ cause_ie = uma_zalloc(unisig_ie_zone, M_WAITOK | M_ZERO);
if (cause_ie == NULL) {
uma_zfree(unisig_msg_zone, rls_msg);
return(ENOMEM);
@@ -668,7 +668,7 @@ unisig_vc_act06(usp, uvp, msg)
* No--VCI must have been specified earlier
*/
if (!uvp->uv_vci) {
- iep = uma_zalloc(unisig_ie_zone, 0);
+ iep = uma_zalloc(unisig_ie_zone, M_WAITOK);
if (iep == NULL)
return(ENOMEM);
iep->ie_ident = UNI_IE_CNID;
@@ -742,7 +742,7 @@ unisig_vc_act06(usp, uvp, msg)
/*
* Get memory for a CONNECT ACK message
*/
- cack_msg = uma_zalloc(unisig_msg_zone, 0);
+ cack_msg = uma_zalloc(unisig_msg_zone, M_WAITOK);
if (cack_msg == NULL)
return(ENOMEM);
@@ -1058,7 +1058,7 @@ unisig_vc_act09(usp, uvp, msg)
int rc;
struct unisig_msg *conn_msg;
- conn_msg = uma_zalloc(unisig_msg_zone, 0);
+ conn_msg = uma_zalloc(unisig_msg_zone, M_WAITOK);
if (conn_msg == NULL)
return(ENOMEM);
@@ -1389,7 +1389,7 @@ unisig_vc_act15(usp, uvp, msg)
}
}
if (cause == UNI_IE_CAUS_MISSING) {
- iep = uma_zalloc(unisig_ie_zone, 0);
+ iep = uma_zalloc(unisig_ie_zone, M_WAITOK);
if (iep == NULL)
return(ENOMEM);
iep->ie_ident = UNI_IE_CNID;
@@ -1611,7 +1611,7 @@ unisig_vc_act20(usp, uvp, msg)
/*
* Get memory for a STATUS ENQUIRY message
*/
- stat_msg = uma_zalloc(unisig_msg_zone, 0);
+ stat_msg = uma_zalloc(unisig_msg_zone, M_WAITOK);
if (stat_msg == NULL)
return(ENOMEM);
@@ -1757,15 +1757,15 @@ unisig_vc_act22(usp, uvp, msg)
/*
* Get memory for a STATUS message
*/
- status = uma_zalloc(unisig_msg_zone, M_ZERO);
+ status = uma_zalloc(unisig_msg_zone, M_WAITOK | M_ZERO);
if (status == NULL)
return(ENOMEM);
- callst_ie = uma_zalloc(unisig_ie_zone, M_ZERO);
+ callst_ie = uma_zalloc(unisig_ie_zone, M_WAITOK | M_ZERO);
if (callst_ie == NULL) {
uma_zfree(unisig_msg_zone, status);
return(ENOMEM);
}
- cause_ie = uma_zalloc(unisig_ie_zone, M_ZERO);
+ cause_ie = uma_zalloc(unisig_ie_zone, M_WAITOK | M_ZERO);
if (cause_ie == NULL) {
uma_zfree(unisig_msg_zone, status);
uma_zfree(unisig_ie_zone, callst_ie);
@@ -1859,7 +1859,7 @@ unisig_vc_act23(usp, uvp, msg)
/*
* Get memory for the ADD PARTY REJECT message
*/
- apr_msg = uma_zalloc(unisig_msg_zone, M_ZERO);
+ apr_msg = uma_zalloc(unisig_msg_zone, M_WAITOK | M_ZERO);
if (apr_msg == NULL)
return(ENOMEM);
OpenPOWER on IntegriCloud