Home
last modified time | relevance | path

Searched refs:evbuf (Results 1 – 2 of 2) sorted by relevance

/third_party/mtdev/src/
Devbuf.h40 static inline int evbuf_empty(const struct mtdev_evbuf *evbuf) in evbuf_empty() argument
42 return evbuf->head == evbuf->tail; in evbuf_empty()
45 static inline void evbuf_put(struct mtdev_evbuf *evbuf, in evbuf_put() argument
48 evbuf->buffer[evbuf->head++] = *ev; in evbuf_put()
49 evbuf->head &= DIM_EVENTS - 1; in evbuf_put()
52 static inline void evbuf_get(struct mtdev_evbuf *evbuf, in evbuf_get() argument
55 *ev = evbuf->buffer[evbuf->tail++]; in evbuf_get()
56 evbuf->tail &= DIM_EVENTS - 1; in evbuf_get()
DMakefile.am9 evbuf.h \