Motr
M0
|
Detailed functional specification template. More...
Data Structures | |
struct | dld_sample_ds1 |
Functions | |
M0_INTERNAL int | dld_sample_sub1 (struct dld_sample_ds1 *param1, bool read_only) |
Variables | |
unsigned int | dld_bad_example |
Detailed functional specification template.
This page is part of the DLD style template. Detailed functional specifications go into a module described by the Doxygen @defgroup command. Note that you cannot use a hyphen (-) in the tag of a @defgroup.
Module documentation may spread across multiple source files. Make sure that the @addtogroup Doxygen command is used in the other files to merge their documentation into the main group. When doing so, it is important to ensure that the material flows logically when read through Doxygen.
You are not constrained to have only one module in the design. If multiple modules are present you may use multiple @defgroup commands to create individual documentation pages for each such module, though it is good idea to use separate header files for the additional modules. In particular, it is a good idea to separate the internal detailed documentation from the external documentation in this header file. Please make sure that the DLD and the modules cross-reference each other, as shown below.
M0_INTERNAL int dld_sample_sub1 | ( | struct dld_sample_ds1 * | param1, |
bool | read_only | ||
) |
Subroutine1 opens a foo for access.
Some particulars:
"@param read_only
A boolean parameter."
.-errno
on failure) should not be repeated.param1 | Parameter 1 must be locked before use. |
read_only | This controls the modifiability of the foo object. Set to true to prevent modification. |
return | value |
unsigned int dld_bad_example |
This is an example of bad documentation, where an external symbol is not documented in the externally visible header in which it is declared. This also results in Doxygen not being able to automatically reference it in the Functional Specification.
Definition at line 624 of file dld-template.c.