It is not obvious that the function initializes the afh_info structure
so that its members point to memory-mapped data. This comment adds
some clarifying comments.
sprintf(p, "%s", afhi->tags.comment);
}
sprintf(p, "%s", afhi->tags.comment);
}
+/* does not load the chunk table */
static void load_afhi(const char *buf, struct afh_info *afhi)
{
afhi->seconds_total = read_u32(buf + AFHI_SECONDS_TOTAL_OFFSET);
static void load_afhi(const char *buf, struct afh_info *afhi)
{
afhi->seconds_total = read_u32(buf + AFHI_SECONDS_TOTAL_OFFSET);
*
* \return The return value of the underlying call to osl_get_object().
*
*
* \return The return value of the underlying call to osl_get_object().
*
+ * After the call the members of the afhi structure point to mapped memory
+ * which is owned by the osl table, Hence the caller must not attempt to free
+ * this memory by calling \ref clear_afhi().
+ *
* \sa get_chunk_table_of_row().
*/
int get_afhi_of_row(const struct osl_row *row, struct afh_info *afhi)
* \sa get_chunk_table_of_row().
*/
int get_afhi_of_row(const struct osl_row *row, struct afh_info *afhi)