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.
61 * NCHUNKS_ORDER determines the internal allocation granularity, effectively
64 * allocation granularity will be in chunks of size PAGE_SIZE/64. As one chunk
230 /* Converts an allocation size in bytes to size in zbud chunks */
268 * Add CHUNK_SIZE to the handle if it is the first allocation to jump in encode_handle()
304 * Return: pointer to the new zbud pool or NULL if the metadata allocation
339 * @size: size in bytes of the desired allocation
341 * @handle: handle of the new allocation
344 * satisfy the allocation request. A search of the unbuddied lists is
421 * zbud_free() - frees the allocation associated with the given handle
422 * @pool: pool in which the allocation resided
423 * @handle: handle associated with the allocation returned by zbud_alloc()
425 * In the case that the zbud page in which the allocation resides is under
573 * zbud_map() - maps the allocation associated with the given handle
574 * @pool: pool in which the allocation resides
575 * @handle: handle associated with the allocation to be mapped
578 * implementing this allocation API could have more complex information encoded
582 * Returns: a pointer to the mapped allocation
590 * zbud_unmap() - maps the allocation associated with the given handle
591 * @pool: pool in which the allocation resides
592 * @handle: handle associated with the allocation to be unmapped