Lines Matching defs:handle
104 * to handle the @zpool_create_pool() returning failure. However if this
244 * @handle: Pointer to the handle to set
248 * implementation supports it. The provided @handle will be
249 * set to the allocated object handle.
256 unsigned long *handle)
258 return zpool->driver->malloc(zpool->pool, size, gfp, handle);
264 * @handle: The handle to the memory to free.
272 * handle should only be freed once, and should not be used
275 void zpool_free(struct zpool *zpool, unsigned long handle)
277 zpool->driver->free(zpool->pool, handle);
281 * zpool_map_handle() - Map a previously allocated handle into memory
282 * @zpool: The zpool that the handle was allocated from
283 * @handle: The handle to map
286 * This maps a previously allocated handle into memory. The @mapmode
294 * actions. The code that uses the mapped handle should complete
295 * its operations on the mapped handle memory quickly and unmap
300 * Returns: A pointer to the handle's mapped memory area.
302 void *zpool_map_handle(struct zpool *zpool, unsigned long handle,
305 return zpool->driver->map(zpool->pool, handle, mapmode);
309 * zpool_unmap_handle() - Unmap a previously mapped handle
310 * @zpool: The zpool that the handle was allocated from
311 * @handle: The handle to unmap
313 * This unmaps a previously mapped handle. Any locks or other
318 void zpool_unmap_handle(struct zpool *zpool, unsigned long handle)
320 zpool->driver->unmap(zpool->pool, handle);