Goals for this project:

See Coding Guidelines for details on the formatting of the function comments themselves.  The function comment should contain most or all of the comments for the function, so that the reader can understand what the function is doing, instead of having comments spread throughout the function.  Comments inline with the code should be short and be used to point out some tricky bit of implementation detail that needs to be explained.  For example:
 

/**
 * Implements method_table::method_name() method for subsystem.
 *
 * Provide a description of the function here, including any details
 * about the function that may be important.  This includes information
 * about locks held by the caller or other requirements that the function
 * has of the calling function and how \a var1 and \a var2 might be used.
 *
 * \param[in]     var1    description of this variable
 * \param[in]     var2    another description of a variable,
 *                        with more detail than fits on one line
 * \param[in,out] var3    this one is for both input and output 
 *
 * \retval        0       success
 * \retval        -EAGAIN need to call this function again
 * \retval        -ENOMEM error allocating some structure
 * \retval        negative error number for other errors
 */