• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/memrar/

Lines Matching refs:allocator

54  * struct memrar_allocator - encapsulation of the memory allocator state
56 * allocator state.
57 * @base: Base (start) address of the allocator memory
59 * @capacity: Size of the allocator memory space in bytes.
61 * the allocator memory space.
62 * @largest_free_area: Largest free area of memory in the allocator
68 * This structure contains all memory allocator state, including the
83 * memrar_create_allocator() - create a memory allocator
84 * @base: Address at which the memory allocator begins.
85 * @capacity: Desired size of the memory allocator. This value must
88 * memory allocator otherwise.
90 * allocator. This value must smaller than the
93 * Create a memory allocator with the given capacity and block size.
97 * Returns an instance of the memory allocator, if creation succeeds,
108 * memrar_destroy_allocator() - destroy allocator
109 * @allocator: The allocator being destroyed.
111 * Reclaim resources held by the memory allocator. The caller must
115 void memrar_destroy_allocator(struct memrar_allocator *allocator);
119 * @allocator: The allocator instance being used to reserve buffer.
123 * allocator. It returns zero if allocation was not possible.
124 * Failure may occur if the allocator no longer has space available.
126 unsigned long memrar_allocator_alloc(struct memrar_allocator *allocator,
131 * @allocator: The allocator instance being used to release the buffer.
136 * managed by the allocator. Returns zero on success or an errno
139 long memrar_allocator_free(struct memrar_allocator *allocator,