Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/vmalloc: update __vmalloc_node_range() documentation

__vmalloc() now supports non-blocking flags such as GFP_ATOMIC and
GFP_NOWAIT. Update the documentation accordingly.

Link: https://lkml.kernel.org/r/20251007122035.56347-10-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Marco Elver <elver@google.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Uladzislau Rezki (Sony) and committed by
Andrew Morton
0667b209 7241bb2e

+11 -10
+11 -10
mm/vmalloc.c
··· 3881 3881 * @caller: caller's return address 3882 3882 * 3883 3883 * Allocate enough pages to cover @size from the page level 3884 - * allocator with @gfp_mask flags. Please note that the full set of gfp 3885 - * flags are not supported. GFP_KERNEL, GFP_NOFS and GFP_NOIO are all 3886 - * supported. 3887 - * Zone modifiers are not supported. From the reclaim modifiers 3888 - * __GFP_DIRECT_RECLAIM is required (aka GFP_NOWAIT is not supported) 3889 - * and only __GFP_NOFAIL is supported (i.e. __GFP_NORETRY and 3890 - * __GFP_RETRY_MAYFAIL are not supported). 3884 + * allocator with @gfp_mask flags and map them into contiguous 3885 + * virtual range with protection @prot. 3891 3886 * 3892 - * __GFP_NOWARN can be used to suppress failures messages. 3887 + * Supported GFP classes: %GFP_KERNEL, %GFP_ATOMIC, %GFP_NOWAIT, 3888 + * %GFP_NOFS and %GFP_NOIO. Zone modifiers are not supported. 3889 + * Please note %GFP_ATOMIC and %GFP_NOWAIT are supported only 3890 + * by __vmalloc(). 3893 3891 * 3894 - * Map them into contiguous kernel virtual space, using a pagetable 3895 - * protection of @prot. 3892 + * Retry modifiers: only %__GFP_NOFAIL is supported; %__GFP_NORETRY 3893 + * and %__GFP_RETRY_MAYFAIL are not supported. 3896 3894 * 3895 + * %__GFP_NOWARN can be used to suppress failure messages. 3896 + * 3897 + * Can not be called from interrupt nor NMI contexts. 3897 3898 * Return: the address of the area or %NULL on failure 3898 3899 */ 3899 3900 void *__vmalloc_node_range_noprof(unsigned long size, unsigned long align,