linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: andy@warmcat.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH Try#8 3/4] cfg80211: Radiotap parser
Date: Mon, 11 Jun 2007 08:11:40 -0700	[thread overview]
Message-ID: <466D662C.7040809@oracle.com> (raw)
In-Reply-To: <1181560668.29767.8.camel@johannes.berg>

Johannes Berg wrote:
> Hi Andy,
> 
> Thanks for the repost.
> 
>> +/* Radiotap header iteration
>> + *   implemented in net/wireless/radiotap.c
>> + *
>> + * call __ieee80211_radiotap_iterator_init() to init a semi-opaque iterator
>> + * struct ieee80211_radiotap_iterator (no need to init the struct beforehand)
>> + * then loop calling __ieee80211_radiotap_iterator_next()... it returns -1
>> + * if there are no more args in the header, or the next argument type index
>> + * that is present.  The iterator's this_arg member points to the start of the
>> + * argument associated with the current argument index that is present,
>> + * which can be found in the iterator's this_arg_index member.  This arg
>> + * index corresponds to the IEEE80211_RADIOTAP_... defines.
>> + */
> 
> I don't think this will show up in the kdoc output, but it sure would be
> nice. Maybe it could be part of the description of
> ieee80211_radiotap_iterator as a 'how to use this iterator' section (see
> kernel-doc-nano-HOWTO.txt, it talks about sections)? Or maybe as
> kernel-doc for the functions themselves.
> 
>> +/**
>> + * ieee80211_radiotap_iterator_init - radiotap parser iterator initialization
> 
> Oh, you have kerneldoc comments in the source file. Does anyone know
> which is preferable? I usually put everything into the header file that
> is not implementation-detail.

We mostly put kernel-doc into source files (i.e., not header files).
We use kernel-doc in header files for inline functions, macros,
structs, unions, etc., but function kernel-doc blocks are meant to
immediately precede their functions.


-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2007-06-11 15:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11  9:54 [PATCH Try#8 0/4] Radiotap injection for Monitor Mode andy
2007-06-11  9:54 ` [PATCH Try#8 1/4] mac80211: Monitor mode radiotap injection docs andy
2007-06-11  9:54 ` [PATCH Try#8 2/4] mac80211: Define present bitmap extend bit mask andy
2007-06-11  9:54 ` [PATCH Try#8 3/4] cfg80211: Radiotap parser andy
2007-06-11 11:17   ` Johannes Berg
2007-06-11 15:11     ` Randy Dunlap [this message]
2007-06-11 15:27     ` Andy Green
2007-06-11  9:54 ` [PATCH Try#8 4/4] mac80211: Monitor mode radiotap-based packet injection andy
2007-06-11 11:24   ` Johannes Berg

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=466D662C.7040809@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=andy@warmcat.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).