netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel doc / docbook pdfdocs question
@ 2009-09-30 19:59 Doug Maxey
  2009-10-01  0:30 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Maxey @ 2009-09-30 19:59 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: netdev


Randy,

This may be slightly off topic for this list, but it does involve an
(as yet un-released) network driver. :)

Do you have any insight that could guide me toward a fix for an issue
seen with some header file constructs when trying to generate a pdf
docbook?

In my .tmpl file I do the "process my header file" construct:
...
!Ipath/to/myheader.h
...

In myheader.h an example decl that is giving me fits looks like:

struct foo {
	int bar;
	DECLARE_BITMAP(baz, LENGTH);
	int fotz;
};

It puts the bar and fotz decls in the output, but only outputs a
warning to stderr on the line with DECLARE_BITMAP, nothing about baz
(or DECLARE_BITMAP) is output into the .xml file.

My question is, would it be easier to pre-process the header, say with
gcc -EC via some rule in Documentation/DocBook/Makefile, or to try and
fix whatever gets called by scripts/basic/docbook?

I tried to find what the exact calling sequence was, but am getting
lost in what actually does the xml generation, and therefore how to
fix what is choking on the DECLARE_BITMAP.

Any tips will be very appreciated!

++doug



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel doc / docbook pdfdocs question
  2009-09-30 19:59 kernel doc / docbook pdfdocs question Doug Maxey
@ 2009-10-01  0:30 ` Stephen Hemminger
  2009-10-01  5:42   ` Doug Maxey
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2009-10-01  0:30 UTC (permalink / raw)
  To: Doug Maxey; +Cc: Randy Dunlap, netdev

On Wed, 30 Sep 2009 14:59:36 -0500
Doug Maxey <dwm@enoyolf.org> wrote:

> 
> Randy,
> 
> This may be slightly off topic for this list, but it does involve an
> (as yet un-released) network driver. :)
> 
> Do you have any insight that could guide me toward a fix for an issue
> seen with some header file constructs when trying to generate a pdf
> docbook?
> 

Why clutter docbook output (which is supposed to be about general kernel
API's) with output for data structures in one driver.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel doc / docbook pdfdocs question
  2009-10-01  0:30 ` Stephen Hemminger
@ 2009-10-01  5:42   ` Doug Maxey
  2009-10-01 15:57     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Maxey @ 2009-10-01  5:42 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Randy Dunlap, netdev


On Wed, 30 Sep 2009 17:30:02 PDT, Stephen Hemminger wrote:
>On Wed, 30 Sep 2009 14:59:36 -0500
>Doug Maxey <dwm@enoyolf.org> wrote:
>
>> 
>> Randy,
>> 
>> This may be slightly off topic for this list, but it does involve an
>> (as yet un-released) network driver. :)
>> 
>> Do you have any insight that could guide me toward a fix for an issue
>> seen with some header file constructs when trying to generate a pdf
>> docbook?
>> 
>
>Why clutter docbook output (which is supposed to be about general kernel
>API's) with output for data structures in one driver.

It would be a general mechanism, and it would be to document an API.
There are other subsystems that use DECLARE_BITMAP() (e.g., scsi).
Just none at the moment that attempt to describe such a member,
possibly because there isn't a way to document it.  Dunno.  Build it
and they will come.  There is one party that is interested anyway.

Finally did find where this was getting warned about / tossed, in
kernel-doc itself. =)

++doug



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel doc / docbook pdfdocs question
  2009-10-01  5:42   ` Doug Maxey
@ 2009-10-01 15:57     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2009-10-01 15:57 UTC (permalink / raw)
  To: Doug Maxey; +Cc: Stephen Hemminger, netdev

On Thu, 01 Oct 2009 00:42:27 -0500 Doug Maxey wrote:

> 
> On Wed, 30 Sep 2009 17:30:02 PDT, Stephen Hemminger wrote:
> >On Wed, 30 Sep 2009 14:59:36 -0500
> >Doug Maxey <dwm@enoyolf.org> wrote:
> >
> >> 
> >> Randy,
> >> 
> >> This may be slightly off topic for this list, but it does involve an
> >> (as yet un-released) network driver. :)
> >> 
> >> Do you have any insight that could guide me toward a fix for an issue
> >> seen with some header file constructs when trying to generate a pdf
> >> docbook?
> >> 
> >
> >Why clutter docbook output (which is supposed to be about general kernel
> >API's) with output for data structures in one driver.
> 
> It would be a general mechanism, and it would be to document an API.
> There are other subsystems that use DECLARE_BITMAP() (e.g., scsi).
> Just none at the moment that attempt to describe such a member,
> possibly because there isn't a way to document it.  Dunno.  Build it
> and they will come.  There is one party that is interested anyway.
> 
> Finally did find where this was getting warned about / tossed, in
> kernel-doc itself. =)

Hi,

Sorry for the delayed reply.  I was away yesterday.

What did you find in kernel-doc?  Something like the
"cannot understand prototype" message or something else?

Features/support in kernel-doc is mostly added on an as-needed basis.
Now that you have provided a sample, I can try to add support for it,
but it's not exactly a high priority for me... or you can add support
for it to kernel-doc and send a patch for it.  :)


---
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-01 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 19:59 kernel doc / docbook pdfdocs question Doug Maxey
2009-10-01  0:30 ` Stephen Hemminger
2009-10-01  5:42   ` Doug Maxey
2009-10-01 15:57     ` Randy Dunlap

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).