Searched refs:GFP (Results 1 – 15 of 15) sorted by relevance
/linux/Documentation/translations/zh_CN/core-api/ |
A D | memory-allocation.rst | 24 大多数的内存分配API使用GFP标志来表达该内存应该如何分配。GFP的缩写代表 27 (内存)分配API的多样性与众多的GFP标志相结合,使得“我应该如何分配内存?”这个问 34 当然,有些情况下必须使用其他分配API和不同的GFP标志。 38 GFP标志控制分配器的行为。它们告诉我们哪些内存区域可以被使用,分配器应该多努力寻 39 找空闲的内存,这些内存是否可以被用户空间访问等等。内存管理API为GFP标志和它们的 72 其他传统的GFP标志是 ``GFP_DMA`` 和 ``GFP_DMA32`` 。它们用于确保分配的内存可以被寻 76 GFP标志和回收行为 127 试用kmalloc分配内存,如果分配失败,将用 `vmalloc` 重新尝试。对于哪些GFP标志可以与 `kvmalloc`
|
A D | xarray.rst | 135 防XArray需要分配内存来存储这个条目。如果该条目被删除,则不需要进行内存分配,指定的GFP标志将被忽 138 没有内存可供分配是可能的,特别是如果你传递了一组限制性的GFP标志。在这种情况下,这些函数会返回一
|
A D | gfp_mask-from-fs-io.rst | 16 从FS/IO上下文中使用的GFP掩码
|
/linux/drivers/gpu/drm/i915/gem/selftests/ |
A D | huge_gem_object.c | 30 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_RETRY_MAYFAIL) in huge_get_pages() macro 37 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages() 41 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages() 50 page = alloc_page(GFP | __GFP_HIGHMEM); in huge_get_pages() 78 #undef GFP in huge_get_pages()
|
A D | huge_pages.c | 61 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in get_huge_pages() macro 68 st = kmalloc(sizeof(*st), GFP); in get_huge_pages() 72 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages() 96 page = alloc_pages(GFP | __GFP_ZERO, order); in get_huge_pages() 197 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages() 201 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in fake_get_huge_pages() 250 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages_single() 254 if (sg_alloc_table(st, 1, GFP)) { in fake_get_huge_pages_single() 273 #undef GFP in fake_get_huge_pages_single()
|
/linux/security/apparmor/include/ |
A D | lib.h | 222 #define fn_label_build(L, P, GFP, FN) \ argument 233 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \ 247 if (!vec_setup(profile, __pvec, __count, (GFP))) { \ 255 __count, (GFP)); \ 287 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ argument 289 fn_label_build((L), (P), (GFP), \
|
A D | label.h | 28 #define vec_setup(T, V, N, GFP) \ argument 36 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
|
/linux/Documentation/core-api/ |
A D | memory-allocation.rst | 14 Most of the memory allocation APIs use GFP flags to express how that 15 memory should be allocated. The GFP acronym stands for "get free 18 Diversity of the allocation APIs combined with the numerous GFP flags 26 Of course there are cases when other allocation APIs and different GFP 32 The GFP flags control the allocators behavior. They tell what memory 36 reference documentation for the GFP flags and their combinations and 80 Other legacy GFP flags are ``GFP_DMA`` and ``GFP_DMA32``. They are 87 GFP flags and reclaim behavior 161 will be retried with `vmalloc`. There are restrictions on which GFP
|
A D | mm-api.rst | 35 :doc: Useful GFP flag combinations
|
A D | gfp_mask-from-fs-io.rst | 4 GFP masks used from FS/IO context
|
A D | idr.rst | 61 you may need to pass a restrictive set of GFP flags, which can lead
|
A D | xarray.rst | 175 and the GFP flags specified will be ignored. 178 a restrictive set of GFP flags. In that case, the functions return a
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_gem_gtt.c | 55 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in fake_get_pages() macro 62 pages = kmalloc(sizeof(*pages), GFP); in fake_get_pages() 67 if (sg_alloc_table(pages, rem, GFP)) { in fake_get_pages() 90 #undef GFP in fake_get_pages()
|
/linux/Documentation/block/ |
A D | biodoc.rst | 215 GFP flags) when allocating bounce buffers, to avoid certain highmem
|
/linux/Documentation/sound/kernel-api/ |
A D | writing-an-alsa-driver.rst | 3572 If you need a different GFP flag, you can pass it by encoding the flag
|
Completed in 25 milliseconds