mars/mars_usebuf.h
Thomas Schoebel-Theuer afc83a3939 import mars-17.tgz
2013-01-08 15:53:52 +01:00

35 lines
564 B
C

// (c) 2010 Thomas Schoebel-Theuer / 1&1 Internet AG
#ifndef MARS_USEBUF_H
#define MARS_USEBUF_H
struct usebuf_mars_io_aspect {
GENERIC_ASPECT(mars_io);
atomic_t mio_count;
int mio_error;
};
struct usebuf_mars_buf_aspect {
GENERIC_ASPECT(mars_buf);
struct mars_io_object *mio;
struct bio_vec *bvec;
int bvec_offset;
int bvec_len;
};
struct usebuf_brick {
MARS_BRICK(usebuf);
};
struct usebuf_input {
MARS_INPUT(usebuf);
};
struct usebuf_output {
MARS_OUTPUT(usebuf);
struct generic_object_layout buf_object_layout;
};
MARS_TYPES(usebuf);
#endif