Commit 6ec0476c authored by Federico Vaga's avatar Federico Vaga

headers: export to userspace the different object types

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 1e654391
......@@ -27,6 +27,18 @@ static inline uint16_t zio_version_patch(uint32_t version)
}
/*
* We use the same functions to deal with attributes, but the structures
* we act on may be different (dev, cset, channel). Thus, all structures
* begin with the type identifier, and zio_obj_head is used in container_of
*/
enum zio_object_type {
ZIO_NONE = 0, /* reserved for non zio object */
ZIO_DEV, ZIO_CSET, ZIO_CHAN,
ZIO_TRG, ZIO_TI, /* trigger and trigger instance */
ZIO_BUF, ZIO_BI, /* buffer and buffer instance */
};
/*
* ZIO_OBJ_NAME_LEN is the name's length used for registered objects
* (such as trigger_type, buffer_type and zio_device) and thus shown in
......
......@@ -38,17 +38,6 @@ struct zio_device_operations;
struct zio_buffer_operations;
struct zio_trigger_operations;
/*
* We use the same functions to deal with attributes, but the structures
* we act on may be different (dev, cset, channel). Thus, all structures
* begin with the type identifier, and zio_obj_head is used in container_of
*/
enum zio_object_type {
ZIO_NONE = 0, /* reserved for non zio object */
ZIO_DEV, ZIO_CSET, ZIO_CHAN,
ZIO_TRG, ZIO_TI, /* trigger and trigger instance */
ZIO_BUF, ZIO_BI, /* buffer and buffer instance */
};
/* zio_obj_head is for internal use only, as explained above */
struct zio_obj_head {
......
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