Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 91) sorted by relevance

1234

/linux/tools/testing/selftests/vfio/lib/
H A Diova_allocator.c25 struct iova_allocator *allocator; in iova_allocator_init() local
32 allocator = malloc(sizeof(*allocator)); in iova_allocator_init()
33 VFIO_ASSERT_NOT_NULL(allocator); in iova_allocator_init()
35 *allocator = (struct iova_allocator){ in iova_allocator_init()
42 return allocator; in iova_allocator_init()
45 void iova_allocator_cleanup(struct iova_allocator *allocator) in iova_allocator_cleanup() argument
47 free(allocator->ranges); in iova_allocator_cleanup()
48 free(allocator); in iova_allocator_cleanup()
51 iova_t iova_allocator_alloc(struct iova_allocator *allocator, size_t size) in iova_allocator_alloc() argument
60 VFIO_ASSERT_LT(allocator->range_idx, allocator->nranges, in iova_allocator_alloc()
[all …]
/linux/tools/mm/
H A Dpage_owner_sort.c39 int allocator; member
170 return l1->allocator - l2->allocator; in compare_allocator()
413 int allocator = 0; in get_allocator() local
416 allocator |= ALLOCATOR_CMA; in get_allocator()
418 allocator |= ALLOCATOR_SLAB; in get_allocator()
430 allocator |= ALLOCATOR_VMALLOC; in get_allocator()
432 if (allocator == 0) in get_allocator()
433 allocator = ALLOCATOR_OTHERS; in get_allocator()
434 return allocator; in get_allocator()
501 list[list_size].allocator = get_allocator(buf, ext_buf); in add_list()
[all …]
/linux/Documentation/driver-api/cxl/allocation/
H A Dpage-allocator.rst7 The kernel page allocator services all general page allocation requests, such
9 allocator based on the selected `Memory Zone` and `NUMA node` the capacity is
13 allocator (as of Linux v6.15) rather than the overall page allocator behavior.
31 As of v6.15, the page allocator attempts to allocate from the highest
39 To simplify this, the page allocator will prefer :code:`ZONE_MOVABLE` over
/linux/drivers/firmware/qcom/
H A DKconfig18 prompt "TrustZone interface memory allocator mode"
22 Selects the mode of the memory allocator providing memory buffers of
29 Use the generic allocator mode. The memory is page-aligned, non-cachable
36 in the 'Generic' allocator but is also explicitly marked as an SHM Bridge
40 using the TZMem allocator or else the TrustZone will refuse to use them.
/linux/include/trace/events/
H A Dxdp.h314 __field(const void *, allocator)
321 __entry->allocator = xa->allocator;
327 __entry->allocator
342 __field(const void *, allocator)
351 __entry->allocator = xa->allocator;
360 __entry->allocator,
/linux/net/core/
H A Dxdp.c93 static void mem_allocator_disconnect(void *allocator) in mem_allocator_disconnect() argument
105 if (xa->allocator == allocator) in mem_allocator_disconnect()
273 void *allocator) in __xdp_reg_mem_model() argument
285 if (!allocator) { in __xdp_reg_mem_model()
312 xdp_alloc->allocator = allocator; in __xdp_reg_mem_model()
324 page_pool_use_xdp_mem(allocator, mem_allocator_disconnect, mem); in __xdp_reg_mem_model()
336 enum xdp_mem_type type, void *allocator) in xdp_reg_mem_model() argument
340 xdp_alloc = __xdp_reg_mem_model(mem, type, allocator); in xdp_reg_mem_model()
348 enum xdp_mem_type type, void *allocator) in xdp_rxq_info_reg_mem_model() argument
357 xdp_alloc = __xdp_reg_mem_model(&xdp_rxq->mem, type, allocator); in xdp_rxq_info_reg_mem_model()
[all …]
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Diova_allocator.h19 void iova_allocator_cleanup(struct iova_allocator *allocator);
20 iova_t iova_allocator_alloc(struct iova_allocator *allocator, size_t size);
/linux/Documentation/core-api/
H A Dmemory-allocation.rst10 or you can directly request pages from the page allocator with
33 zones can be used, how hard the allocator should try to find free
91 useful to understand how hard the page allocator will try to satisfy that
113 **default** page allocator behavior is used. That means that not costly
118 * ``GFP_KERNEL | __GFP_NORETRY`` - overrides the default allocator behavior
123 * ``GFP_KERNEL | __GFP_RETRY_MAYFAIL`` - overrides the default allocator
128 * ``GFP_KERNEL | __GFP_NOFAIL`` - overrides the default allocator behavior
132 Selecting memory allocator
158 request pages from the page allocator. The memory allocated by `vmalloc`
170 cache allocator. The cache should be set up with kmem_cache_create() or
H A Dgenalloc.rst6 implement a new allocator for a specific range of special-purpose memory;
8 driver for that device can certainly write a little allocator to get the
17 Code using this allocator should include <linux/genalloc.h>. The action
28 those used by the page allocator, but it refers to bytes rather than pages.
104 - gen_pool_first_fit is a simple first-fit allocator; this is the default
113 - gen_pool_best_fit, as one would expect, is a simple best-fit allocator.
H A Dboot-time-mm.rst8 physical page allocator.
10 A specialized allocator called ``memblock`` performs the
/linux/lib/zstd/decompress/
H A Dzstd_ddict.c170 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict() local
171 return ZSTD_createDDict_advanced(dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dct_auto, allocator); in ZSTD_createDDict()
180 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict_byReference() local
181 … return ZSTD_createDDict_advanced(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, allocator); in ZSTD_createDDict_byReference()
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-ext45 Controls whether the multiblock allocator should
14 The multiblock allocator will round up allocation
22 The maximum number of extents the multiblock allocator
29 The minimum number of extents the multiblock allocator
88 inode used by the inode allocator in preference to
H A Dsysfs-class-thermal122 The derivative term of the power allocator governor's PID
130 The integral term of the power allocator governor's PID
139 The proportional term of the power allocator governor's PID
149 The proportional term of the power allocator governor's PID
160 above which the integral term of the power allocator
192 the thermal zone. Used by the power allocator governor. For
/linux/Documentation/trace/
H A Devents-kmem.rst55 a simple indicator of page allocator activity. Pages may be allocated from
56 the per-CPU allocator (high performance) or the buddy allocator.
58 If pages are allocated directly from the buddy allocator, the
81 In front of the page allocator is a per-cpu page allocator. It exists only
/linux/Documentation/driver-api/cxl/linux/
H A Doverview.rst9 normal memory pages via the kernel's page allocator.
91 allocator as "driver managed memory"
96 blocks to the page allocator
H A Ddax-driver.rst14 - Engage the memory-hotplug interface to add CXL memory to page allocator.
34 will be exposed to the kernel page allocator in the user-selected memory
/linux/Documentation/driver-api/thermal/
H A Dpower_allocator.rst2 Power allocator governor tunables
22 The power allocator governor implements a
103 The implementation of the PID controller in the power allocator
202 allocator governor to calculate how much power to give to each cooling
240 a given power set by the power allocator governor to a state that the
263 Limitations of the power allocator governor
266 The power allocator governor's PID controller works best if there is a
/linux/Documentation/mm/
H A Dpage_owner.rst41 the page allocator hotpath and if not enabled, then allocation is done
48 most of this code is outside page allocator and its hot path. Building
54 is initialized some time later than that page allocator starts in sparse
255 ator allocator memory allocator for pages
265 ator allocator memory allocator for pages
/linux/rust/kernel/alloc/
H A Dkbox.rs6 use super::allocator::{KVmalloc, Kmalloc, Vmalloc, VmallocPageIter};
83 /// Type alias for [`Box`] with a [`Kmalloc`] allocator.
93 pub type KBox<T> = Box<T, super::allocator::Kmalloc>;
95 /// Type alias for [`Box`] with a [`Vmalloc`] allocator.
105 pub type VBox<T> = Box<T, super::allocator::Vmalloc>;
107 /// Type alias for [`Box`] with a [`KVmalloc`] allocator.
117 pub type KVBox<T> = Box<T, super::allocator::KVmalloc>;
664 /// use kernel::alloc::allocator::VmallocPageIter; in fmt()
/linux/Documentation/filesystems/ext4/
H A Dallocators.rst18 allocator. When a file is first created, the block allocator
46 directory is created in the root directory, the inode allocator scans
/linux/drivers/md/dm-vdo/
H A Drepair.h11 void vdo_replay_into_slab_journals(struct block_allocator *allocator, void *context);
/linux/tools/perf/Documentation/
H A Dperf-kmem.txt61 Analyze SLAB allocator events.
64 Analyze page allocator events
/linux/include/net/
H A Dxdp_priv.h12 void *allocator; member
/linux/drivers/media/mc/
H A DMakefile7 mc-objs += mc-dev-allocator.o
/linux/drivers/bus/fsl-mc/
H A DMakefile16 fsl-mc-allocator.o \

1234