mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
To: "'Sebastian Andrzej Siewior'" <bigeasy@linutronix.de>,
	"'Joel Becker'" <jlbec@evilplan.org>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	"'Kyungmin Park'" <kyungmin.park@samsung.com>
Subject: RE: [PATCH] fs/configfs: allow to create groups on demand
Date: Fri, 30 Nov 2012 09:34:53 +0100	[thread overview]
Message-ID: <001401cdced5$93506d90$b9f148b0$%p@samsung.com> (raw)
In-Reply-To: <20121129164123.GA8551@linutronix.de>

On Thursday, November 29, 2012 5:41 PM Sebastian Andrzej Siewior wrote:
> Subject: [PATCH] fs/configfs: allow to create groups on demand
> 
> This patch adds a function add a group to an existing one and its
> counterart. The newly created group behaves as it would be created via
> default_groups[] which means the user can't rmdir it.
> This should be used by the upcomming USB gadget interface in order to
> add the currently available UDCs as a child of the UDC node. The UDC
> itself will appear once the hardware driver is loaded and can appear
> later.

Yeah, this mode of operation will be required.

> 
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
>  fs/configfs/dir.c        |   63 ++++++++++++++++++++++++++++++++++-------
> -----
>  include/linux/configfs.h |    4 +++
>  2 files changed, 51 insertions(+), 16 deletions(-)
> 
> diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
> index 7414ae2..50ee2bd 100644
> --- a/fs/configfs/dir.c
> +++ b/fs/configfs/dir.c
> @@ -1663,19 +1663,13 @@ const struct file_operations
> configfs_dir_operations = {
>  	.readdir	= configfs_readdir,
>  };
> 
> -int configfs_register_subsystem(struct configfs_subsystem *subsys)
> +static int __create_group(struct config_group *group, struct dentry
*root)
>  {

Can __create_group be also used in create_default_group?


Andrzej




  reply	other threads:[~2012-11-30  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 16:41 Sebastian Andrzej Siewior
2012-11-30  8:34 ` Andrzej Pietrasiewicz [this message]
2012-12-07 23:20 ` Joel Becker

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='001401cdced5$93506d90$b9f148b0$%p@samsung.com' \
    --to=andrzej.p@samsung.com \
    --cc=bigeasy@linutronix.de \
    --cc=jlbec@evilplan.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.szyprowski@samsung.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®