Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
dc911ca0
Commit
dc911ca0
authored
May 30, 2016
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add some comments
Signed-off-by:
federico.vaga@cern.ch
<
federico.vaga@cern.ch
>
parent
733226d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
libzio-scan.c
lib/libzio-scan.c
+25
-0
No files found.
lib/libzio-scan.c
View file @
dc911ca0
...
...
@@ -17,6 +17,12 @@
#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
)
{
char
pattern
[
UZIO_MAX_PATH_LEN
];
...
...
@@ -45,6 +51,12 @@ static int __uzio_attributes_add(struct uzio_object *zobj)
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
)
{
char
tmp
[
ZIO_OBJ_NAME_FULL_LEN
];
...
...
@@ -81,6 +93,8 @@ static int __uzio_object_add(struct uzio_object *zobj)
return
__uzio_attributes_add
(
zobj
);
}
static
int
__uzio_device_cset_chan_buf_add
(
struct
uzio_channel
*
chan
)
{
snprintf
(
chan
->
buffer
.
head
.
sysbase
,
UZIO_MAX_PATH_LEN
,
...
...
@@ -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
)
{
struct
uzio_channel
*
chan
;
...
...
@@ -206,6 +225,12 @@ static void __uzio_device_cset_chan_del(struct uzio_cset *cset)
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
)
{
int
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment