Fork me on GitHub

root/include/fiwix/fs_pipe.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * fiwix/include/fiwix/fs_pipe.h
   3  *
   4  * Copyright 2018, Jordi Sanfeliu. All rights reserved.
   5  * Distributed under the terms of the Fiwix License.
   6  */
   7 
   8 #ifndef _FIWIX_FS_PIPE_H
   9 #define _FIWIX_FS_PIPE_H
  10 
  11 #define PIPE_DEV        0xFFF0          /* special device number for nodev fs */
  12 
  13 extern struct fs_operations pipefs_fsop;
  14 
  15 struct pipefs_inode {
  16         char *i_data;                   /* buffer */
  17         unsigned int i_readoff;         /* offset for reads */
  18         unsigned int i_writeoff;        /* offset for writes */
  19         unsigned int i_readers;         /* number of readers */
  20         unsigned int i_writers;         /* number of writers */
  21 };
  22 
  23 #endif /* _FIWIX_FS_PIPE_H */

/* [previous][next][first][last][top][bottom][index][help] */