diff options
author | Kay Sievers <kay@vrfy.org> | 2013-12-03 01:59:32 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-03 01:59:49 +0100 |
commit | 6d91a7309ea1fcd3d5efbed6e4687a5e6ed7a01a (patch) | |
tree | ef6eda368a74b0810481e051f3de6daf886d9889 /metadata.c | |
parent | 0a0ff8552d3d0ebbfa0319b3d4dc5be996bd04ec (diff) | |
download | kdbus-bus-6d91a7309ea1fcd3d5efbed6e4687a5e6ed7a01a.tar.gz kdbus-bus-6d91a7309ea1fcd3d5efbed6e4687a5e6ed7a01a.tar.bz2 kdbus-bus-6d91a7309ea1fcd3d5efbed6e4687a5e6ed7a01a.zip |
metadata: add kernel doc
Diffstat (limited to 'metadata.c')
-rw-r--r-- | metadata.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/metadata.c b/metadata.c index b357365ea13..d63726f8b94 100644 --- a/metadata.c +++ b/metadata.c @@ -30,6 +30,10 @@ #include "names.h" #include "metadata.h" +/** + * kdbus_meta_free() - release metadata + * @meta: metadata object + */ void kdbus_meta_free(struct kdbus_meta *meta) { kfree(meta->data); @@ -351,6 +355,17 @@ static int kdbus_meta_append_seclabel(struct kdbus_meta *meta) } #endif +/** + * kdbus_meta_append() - collect metadata from current process + * @meta: metadata object + * @conn current connection + * @which KDBUS_ATTACH_* flags which typ of data to attach + * + * Collect the data specified in flags and allocate or extend + * the buffer in the metadata object. + * + * Returns: 0 on success, or negative errno on failure. + */ int kdbus_meta_append(struct kdbus_meta *meta, struct kdbus_conn *conn, u64 which) |