Lines Matching +full:non +full:- +full:urgent
14 #if (RECV_INC & (RECV_INC-1))
17 #if (RECV_BATCH & (RECV_BATCH - 1))
34 static u_long emerg_recvbufs; /* emergency/urgent buffers to keep */
114 /*[bug 3666]: followup -- reset shortfalls in all cases */
131 abuf += (~abuf + 1) & (RECV_INC - 1); /* round up */
133 if (abuf > (limit_recvbufs - total_recvbufs)) {
134 abuf = limit_recvbufs - total_recvbufs;
136 abuf += (~abuf + 1) & (chunk - 1); /* round up */
147 for (i = chunk; i; --i,++bufp) {
152 abuf -= chunk;
211 * freerecvbuf - make a single recvbuf available for reuse
217 if (--rb->used != 0) {
218 msyslog(LOG_ERR, "******** freerecvbuff non-zero usage: %d *******", rb->used);
219 rb->used = 0;
245 int /*BOOL*/ urgent
251 if (free_recvbufs > (urgent ? 0 : emerg_recvbufs)) {
257 --free_recvbufs;
259 ++buffer->used;
272 int /*BOOL*/ urgent
279 return get_free_recv_buffer(urgent);
307 --full_recvbufs;
315 * purge_recv_buffers_for_fd() - purges any previously-received input
338 next = rbufp->link;
340 if (rbufp->dstadr == NULL && rbufp->fd == fd)
342 if (rbufp->fd == fd)
349 --full_recvbufs;
350 rbufp->link = freelist;
358 next = freelist->link;
386 REQUIRE((NULL == pf->phead && NULL == pf->pptail) ||
387 (NULL != pf->phead && NULL != pf->pptail));
389 pptail = &pf->phead;
390 for (pthis = pf->phead;
392 pthis = pthis->link)
393 if (NULL != pthis->link)
394 pptail = &pthis->link;
396 REQUIRE(NULL == pf->pptail || pptail == pf->pptail);