| /kernel/linux/linux-6.6/Documentation/core-api/ |
| D | memory-allocation.rst | 15 memory should be allocated. The GFP acronym stands for "get free 60 ``GFP_HIGHUSER_MOVABLE`` does not require that allocated memory 64 ``GFP_HIGHUSER`` means that the allocated memory is not movable, 69 ``GFP_USER`` means that the allocated memory is not movable and it 81 used to ensure that the allocated memory is accessible by hardware 141 The maximal size of a chunk that can be allocated with `kmalloc` is 146 The address of a chunk allocated with `kmalloc` is aligned to at least 150 Chunks allocated with kmalloc() can be resized with krealloc(). Similarly 155 request pages from the page allocator. The memory allocated by `vmalloc` 173 When the allocated memory is no longer needed it must be freed. [all …]
|
| /kernel/liteos_m/testsuites/include/ |
| D | los_dlinkmem.h | 111 * @param size [IN] Size of the memory to be allocated (unit: byte). 113 * @retval Address of the allocated memory. The memory is successfully allocated. 114 * @retval NULL. The memory fails to be allocated. 129 * <li>This API is used to free the allocated memory.</li> 156 …* <li>This API is used to re-allocate memory if the memory allocated before is insufficient. Data … 157 will be copied to the re-allocated memory, after which the original memory will be freed.</li> 166 * <li>If the new memory block fails to be allocated, the original one will not be released.</li> 170 * @param ptr [IN] Address of the re-allocated memory. 171 * @param size [IN] Size of the memory to be allocated. 173 * @retval Address of the re-allocated memory. The memory is successfully re-allocated. [all …]
|
| /kernel/linux/linux-5.10/kernel/irq/ |
| D | matrix.c | 15 unsigned int allocated; member 149 /* Find the best CPU which has the lowest number of managed IRQs allocated */ 153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 165 allocated = cm->managed_allocated; in matrix_find_best_cpu_managed() 174 * @replace: Replace an already allocated vector with a system 192 cm->allocated--; in irq_matrix_assign_system() 246 * This removes not allocated managed interrupts from the map. It does 262 /* Get managed bit which are not allocated */ in irq_matrix_remove_managed() 283 * @cpu: On which CPU the interrupt should be allocated [all …]
|
| /kernel/linux/linux-6.6/kernel/irq/ |
| D | matrix.c | 15 unsigned int allocated; member 149 /* Find the best CPU which has the lowest number of managed IRQs allocated */ 153 unsigned int cpu, best_cpu, allocated = UINT_MAX; in matrix_find_best_cpu_managed() local 161 if (!cm->online || cm->managed_allocated > allocated) in matrix_find_best_cpu_managed() 165 allocated = cm->managed_allocated; in matrix_find_best_cpu_managed() 174 * @replace: Replace an already allocated vector with a system 192 cm->allocated--; in irq_matrix_assign_system() 246 * This removes not allocated managed interrupts from the map. It does 262 /* Get managed bit which are not allocated */ in irq_matrix_remove_managed() 284 * @mapped_cpu: Pointer to store the CPU for which the irq was allocated [all …]
|
| /kernel/linux/linux-6.6/include/drm/ |
| D | drm_suballoc.h | 19 * @olist: List of allocated ranges. 20 * @flist: Array[fence context hash] of queues of fenced allocated ranges. 34 * struct drm_suballoc - Sub-allocated range 35 * @olist: List link for list of allocated ranges. 36 * @flist: List linkk for the manager fenced allocated ranges queues. 66 * Return: The start of the allocated range. 77 * Return: The end of the allocated range + 1. 88 * Return: The size of the allocated range.
|
| /kernel/linux/linux-5.10/Documentation/vm/ |
| D | page_owner.rst | 4 page owner: Tracking about who allocated each page 10 page owner is for the tracking about who allocated each page. 61 memory system, so, until initialization, many pages can be allocated and 62 they would have no owner information. To fix it up, these early allocated 63 pages are investigated and marked as allocated in initialization phase. 65 at least, we can tell whether the page is allocated or not, 66 more accurately. On 2GB memory x86-64 VM box, 13343 early allocated pages 67 are catched and marked, although they are mostly allocated from struct 88 See the result about who allocated each page
|
| /kernel/linux/linux-6.6/drivers/hwtracing/coresight/ |
| D | coresight-trace-id.h | 22 * complete. This allows the same CPU to be re-allocated its prior ID. 26 * reserved IDs from being allocated. 70 * allocating an new ID if one is not currently allocated. 72 * Numeric ID values allocated use legacy allocation algorithm if possible, 82 * Release an allocated trace ID associated with the CPU. 95 * Read the current allocated CoreSight Trace ID value for the CPU. 97 * Fast read of the current value that does not allocate if no ID allocated 126 * Release an allocated system trace ID. 128 * Unconditionally release a trace ID allocated to a system component. 130 * @id: value of trace ID allocated.
|
| /kernel/linux/linux-6.6/Documentation/mm/ |
| D | page_owner.rst | 2 page owner: Tracking about who allocated each page 8 page owner is for the tracking about who allocated each page. 47 memory system, so, until initialization, many pages can be allocated and 48 they would have no owner information. To fix it up, these early allocated 49 pages are investigated and marked as allocated in initialization phase. 51 at least, we can tell whether the page is allocated or not, 52 more accurately. On 2GB memory x86-64 VM box, 13343 early allocated pages 53 are caught and marked, although they are mostly allocated from struct 76 Page allocated via order XXX, ... 80 Page allocated via order XXX, ... [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/broadwell/ |
| D | uncore-interconnect.json | 3 …"BriefDescription": "Number of entries allocated. Account for Any type: e.g. Snoop, Core aperture,… 28 … that are in DirectData mode. Such entry is defined as valid when it is allocated till data sent t… 32 … that are in DirectData mode. Such entry is defined as valid when it is allocated till data sent t… 37 …"BriefDescription": "Total number of Core outgoing entries allocated. Accounts for Coherent and no… 45 … "BriefDescription": "Number of Core coherent Data Read entries allocated in DirectData mode", 49 … "PublicDescription": "Number of Core coherent Data Read entries allocated in DirectData mode.", 54 …"BriefDescription": "Number of Writes allocated - any write transactions: full/partials writes and…
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
| D | ia_css_dvs.h | 45 u32 size; /* size of allocated memory in data_ptr */ 62 * allocated pointer is stored in the data_ptr field. The other fields 70 u32 data_allocated; /* indicate whether data was allocated */ 87 * @return error value if temporary memory cannot be allocated 121 * @return error value if temporary memory cannot be allocated 165 * @return Pointer to the allocated DVS statistics buffer on the ISP 179 * @return Pointer to the allocated DVS statistics buffer on the ISP 193 * @return Pointer to the allocated DVS statistics buffer on the host 207 * @return Pointer to the allocated DVS coefficients buffer 221 * @return Pointer to the allocated DVS 2.0 statistics buffer on the host [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
| D | ia_css_dvs.h | 45 u32 size; /* size of allocated memory in data_ptr */ 62 * allocated pointer is stored in the data_ptr field. The other fields 70 u32 data_allocated; /* indicate whether data was allocated */ 87 * @return error value if temporary memory cannot be allocated 121 * @return error value if temporary memory cannot be allocated 165 * @return Pointer to the allocated DVS statistics buffer on the ISP 179 * @return Pointer to the allocated DVS statistics buffer on the ISP 193 * @return Pointer to the allocated DVS statistics buffer on the host 207 * @return Pointer to the allocated DVS coefficients buffer 221 * @return Pointer to the allocated DVS 2.0 statistics buffer on the host [all …]
|
| /kernel/linux/linux-6.6/sound/firewire/ |
| D | iso-resources.c | 31 r->allocated = false; in fw_iso_resources_init() 43 WARN_ON(r->allocated); in fw_iso_resources_destroy() 111 if (WARN_ON(r->allocated)) in fw_iso_resources_allocate() 137 r->allocated = true; in fw_iso_resources_allocate() 158 * any resources that were allocated before the bus reset. It is safe to call 159 * this function if no resources are currently allocated. 171 if (!r->allocated) { in fw_iso_resources_update() 190 r->allocated = false; in fw_iso_resources_update() 206 * fw_iso_resources_free - frees allocated resources 209 * This function deallocates the channel and bandwidth, if allocated. [all …]
|
| /kernel/linux/linux-5.10/sound/firewire/ |
| D | iso-resources.c | 31 r->allocated = false; in fw_iso_resources_init() 43 WARN_ON(r->allocated); in fw_iso_resources_destroy() 111 if (WARN_ON(r->allocated)) in fw_iso_resources_allocate() 137 r->allocated = true; in fw_iso_resources_allocate() 158 * any resources that were allocated before the bus reset. It is safe to call 159 * this function if no resources are currently allocated. 171 if (!r->allocated) { in fw_iso_resources_update() 190 r->allocated = false; in fw_iso_resources_update() 206 * fw_iso_resources_free - frees allocated resources 209 * This function deallocates the channel and bandwidth, if allocated. [all …]
|
| /kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
| D | mem.c | 11 * newly allocated memory map 15 * Retrieve the UEFI memory map. The allocated memory leaves room for 74 * @addr: On return the address of the first allocated page. The first 75 * allocated page has alignment EFI_ALLOC_ALIGN which is an 77 * @max: the address that the last allocated memory page shall not 80 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according 81 * to EFI_ALLOC_ALIGN. The last allocated page will not exceed the address 118 * only be used to return pages allocated with efi_allocate_pages() or
|
| D | relocate.c | 11 * @align: minimum alignment of the allocated memory area. It should 13 * @addr: on exit the address of the allocated memory 17 * EFI_LOADER_DATA. The allocated pages are aligned according to @align but at 18 * least EFI_ALLOC_ALIGN. The first allocated page will not below the address 99 * @alignment: minimum alignment of the allocated memory area. It 103 * Copy a memory area to a newly allocated memory area aligned according 105 * is not available, the allocated address will not be below @min_addr. 160 * have been allocated by UEFI, so we can safely use memcpy. in efi_relocate_kernel()
|
| D | alignedmem.c | 11 * @addr: On return the address of the first allocated page. The first 12 * allocated page has alignment EFI_ALLOC_ALIGN which is an 14 * @max: the address that the last allocated memory page shall not 18 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according 19 * to @align, which should be >= EFI_ALLOC_ALIGN. The last allocated page will
|
| /kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
| D | mem.c | 11 * newly allocated memory map 15 * Retrieve the UEFI memory map. The allocated memory leaves room for 74 * @addr: On return the address of the first allocated page. The first 75 * allocated page has alignment EFI_ALLOC_ALIGN which is an 77 * @max: the address that the last allocated memory page shall not 80 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according 81 * to EFI_ALLOC_ALIGN. The last allocated page will not exceed the address 115 * only be used to return pages allocated with efi_allocate_pages() or
|
| D | relocate.c | 11 * @align: minimum alignment of the allocated memory area. It should 13 * @addr: on exit the address of the allocated memory 17 * EFI_LOADER_DATA. The allocated pages are aligned according to @align but at 18 * least EFI_ALLOC_ALIGN. The first allocated page will not below the address 96 * @alignment: minimum alignment of the allocated memory area. It 100 * Copy a memory area to a newly allocated memory area aligned according 102 * is not available, the allocated address will not be below @min_addr. 157 * have been allocated by UEFI, so we can safely use memcpy. in efi_relocate_kernel()
|
| D | alignedmem.c | 11 * @addr: On return the address of the first allocated page. The first 12 * allocated page has alignment EFI_ALLOC_ALIGN which is an 14 * @max: the address that the last allocated memory page shall not 18 * Allocate pages as EFI_LOADER_DATA. The allocated pages are aligned according 19 * to @align, which should be >= EFI_ALLOC_ALIGN. The last allocated page will
|
| /kernel/linux/linux-5.10/drivers/pci/endpoint/ |
| D | pci-epc-mem.c | 135 * Invoke to cleanup the pci_epc_mem structure allocated in 161 * @epc: the EPC device on which memory has to be allocated 162 * @phys_addr: populate the allocated physical address here 163 * @size: the size of the address space that has to be allocated 226 * pci_epc_mem_free_addr() - free the allocated memory address 227 * @epc: the EPC device on which memory was allocated 228 * @phys_addr: the allocated physical address 229 * @virt_addr: virtual address of the allocated mem space 230 * @size: the size of the allocated address space 232 * Invoke to free the memory allocated using pci_epc_mem_alloc_addr.
|
| /kernel/linux/linux-5.10/sound/core/ |
| D | memalloc.c | 58 * @dmab: buffer allocation record to store the allocated data 85 * snd_free_dev_iram - free allocated specific memory from on-chip internal ram 86 * @dmab: buffer allocation record to store the allocated data 118 * @dmab: buffer allocation record to store the allocated data 123 * Return: Zero if the buffer with the given size is allocated successfully, 191 * @dmab: buffer allocation record to store the allocated data 195 * tries to allocate again. The size actually allocated is stored in 198 * Return: Zero if the buffer with the given size is allocated successfully, 222 * snd_dma_free_pages - release the allocated buffer 225 * Releases the allocated buffer via snd_dma_alloc_pages().
|
| /kernel/linux/linux-6.6/kernel/trace/ |
| D | tracing_map.h | 67 * the way the insertion algorithm works, the size of the allocated 75 * tracing_map_elts are pre-allocated before any call is made to 78 * The tracing_map_entry array is allocated as a single block by 82 * generally be allocated together as a single large array without 83 * failure, they're allocated individually, by tracing_map_init(). 85 * The pool of tracing_map_elts are allocated by tracing_map_init() 94 * array holding the pointers which make up the pre-allocated pool of 95 * tracing_map_elts is allocated as a single block and is stored in 113 * is created for each tracing_map_elt, again individually allocated 114 * to avoid failures that might be expected if allocated as a single [all …]
|
| /kernel/liteos_m/kernel/include/ |
| D | los_memory.h | 126 * @brief Free memory nodes allocated by the specified task. 130 * <li>This API is used to free all memory nodes allocated by the specified task.</li> 134 * @param taskID [IN] The task ID and all memory nodes allocated by this task will be freed. 137 * @retval #LOS_OK All memory nodes allocated by this task are freed successfully. 250 * @param pool [IN] Pointer to the memory pool that contains the memory block to be allocated. 251 * @param size [IN] Size of the memory block to be allocated (unit: byte). 253 * @retval #NULL The memory fails to be allocated. 254 …@retval #VOID* The memory is successfully allocated with the starting address of the alloc… 267 * <li>This API is used to free specified dynamic memory that has been allocated.</li> 271 …* <li>The input ptr parameter must be allocated by LOS_MemAlloc or LOS_MemAllocAlign or LOS_MemRea… [all …]
|
| /kernel/linux/linux-6.6/drivers/pci/endpoint/ |
| D | pci-epc-mem.c | 145 * Invoke to cleanup the pci_epc_mem structure allocated in 171 * @epc: the EPC device on which memory has to be allocated 172 * @phys_addr: populate the allocated physical address here 173 * @size: the size of the address space that has to be allocated 236 * pci_epc_mem_free_addr() - free the allocated memory address 237 * @epc: the EPC device on which memory was allocated 238 * @phys_addr: the allocated physical address 239 * @virt_addr: virtual address of the allocated mem space 240 * @size: the size of the allocated address space 242 * Invoke to free the memory allocated using pci_epc_mem_alloc_addr.
|
| /kernel/linux/linux-5.10/Documentation/core-api/ |
| D | memory-allocation.rst | 15 memory should be allocated. The GFP acronym stands for "get free 60 ``GFP_HIGHUSER_MOVABLE`` does not require that allocated memory 64 ``GFP_HIGHUSER`` means that the allocated memory is not movable, 69 ``GFP_USER`` means that the allocated memory is not movable and it 81 used to ensure that the allocated memory is accessible by hardware 141 The maximal size of a chunk that can be allocated with `kmalloc` is 146 The address of a chunk allocated with `kmalloc` is aligned to at least 151 request pages from the page allocator. The memory allocated by `vmalloc` 169 When the allocated memory is no longer needed it must be freed. You can 170 use kvfree() for the memory allocated with `kmalloc`, `vmalloc` and
|