[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070124144156.ff29d5dd.randy.dunlap@oracle.com>
Date: Wed, 24 Jan 2007 14:41:56 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: Nadia.Derbey@...l.net
Cc: linux-kernel@...r.kernel.org
Subject: Re: [RFC][PATCH 5/6] per namespace tunables
On Tue, 16 Jan 2007 07:15:21 +0100 Nadia.Derbey@...l.net wrote:
> [PATCH 05/06]
>
> This patch introduces all that is needed to process per namespace tunables.
>
> ---
> include/linux/akt.h | 12 +++++++
> kernel/autotune/akt.c | 80 ++++++++++++++++++++++++++++++++++++++------------
> 2 files changed, 73 insertions(+), 19 deletions(-)
>
> +/*
> + * FUNCTION: This routine gets the actual auto_tune structure for the
> + * tunables that are per namespace (presently only ipc ones).
> + *
> + * RETURN VALUE: pointer to the tunable structure for the current namespace
> + */
Please use kernel-doc format for function comment blocks.
(see Documentation/kernel-doc-nano-HOWTO.txt)
> +static struct auto_tune *get_ns_tunable(struct auto_tune *p)
> +{
> + if (p->flags & TUNABLE_IPC_NS) {
> + char *shift = (char *) p;
> + struct ipc_namespace *ns = current->nsproxy->ipc_ns;
> +
> + shift = (shift - (char *) &init_ipc_ns) + (char *) ns;
> +
> + return (struct auto_tune *) shift;
> + }
> +
> + return p;
> +}
> +
> +
> EXPORT_SYMBOL_GPL(register_tunable);
> EXPORT_SYMBOL_GPL(unregister_tunable);
and put EXPORT_SYMBOL/_GPL() immediately after each function
that is being exported.
---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists