From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: "Paul Drynoff" <pauldrynoff@gmail.com>
Cc: "Andrew Morton" <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/comments: kmalloc man page before 2.6.17 (the third attempt)
Date: Sun, 28 May 2006 20:29:21 +0300 [thread overview]
Message-ID: <84144f020605281029q1fa6ed59jb415ffb9a7daeef9@mail.gmail.com> (raw)
In-Reply-To: <20060528111446.55572c6f.pauldrynoff@gmail.com>
Since no one else seems to have complained about this...
On 5/28/06, Paul Drynoff <pauldrynoff@gmail.com> wrote:
> +/**
> + * kmalloc - allocate memory
> + * @size: how many bytes of memory are required.
> + * @flags: the type of memory to allocate.
> + *
> + * kmalloc is the normal method of allocating memory
> + * in the kernel.
> + *
> + * The @flags argument may be one of:
> + *
> + * %GFP_USER - Allocate memory on behalf of user. May sleep.
> + *
> + * %GFP_KERNEL - Allocate normal kernel ram. May sleep.
> + *
> + * %GFP_ATOMIC - Allocation will not sleep.
> + * For example: use inside interrupt handlers.
> + * %GFP_HIGHUSER - Allocate pages from high memory.
> + * %GFP_NOIO - Do not do any I/O at all while trying to get memory.
> + * %GFP_NOFS - Do not make any fs calls while trying to get memory.
Why are the last four formatted differently from the first two? That
is, a newline seems to be missing.
> + *
> + *
> + * Also it is possible set different flags by OR'ing
> + * in one or more of the following:
> + * %__GFP_COLD
> + * - Request cache-cold pages instead of trying to return cache-warm pages.
> + * %__GFP_DMA
> + * - Request memory from the DMA-capable zone.
> + * %__GFP_HIGH
> + * - This allocation has high priority and may use emergency pools.
> + * %__GFP_HIGHMEM
> + * - Allocated memory may be from highmem.
> + * %__GFP_NOFAIL
> + * - Indicate that this allocation is in no way allowed to fail
> + * (think twice before using).
> + * %__GFP_NORETRY
> + * - If memory is not immediately available, then give up at once.
> + * %__GFP_NOWARN
> + * - If allocation fails, don't issue any warnings.
> + * %__GFP_REPEAT
> + * - If allocation fails initially, try once more before failing.
And why do these have completely different formatting? Please pick
one and use that consistently.
Pekka
next prev parent reply other threads:[~2006-05-28 17:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-28 7:14 Paul Drynoff
2006-05-28 10:30 ` Jesper Juhl
2006-05-28 11:41 ` [PATCH] mm/comments: kmalloc man page before 2.6.17 (the fourth attempt) Paul Drynoff
2006-05-28 17:29 ` Pekka Enberg [this message]
2006-05-29 14:33 ` [PATCH] mm/comments: kmalloc man page before 2.6.17 (the fifth attempt) Paul Drynoff
2006-05-29 19:05 ` Randy.Dunlap
2006-05-30 2:58 ` Pekka J Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84144f020605281029q1fa6ed59jb415ffb9a7daeef9@mail.gmail.com \
--to=penberg@cs.helsinki.fi \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pauldrynoff@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®