Lines Matching full:allocation
37 * allocation function, zbud_alloc(), returns an opaque handle to the user,
40 * allocation data and unmap the handle with zbud_unmap() when operations
41 * 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
228 /* Converts an allocation size in bytes to size in zbud chunks */
266 * Add CHUNK_SIZE to the handle if it is the first allocation to jump in encode_handle()
302 * Return: pointer to the new zbud pool or NULL if the metadata allocation
337 * @size: size in bytes of the desired allocation
339 * @handle: handle of the new allocation
342 * satisfy the allocation request. A search of the unbuddied lists is
420 * zbud_free() - frees the allocation associated with the given handle
421 * @pool: pool in which the allocation resided
422 * @handle: handle associated with the allocation returned by zbud_alloc()
424 * In the case that the zbud page in which the allocation resides is under
572 * zbud_map() - maps the allocation associated with the given handle
573 * @pool: pool in which the allocation resides
574 * @handle: handle associated with the allocation to be mapped
577 * implementing this allocation API could have more complex information encoded
581 * Returns: a pointer to the mapped allocation
589 * zbud_unmap() - maps the allocation associated with the given handle
590 * @pool: pool in which the allocation resides
591 * @handle: handle associated with the allocation to be unmapped