Mercurial > hg > CbC > CbC_xv6
view src/impl/pipe.h @ 160:5de948efb678
mv move_data_gears to impl
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Jan 2020 17:10:32 +0900 |
parents | src/move_data_gears/pipe.h@eda7ea83f4f3 |
children | 06bf68d3b83b |
line wrap: on
line source
typedef struct pipe<Impl, Isa> Impl file { #define PIPESIZE 512 struct spinlock lock; char data[PIPESIZE]; uint nread; // number of bytes read uint nwrite; // number of bytes written int readopen; // read fd is still open int writeopen; // write fd is still open } pipe;