Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
cpu = t.cpu;
} while (1);
cpu = t.cpu;
} while (1);
close(fd);
if (!ios[DDIR_READ] && !ios[DDIR_WRITE]) {
close(fd);
if (!ios[DDIR_READ] && !ios[DDIR_WRITE]) {
return 0;
err:
close(fd);
return 0;
err:
close(fd);
struct fifo *fifo_alloc(unsigned int);
unsigned int fifo_put(struct fifo *, void *, unsigned int);
unsigned int fifo_get(struct fifo *, void *, unsigned int);
struct fifo *fifo_alloc(unsigned int);
unsigned int fifo_put(struct fifo *, void *, unsigned int);
unsigned int fifo_get(struct fifo *, void *, unsigned int);
+void fifo_free(struct fifo *);
static inline unsigned int fifo_len(struct fifo *fifo)
{
static inline unsigned int fifo_len(struct fifo *fifo)
{