UbixOS V2 2.0

Data Structures | Macros
pipe_fs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | pipe_inode_info

## Macros
#define | PIPE_BASE(inode) ((inode).u.pipe_i.base)
#define | PIPE_EMPTY(inode) (PIPE_SIZE(inode)==0)
#define | PIPE_END(inode)
#define | PIPE_FREE(inode) (PIPE_BUF - PIPE_LEN(inode))
#define | PIPE_FULL(inode) (PIPE_SIZE(inode)==PIPE_BUF)
#define | PIPE_LEN(inode) ((inode).u.pipe_i.len)
#define | PIPE_LOCK(inode) ((inode).u.pipe_i.lock)
#define | PIPE_MAX_RCHUNK(inode) (PIPE_BUF - PIPE_START(inode))
#define | PIPE_MAX_WCHUNK(inode) (PIPE_BUF - PIPE_END(inode))
#define | PIPE_RD_OPENERS(inode) ((inode).u.pipe_i.rd_openers)
#define | PIPE_READERS(inode) ((inode).u.pipe_i.readers)
#define | PIPE_SIZE(inode) PIPE_LEN(inode)
#define | PIPE_START(inode) ((inode).u.pipe_i.start)
#define | PIPE_WAIT(inode) ((inode).u.pipe_i.wait)
#define | PIPE_WR_OPENERS(inode) ((inode).u.pipe_i.wr_openers)
#define | PIPE_WRITERS(inode) ((inode).u.pipe_i.writers)

## Macro Definition Documentation

## ◆ PIPE_BASE

#define PIPE_BASE | ( |  | inode | ) | ((inode).u.pipe_i.base)

Definition at line 45 of file pipe_fs.h.

## ◆ PIPE_EMPTY

#define PIPE_EMPTY | ( |  | inode | ) | (PIPE_SIZE(inode)==0)

Definition at line 55 of file pipe_fs.h.

## ◆ PIPE_END

#define PIPE_END | ( |  | inode | ) |

Value:
((PIPE_START(inode)+PIPE_LEN(inode))&\
(PIPE_BUF-1))

Definition at line 58 of file pipe_fs.h.

## ◆ PIPE_FREE

#define PIPE_FREE | ( |  | inode | ) | (PIPE_BUF - PIPE_LEN(inode))

Definition at line 57 of file pipe_fs.h.

## ◆ PIPE_FULL

#define PIPE_FULL | ( |  | inode | ) | (PIPE_SIZE(inode)==PIPE_BUF)

Definition at line 56 of file pipe_fs.h.

## ◆ PIPE_LEN

#define PIPE_LEN | ( |  | inode | ) | ((inode).u.pipe_i.len)

Definition at line 47 of file pipe_fs.h.

## ◆ PIPE_LOCK

#define PIPE_LOCK | ( |  | inode | ) | ((inode).u.pipe_i.lock)

Definition at line 52 of file pipe_fs.h.

## ◆ PIPE_MAX_RCHUNK

#define PIPE_MAX_RCHUNK | ( |  | inode | ) | (PIPE_BUF - PIPE_START(inode))

Definition at line 60 of file pipe_fs.h.

## ◆ PIPE_MAX_WCHUNK

#define PIPE_MAX_WCHUNK | ( |  | inode | ) | (PIPE_BUF - PIPE_END(inode))

Definition at line 61 of file pipe_fs.h.

## ◆ PIPE_RD_OPENERS

#define PIPE_RD_OPENERS | ( |  | inode | ) | ((inode).u.pipe_i.rd_openers)

Definition at line 48 of file pipe_fs.h.

## ◆ PIPE_READERS

#define PIPE_READERS | ( |  | inode | ) | ((inode).u.pipe_i.readers)

Definition at line 50 of file pipe_fs.h.

## ◆ PIPE_SIZE

#define PIPE_SIZE | ( |  | inode | ) | PIPE_LEN(inode)

Definition at line 53 of file pipe_fs.h.

## ◆ PIPE_START

#define PIPE_START | ( |  | inode | ) | ((inode).u.pipe_i.start)

Definition at line 46 of file pipe_fs.h.

## ◆ PIPE_WAIT

#define PIPE_WAIT | ( |  | inode | ) | ((inode).u.pipe_i.wait)

Definition at line 44 of file pipe_fs.h.

## ◆ PIPE_WR_OPENERS

#define PIPE_WR_OPENERS | ( |  | inode | ) | ((inode).u.pipe_i.wr_openers)

Definition at line 49 of file pipe_fs.h.

## ◆ PIPE_WRITERS

#define PIPE_WRITERS | ( |  | inode | ) | ((inode).u.pipe_i.writers)

Definition at line 51 of file pipe_fs.h.

PIPE_START
#define PIPE_START(inode)
Definition: pipe_fs.h:46
inode
Definition: inode.h:39
PIPE_LEN
#define PIPE_LEN(inode)
Definition: pipe_fs.h:47