Commit dc911ca0 authored by Federico Vaga's avatar Federico Vaga

lib: add some comments

Signed-off-by: Federico Vaga's avatarfederico.vaga@cern.ch <federico.vaga@cern.ch>
parent 733226d6
...@@ -17,6 +17,12 @@ ...@@ -17,6 +17,12 @@
#include "libzio.h" #include "libzio.h"
/**
* It adds standard and extended attributes associated to a given zio object
* @param[in] zobj zio object to inspect
* @return 0 on success, otherwise -1 and errno is appropriately set
*/
static int __uzio_attributes_add(struct uzio_object *zobj) static int __uzio_attributes_add(struct uzio_object *zobj)
{ {
char pattern[UZIO_MAX_PATH_LEN]; char pattern[UZIO_MAX_PATH_LEN];
...@@ -45,6 +51,12 @@ static int __uzio_attributes_add(struct uzio_object *zobj) ...@@ -45,6 +51,12 @@ static int __uzio_attributes_add(struct uzio_object *zobj)
return 0; return 0;
} }
/**
* It fills a zio object information
* @param[in] zobj zio object to inspect
* @return 0 on success, otherwise -1 and errno is appropriately set
*/
static int __uzio_object_add(struct uzio_object *zobj) static int __uzio_object_add(struct uzio_object *zobj)
{ {
char tmp[ZIO_OBJ_NAME_FULL_LEN]; char tmp[ZIO_OBJ_NAME_FULL_LEN];
...@@ -81,6 +93,8 @@ static int __uzio_object_add(struct uzio_object *zobj) ...@@ -81,6 +93,8 @@ static int __uzio_object_add(struct uzio_object *zobj)
return __uzio_attributes_add(zobj); return __uzio_attributes_add(zobj);
} }
static int __uzio_device_cset_chan_buf_add(struct uzio_channel *chan) static int __uzio_device_cset_chan_buf_add(struct uzio_channel *chan)
{ {
snprintf(chan->buffer.head.sysbase, UZIO_MAX_PATH_LEN, snprintf(chan->buffer.head.sysbase, UZIO_MAX_PATH_LEN,
...@@ -117,6 +131,11 @@ static void __uzio_device_cset_interleave_set(struct uzio_cset *cset) ...@@ -117,6 +131,11 @@ static void __uzio_device_cset_interleave_set(struct uzio_cset *cset)
} }
/**
* It adds a channel to a channel-set
* @param[in] cset channel-set to update
* @return 0 on success, otherwise -1 and errno is appropriately set
*/
static int __uzio_device_cset_chan_add(struct uzio_cset *cset) static int __uzio_device_cset_chan_add(struct uzio_cset *cset)
{ {
struct uzio_channel *chan; struct uzio_channel *chan;
...@@ -206,6 +225,12 @@ static void __uzio_device_cset_chan_del(struct uzio_cset *cset) ...@@ -206,6 +225,12 @@ static void __uzio_device_cset_chan_del(struct uzio_cset *cset)
free(cset->chan); free(cset->chan);
} }
/**
* It adds a trigger to a channel-set
* @param[in] cset channel-set to update
* @return 0 on success, otherwise -1 and errno is appropriately set
*/
static int __uzio_device_cset_trig_add(struct uzio_cset *cset) static int __uzio_device_cset_trig_add(struct uzio_cset *cset)
{ {
int err; int err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment