Lines Matching full:allocation
38 * allocation function, zbud_alloc(), returns an opaque handle to the user,
41 * allocation data and unmap the handle with zbud_unmap() when operations
42 * on the allocation data are complete.
60 * NCHUNKS_ORDER determines the internal allocation granularity, effectively
63 * allocation granularity will be in chunks of size PAGE_SIZE/64. As one chunk
126 /* Converts an allocation size in bytes to size in zbud chunks */
162 * Add CHUNK_SIZE to the handle if it is the first allocation to jump
197 * Return: pointer to the new zbud pool or NULL if the metadata allocation
230 * @size: size in bytes of the desired allocation
232 * @handle: handle of the new allocation
235 * satisfy the allocation request. A search of the unbuddied lists is
307 * zbud_free() - frees the allocation associated with the given handle
308 * @pool: pool in which the allocation resided
309 * @handle: handle associated with the allocation returned by zbud_alloc()
342 * zbud_map() - maps the allocation associated with the given handle
343 * @pool: pool in which the allocation resides
344 * @handle: handle associated with the allocation to be mapped
347 * implementing this allocation API could have more complex information encoded
351 * Returns: a pointer to the mapped allocation
359 * zbud_unmap() - maps the allocation associated with the given handle
360 * @pool: pool in which the allocation resides
361 * @handle: handle associated with the allocation to be unmapped