UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions
pipe.c File Reference
#include "types.h"
#include "defs.h"
#include "param.h"
#include "mmu.h"
#include "proc.h"
#include "fs.h"
#include "file.h"
#include "spinlock.h"

Go to the source code of this file.

Data Structures

struct  pipe
 

Macros

#define PIPESIZE   512
 

Functions

int pipealloc (struct file **f0, struct file **f1)
 
void pipeclose (struct pipe *p, int writable)
 
int pipewrite (struct pipe *p, char *addr, int n)
 
int piperead (struct pipe *p, char *addr, int n)
 

Macro Definition Documentation

#define PIPESIZE   512

Definition at line 10 of file pipe.c.

Function Documentation

int pipealloc ( struct file **  f0,
struct file **  f1 
)

Definition at line 22 of file pipe.c.

void pipeclose ( struct pipe p,
int  writable 
)

Definition at line 59 of file pipe.c.

int piperead ( struct pipe p,
char *  addr,
int  n 
)

Definition at line 100 of file pipe.c.

int pipewrite ( struct pipe p,
char *  addr,
int  n 
)

Definition at line 78 of file pipe.c.