metadata: document creds_item_off and auxgrps_item_off fields
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 19 Aug 2014 01:43:56 +0000 (02:43 +0100)
committerDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 07:02:39 +0000 (09:02 +0200)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
metadata.c
metadata.h

index eb286aaf3e7ee0d3eece39250c21504520ceb8ad..3dff9ac36013e815262d575d3e30a9f18e4f6d6e 100644 (file)
@@ -130,7 +130,8 @@ kdbus_meta_append_item(struct kdbus_meta *meta, u64 type, size_t payload_size)
  * kdbus_meta_append_data() - append given raw data to metadata object
  * @meta:              Metadata object
  * @type:              KDBUS_ITEM_* type
- * @data:              pointer to data to copy from
+ * @data:              pointer to data to copy from. If it is NULL
+ *                     then just make space in the metadata buffer.
  * @len:               number of bytes to copy
  *
  * Return: 0 on success, negative errno on failure.
index a142aea87408f48656d5093587a88b28400db051..1bdb53751d9e87fa652a319116cd9384f4dce35e 100644 (file)
 /**
  * struct kdbus_meta - metadata buffer
  * @attached:          Flags for already attached data
- * @domain:                    Domain the metadata belongs to
+ * @domain:            Domain the metadata belongs to
  * @data:              Allocated buffer
  * @size:              Number of bytes used
  * @allocated_size:    Size of buffer
+ * @creds_item_off     The offset of the creds item in the @data
+ *                     buffer field, if the user requested this
+ *                     metainfo in its attach flags. 0 if unused.
+ * @auxgrps_item_off   The offset of the auxgroups item in the
+ *                     @data buffer field, if the user requested
+ *                     this metainfo. 0 if unused.
  *
  * Used to collect and store connection metadata in a pre-compiled
  * buffer containing struct kdbus_item.