All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Zefan <lizf@cn.fujitsu.com>
To: Ben Blum <bblum@andrew.cmu.edu>
Cc: linux-kernel@vger.kernel.org,
	containers@lists.linux-foundation.org, akpm@linux-foundation.org,
	menage@google.com, netdev@vger.kernel.org
Subject: Re: [RFC] [PATCH 3/5] cgroups: net_cls as module
Date: Tue, 08 Dec 2009 14:07:50 +0800	[thread overview]
Message-ID: <4B1DED36.8080204@cn.fujitsu.com> (raw)
In-Reply-To: <20091204085712.GC18912@andrew.cmu.edu>

> +struct cgroup_subsys net_cls_subsys = {
> +	.name		= "net_cls",
> +	.create		= cgrp_create,
> +	.destroy	= cgrp_destroy,
> +	.populate	= cgrp_populate,
> +#ifdef CONFIG_NET_CLS_CGROUP
> +	.subsys_id	= net_cls_subsys_id,
> +#else
> +#define net_cls_subsys_id net_cls_subsys.subsys_id
> +#endif

This looks a bit odd. I think below is the more standard way:

#ifndef MODULES
...
#else
...
#endif

> +	.module		= THIS_MODULE,
> +};



  reply	other threads:[~2009-12-08  6:08 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04  8:53 [RFC] [PATCH 0/5] cgroups: support for module-loadable subsystems Ben Blum
2009-12-04  8:55 ` [RFC] [PATCH 1/5] cgroups: revamp subsys array Ben Blum
     [not found]   ` <20091204085508.GA18912-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-08  7:38     ` Li Zefan
2009-12-08  7:38   ` Li Zefan
2009-12-09  5:50     ` Ben Blum
2009-12-09  6:07       ` Li Zefan
     [not found]         ` <4B1F3EB9.6080502-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-12-09  6:09           ` Li Zefan
2009-12-09  8:27           ` Ben Blum
2009-12-09  6:09         ` Li Zefan
2009-12-09  8:27         ` Ben Blum
     [not found]           ` <20091209082729.GA14114-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-10  3:18             ` Li Zefan
2009-12-10  3:18           ` Li Zefan
     [not found]             ` <4B20686E.3070907-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-12-10  5:19               ` Ben Blum
2009-12-10  5:19             ` Ben Blum
     [not found]               ` <20091210051912.GA11893-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-10  6:00                 ` Li Zefan
2009-12-10  6:00                   ` Li Zefan
     [not found]                   ` <4B208E7D.8020306-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-12-10  6:13                     ` Ben Blum
2009-12-10  6:13                   ` Ben Blum
     [not found]       ` <20091209055016.GA12342-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-09  6:07         ` Li Zefan
     [not found]     ` <4B1E0283.70108-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-12-09  5:50       ` Ben Blum
2009-12-09  8:36       ` Ben Blum
2009-12-09  8:36     ` Ben Blum
2009-12-04  8:56 ` [RFC] [PATCH 2/5] cgroups: subsystem module loading interface Ben Blum
     [not found] ` <20091204085349.GA18867-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-04  8:55   ` [RFC] [PATCH 1/5] cgroups: revamp subsys array Ben Blum
2009-12-04  8:56   ` [RFC] [PATCH 2/5] cgroups: subsystem module loading interface Ben Blum
2009-12-04  8:57   ` [RFC] [PATCH 3/5] cgroups: net_cls as module Ben Blum
2009-12-04  8:57     ` Ben Blum
2009-12-08  6:07     ` Li Zefan [this message]
     [not found]     ` <20091204085712.GC18912-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-08  6:07       ` Li Zefan
2009-12-04  8:58   ` [RFC] [PATCH 4/5] cgroups: subsystem module unloading Ben Blum
2009-12-04  8:58   ` [RFC] [PATCH 5/5] cgroups: subsystem dependencies Ben Blum
2009-12-04  8:58 ` [RFC] [PATCH 4/5] cgroups: subsystem module unloading Ben Blum
2009-12-04  8:58 ` [RFC] [PATCH 5/5] cgroups: subsystem dependencies Ben Blum
     [not found]   ` <20091204085854.GE18912-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-08  6:11     ` Li Zefan
2009-12-08  6:11   ` Li Zefan
     [not found]     ` <4B1DEE09.4010508-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-12-09  1:08       ` Ben Blum
2009-12-09  1:08     ` Ben Blum
     [not found]       ` <20091209010817.GA8929-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-12-09  1:40         ` Li Zefan
2009-12-09  1:40       ` Li Zefan

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=4B1DED36.8080204@cn.fujitsu.com \
    --to=lizf@cn.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=bblum@andrew.cmu.edu \
    --cc=containers@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.