Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* What the differences between "__GFP_NOFAIL" and "__GFP_REPEAT"?
@ 2020-06-20  5:34 孙世龙 sunshilong
  0 siblings, 0 replies; only message in thread
From: 孙世龙 sunshilong @ 2020-06-20  5:34 UTC (permalink / raw)
  To: Kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 454 bytes --]

As per the documentation( https://www.linuxjournal.com/article/6930),
which says:
    Flag                Description
__GFP_REPEAT   The kernel repeats the allocation if it fails.
__GFP_NOFAIL   The kernel can repeat the allocation.

So, both of them may cause the kernel to repeat the allocation operation.
How can I choose between them?
What are the major differences?

Thank you for your attention to this matter.
Looking forward to hearing from you.

[-- Attachment #1.2: Type: text/html, Size: 651 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20  5:34 What the differences between "__GFP_NOFAIL" and "__GFP_REPEAT"? 孙世龙 sunshilong

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git