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
143 /* Converts an allocation size in bytes to size in zbud chunks */
181 * Add CHUNK_SIZE to the handle if it is the first allocation to jump in encode_handle()
217 * Return: pointer to the new zbud pool or NULL if the metadata allocation
252 * @size: size in bytes of the desired allocation
254 * @handle: handle of the new allocation
257 * satisfy the allocation request. A search of the unbuddied lists is
334 * zbud_free() - frees the allocation associated with the given handle
335 * @pool: pool in which the allocation resided
336 * @handle: handle associated with the allocation returned by zbud_alloc()
338 * In the case that the zbud page in which the allocation resides is under
486 * zbud_map() - maps the allocation associated with the given handle
487 * @pool: pool in which the allocation resides
488 * @handle: handle associated with the allocation to be mapped
491 * implementing this allocation API could have more complex information encoded
495 * Returns: a pointer to the mapped allocation
503 * zbud_unmap() - maps the allocation associated with the given handle
504 * @pool: pool in which the allocation resides
505 * @handle: handle associated with the allocation to be unmapped