From: Bodo Eggert <7eggert@gmx.de>
To: Benoit Boissinot <bboissin@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: const qualifiers on function returns type
Date: Sat, 09 Apr 2005 04:42:44 +0200 [thread overview]
Message-ID: <E1DK5vr-0002LO-PJ@be1.7eggert.dyndns.org> (raw)
In-Reply-To: <3RcNK-4PC-1@gated-at.bofh.it>
Benoit Boissinot <bboissin@gmail.com> wrote:
> extern const cpumask_t cpuset_cpus_allowed(const struct task_struct *p);
>
> I was wondering what means const for a function returns type.
> K&R doesn't say anything about this and gcc-4 warns (warning: type
> qualifiers ignored on function return type)
It used to be a hint that the function has no side effect nor depends on
any variable besides the parameters. Calls to those functions may be cached
or omitted.
--
Fun things to slip into your budget
Paradigm pro-activator (a whole pack)
(you mean beer?)
next parent reply other threads:[~2005-04-09 2:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3RcNK-4PC-1@gated-at.bofh.it>
2005-04-09 2:42 ` Bodo Eggert [this message]
2005-04-09 1:09 Benoit Boissinot
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=E1DK5vr-0002LO-PJ@be1.7eggert.dyndns.org \
--to=7eggert@gmx.de \
--cc=bboissin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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®