Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: const qualifiers on function returns type | Date | Sat, 09 Apr 2005 04:42:44 +0200 |
| |
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?) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |