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
229 /* Converts an allocation size in bytes to size in zbud chunks */
267 * Add CHUNK_SIZE to the handle if it is the first allocation to jump in encode_handle()
303 * Return: pointer to the new zbud pool or NULL if the metadata allocation
338 * @size: size in bytes of the desired allocation
340 * @handle: handle of the new allocation
343 * 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