Home
last modified time | relevance | path

Searched refs:GFP (Results 1 – 14 of 14) sorted by relevance

/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/
A Dmemory-allocation.rst24 大多数的内存分配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 Dgfp_mask-from-fs-io.rst16 从FS/IO上下文中使用的GFP掩码
A Dxarray.rst136 防XArray需要分配内存来存储这个条目。如果该条目被删除,则不需要进行内存分配,指定的GFP标志将被忽
139 没有内存可供分配是可能的,特别是如果你传递了一组限制性的GFP标志。在这种情况下,这些函数会返回一
A Didr.rst62 如果在从IDR分配一个新ID时需要带锁,您可能需要传递一组限制性的GFP标志,但这可能导
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/selftests/
A Dhuge_gem_object.c30 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_RETRY_MAYFAIL) in huge_get_pages() macro
41 pages = kmalloc(sizeof(*pages), GFP); in huge_get_pages()
45 if (sg_alloc_table(pages, npages, GFP)) { in huge_get_pages()
54 page = alloc_page(GFP | __GFP_HIGHMEM); in huge_get_pages()
82 #undef GFP in huge_get_pages()
A Dhuge_pages.c80 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in get_huge_pages() macro
91 st = kmalloc(sizeof(*st), GFP); in get_huge_pages()
95 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages()
119 page = alloc_pages(GFP | __GFP_ZERO, order); in get_huge_pages()
223 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages()
227 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in fake_get_huge_pages()
273 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages_single()
277 if (sg_alloc_table(st, 1, GFP)) { in fake_get_huge_pages_single()
296 #undef GFP in fake_get_huge_pages_single()
/linux-6.3-rc2/security/apparmor/include/
A Dlib.h233 #define fn_label_build(L, P, GFP, FN) \ argument
244 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \
258 if (!vec_setup(profile, __pvec, __count, (GFP))) { \
266 __count, (GFP)); \
298 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ argument
300 fn_label_build((L), (P), (GFP), \
A Dlabel.h28 #define vec_setup(T, V, N, GFP) \ argument
36 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
/linux-6.3-rc2/Documentation/core-api/
A Dmemory-allocation.rst14 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 Dmm-api.rst32 :doc: Useful GFP flag combinations
A Dgfp_mask-from-fs-io.rst4 GFP masks used from FS/IO context
A Didr.rst64 you may need to pass a restrictive set of GFP flags, which can lead
A Dxarray.rst175 and the GFP flags specified will be ignored.
178 a restrictive set of GFP flags. In that case, the functions return a
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
A Di915_gem_gtt.c60 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in fake_get_pages() macro
66 pages = kmalloc(sizeof(*pages), GFP); in fake_get_pages()
75 if (sg_alloc_table(pages, rem, GFP)) { in fake_get_pages()
96 #undef GFP in fake_get_pages()

Completed in 34 milliseconds