Searched refs:bp (Results 1 – 2 of 2) sorted by path
15 b = bp->current; in nxt_buf_pool_mem_alloc()21 b = bp->free; in nxt_buf_pool_mem_alloc()30 if (bp->num >= bp->max) { in nxt_buf_pool_mem_alloc()34 if (size == 0 || size >= bp->size + bp->size / 4) { in nxt_buf_pool_mem_alloc()38 b = nxt_buf_mem_alloc(bp->mem_pool, size, bp->flags); in nxt_buf_pool_mem_alloc()61 b = bp->free; in nxt_buf_pool_file_alloc()70 if (bp->num >= bp->max) { in nxt_buf_pool_file_alloc()74 if (size == 0 || size >= bp->size + bp->size / 4) { in nxt_buf_pool_file_alloc()78 b = nxt_buf_file_alloc(bp->mem_pool, size, bp->flags); in nxt_buf_pool_file_alloc()110 if (bp->num >= bp->max) { in nxt_buf_pool_mmap_alloc()[all …]
36 NXT_EXPORT nxt_int_t nxt_buf_pool_mem_alloc(nxt_buf_pool_t *bp, size_t size);37 NXT_EXPORT nxt_int_t nxt_buf_pool_file_alloc(nxt_buf_pool_t *bp, size_t size);38 NXT_EXPORT nxt_int_t nxt_buf_pool_mmap_alloc(nxt_buf_pool_t *bp, size_t size);39 NXT_EXPORT void nxt_buf_pool_free(nxt_buf_pool_t *bp, nxt_buf_t *b);40 NXT_EXPORT void nxt_buf_pool_destroy(nxt_buf_pool_t *bp);45 #define nxt_buf_pool_ready(bp) \ argument48 && (bp)->current->mem.free < (bp)->current->mem.end))54 ((bp)->num < (bp)->max)60 (nxt_buf_pool_obtainable(bp) || nxt_buf_pool_ready(bp))66 (bp)->num += (n)[all …]