mars/mars_usebuf.h

30 lines
494 B
C
Raw Normal View History

2010-07-30 05:46:22 +00:00
// (c) 2010 Thomas Schoebel-Theuer / 1&1 Internet AG
#ifndef MARS_USEBUF_H
#define MARS_USEBUF_H
struct usebuf_mars_buf_aspect {
GENERIC_ASPECT(mars_buf);
2010-08-04 17:32:04 +00:00
struct mars_buf_object *origmbuf;
2010-07-30 05:46:22 +00:00
struct bio_vec *bvec;
int bvec_offset;
int bvec_len;
2010-08-04 17:32:04 +00:00
atomic_t mbuf_count;
2010-07-30 05:46:22 +00:00
};
struct usebuf_brick {
MARS_BRICK(usebuf);
};
struct usebuf_input {
MARS_INPUT(usebuf);
};
struct usebuf_output {
MARS_OUTPUT(usebuf);
2010-08-01 20:21:18 +00:00
struct generic_object_layout buf_object_layout;
2010-07-30 05:46:22 +00:00
};
MARS_TYPES(usebuf);
#endif