From: Randy Dunlap <rdunlap@xenotime.net>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Thomas Gleixner <tglx@linutronix.de>,
Oleg Nesterov <oleg@tv-sign.ru>
Subject: Re: [patch 1/13] signal/timer/event fds v8 - anonymous inode source ...
Date: Fri, 30 Mar 2007 16:02:59 -0700 [thread overview]
Message-ID: <20070330160259.6e03705b.rdunlap@xenotime.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0703301532500.3721@alien.or.mcafeemobile.com>
On Fri, 30 Mar 2007 15:44:15 -0700 (PDT) Davide Libenzi wrote:
> On Fri, 30 Mar 2007, Andrew Morton wrote:
>
> > > +#include <asm/uaccess.h>
> > > +
> > > +
> > > +
> >
> > Too many blank lines
>
> It'd be interesting to know how much is enough. You use one, ppl says it
> is too dense. You use more, ppl says it's too much.
> There's the one-line rule for inter-function spacing, but what's the
> include-functions ones? Or the functions-data ones?
1 :)
> > > +static int ainofs_delete_dentry(struct dentry *dentry);
> > > +static struct inode *aino_mkinode(void);
> >
> > Unneeded forward declaration.
>
> Same here. You're the third says this, so I'm gonna change it. But pls
> consider adding it to the coding style.
>
>
>
> > > +static struct file_system_type aino_fs_type = {
> > > + .name = "ainofs",
> > > + .get_sb = ainofs_get_sb,
> > > + .kill_sb = kill_anon_super,
> > > +};
> > > +static struct dentry_operations ainofs_dentry_operations = {
> > > + .d_delete = ainofs_delete_dentry,
> > > +};
> >
> > If this is moved elsewhere we can perhaps remove some or all of the
> > unpleasing static function forward-declarations.
>
> Grrr :)
you are a puttycat
> > > +/**
> > > + * aino_getfd - creates a new file instance by hooking it up to and anonymous
> > > + * inode, and a dentry that describe the "class" of the file
> > > + * @pfd: [out] pointer to the file descriptor
> > > + * @dpinode: [out] pointer to the inode
> > > + * @pfile: [out] pointer to the file struct
> > > + * @name: [in] name of the "class" of the new file
> > > + * @fops [in] file operations for the new file
> > > + * @priv [in] private data for the new file (will be file's private_data)
> >
> > The [in] and [out] thing is nice - does kerneldoc handle it appropriately?
>
> No idea. It should come out as text at least.
Yes, it's just [nice] text.
But the function description needs to fit on one line. If that's
not enough, put more description after the @params lines, separated
by a
*
"blank" line.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2007-03-30 23:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-20 18:37 Davide Libenzi
2007-03-30 19:39 ` Andrew Morton
2007-03-30 22:44 ` Davide Libenzi
2007-03-30 23:02 ` Randy Dunlap [this message]
2007-03-30 23:08 ` Andrew Morton
2007-03-31 1:29 ` Davide Libenzi
2007-03-31 2:24 ` Linus Torvalds
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=20070330160259.6e03705b.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=akpm@linux-foundation.org \
--cc=davidel@xmailserver.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@tv-sign.ru \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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®