Lines Matching defs:handle
112 * to handle the @zpool_create_pool() returning failure. However if this
264 * @handle: Pointer to the handle to set
268 * implementation supports it. The provided @handle will be
269 * set to the allocated object handle.
276 unsigned long *handle)
278 return zpool->driver->malloc(zpool->pool, size, gfp, handle);
284 * @handle: The handle to the memory to free.
292 * handle should only be freed once, and should not be used
295 void zpool_free(struct zpool *zpool, unsigned long handle)
297 zpool->driver->free(zpool->pool, handle);
307 * by evicting currently used handle(s). If the pool was
325 * zpool_map_handle() - Map a previously allocated handle into memory
326 * @zpool: The zpool that the handle was allocated from
327 * @handle: The handle to map
330 * This maps a previously allocated handle into memory. The @mapmode
338 * actions. The code that uses the mapped handle should complete
339 * its operatons on the mapped handle memory quickly and unmap
344 * Returns: A pointer to the handle's mapped memory area.
346 void *zpool_map_handle(struct zpool *zpool, unsigned long handle,
349 return zpool->driver->map(zpool->pool, handle, mapmode);
353 * zpool_unmap_handle() - Unmap a previously mapped handle
354 * @zpool: The zpool that the handle was allocated from
355 * @handle: The handle to unmap
357 * This unmaps a previously mapped handle. Any locks or other
362 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle)
364 zpool->driver->unmap(zpool->pool, handle);