Home
last modified time | relevance | path

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

/linux-5.19.10/Documentation/translations/zh_CN/core-api/
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`
Dgfp_mask-from-fs-io.rst16 从FS/IO上下文中使用的GFP掩码
Dxarray.rst135 防XArray需要分配内存来存储这个条目。如果该条目被删除,则不需要进行内存分配,指定的GFP标志将被忽
138 没有内存可供分配是可能的,特别是如果你传递了一组限制性的GFP标志。在这种情况下,这些函数会返回一
/linux-5.19.10/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c30 #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()
Dhuge_pages.c80 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in get_huge_pages() macro
87 st = kmalloc(sizeof(*st), GFP); in get_huge_pages()
91 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages()
115 page = alloc_pages(GFP | __GFP_ZERO, order); in get_huge_pages()
216 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages()
220 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in fake_get_huge_pages()
269 st = kmalloc(sizeof(*st), GFP); in fake_get_huge_pages_single()
273 if (sg_alloc_table(st, 1, GFP)) { in fake_get_huge_pages_single()
292 #undef GFP in fake_get_huge_pages_single()
/linux-5.19.10/security/apparmor/include/
Dlib.h227 #define fn_label_build(L, P, GFP, FN) \ argument
238 if (vec_setup(label, __lvec, (L)->size, (GFP))) { \
252 if (!vec_setup(profile, __pvec, __count, (GFP))) { \
260 __count, (GFP)); \
292 #define fn_label_build_in_ns(L, P, GFP, NS_FN, OTHER_FN) \ argument
294 fn_label_build((L), (P), (GFP), \
Dlabel.h28 #define vec_setup(T, V, N, GFP) \ argument
36 (V) = kzalloc(sizeof(struct aa_ ## T *) * (N), (GFP)); \
/linux-5.19.10/Documentation/core-api/
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
Dmm-api.rst35 :doc: Useful GFP flag combinations
Dgfp_mask-from-fs-io.rst4 GFP masks used from FS/IO context
Didr.rst61 you may need to pass a restrictive set of GFP flags, which can lead
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-5.19.10/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c59 #define GFP (GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY) in fake_get_pages() macro
66 pages = kmalloc(sizeof(*pages), GFP); in fake_get_pages()
71 if (sg_alloc_table(pages, rem, GFP)) { in fake_get_pages()
94 #undef GFP in fake_get_pages()
/linux-5.19.10/Documentation/sound/kernel-api/
Dwriting-an-alsa-driver.rst3572 If you need a different GFP flag, you can pass it by encoding the flag