summaryrefslogtreecommitdiff
path: root/kernel/fs/tmpfs.h
blob: 81ba0eff246bdcf28fc9ebe0a4c620ccf7b15e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef TMP_H
#define TMP_H
#include <fs/fifo.h>
#include <fs/vfs.h>

#define TMP_BUFFER_SIZE (1024 * 10)

typedef struct {
  FIFO_FILE *fifo;
  u8 is_closed;
  vfs_inode_t *read_inode;
} tmp_inode;

void pipe(int fd[2]);
void dual_pipe(int fd[2]);
#endif