Question on kernel-docs comment syntax.
I'd like to add some kdocs comment such that it creates a link to another struct (in another file/subsystem).
* @get_et_stats: Ethtool API to get a set of u64 stats.
* See @ethtool_ops
The above does NOT appear to work as I would hope.
I've had no luck finding documentation for the syntax.... anyone have a pointer to a proper web page or document?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 6 lines · Ben Greear
I'd like to add some kdocs comment such that it creates a link to another struct (in another file/subsystem).
* @get_et_stats: Ethtool API to get a set of u64 stats.
* See @ethtool_ops
Quoted 7 lines
The above does NOT appear to work as I would hope.
I've had no luck finding documentation for the syntax.... anyone have a pointer to a proper web page or document?
Thanks,
Ben
The only documentation for kernel-doc syntax that I know of is in Documentation/kernel-doc-nano-HOWTO.txt .
'@' is used as a prefix for function parameters.
'&' is used as a prefix for structs.
Copying that file's text:
'funcname()' - function
'$ENVVAR' - environment variable
'&struct_name' - name of a structure (up to two words including 'struct') '@parameter' - name of a parameter
'%CONST' - name of a constant.
HTH.
Signature · 1 line
~Randy