Lines Matching refs:size
64 size_t vmem_sbrk_pagesize = 0; /* the preferred page size of the heap */
76 size_t sf_size; /* the size of this buffer */
89 * Try to extend src with [pos, pos + size).
94 vmem_sbrk_extend_alloc(vmem_t *src, void *pos, size_t size, size_t alloc,
100 ret = _vmem_extend_alloc(src, pos, size, alloc, vmflags);
106 ASSERT(sizeof (sbrk_fail_t) <= size);
109 fp->sf_size = size;
122 * Try to add at least size bytes to src, using the sbrk_fails list
125 vmem_sbrk_tryfail(vmem_t *src, size_t size, int vmflags)
131 if (fp->sf_size >= size) {
142 return (vmem_sbrk_extend_alloc(src, fp, fp->sf_size, size,
146 * nothing of the right size on the freelist
152 vmem_sbrk_alloc(vmem_t *src, size_t size, int vmflags)
163 ret = vmem_alloc(src, size, VM_NOSLEEP);
175 (ret = vmem_sbrk_tryfail(src, size, vmflags)) != NULL)
178 buf_size = MAX(size, vmem_sbrk_minalloc);
181 * buf_size gets overwritten with the actual allocated size
187 ret = vmem_sbrk_extend_alloc(src, buf, buf_size, size, vmflags);