|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "fifo.h"#include "kernel/errno.h"#include "kernel/memory/heap.h"#include "kernel/process/process.h"#include "kernel/signal/signal.h"#include "kernel/sync/spinlock.h"#include "kernel/sync/wait_queue.h"#include "kernel/syscall/pipe.h"Macros | |
| #define | FIFO_MAX 32 |
Functions | |
| int32_t | fifo_open (fs_mount_t *mount, uint32_t inode, uint32_t flags, file_t **out) |
| open the named pipe that is inode on a mount. | |
| void | fifo_close (file_t *file) |
| close an end of a named pipe (the file's release). | |
| #define FIFO_MAX 32 |
| int32_t fifo_open | ( | fs_mount_t * | mount, |
| uint32_t | inode, | ||
| uint32_t | flags, | ||
| file_t ** | out ) |
open the named pipe that is inode on a mount.
| flags | the open flags (the access mode and O_NONBLOCK). |
| out | gets the open file. |
| void fifo_close | ( | file_t * | file | ) |
close an end of a named pipe (the file's release).