#include <syscall.h>
Include dependency graph for devNull.c:

Functions | |
| static int | null_open (const char *path, int flags, int mode) |
| Is not called for null. | |
| static int | null_close (int fd) |
| Is not called for null. | |
| static int | null_write (int fd, const void *ptr, int len) |
| Writes to null device. | |
| static int | null_read (int fd, void *ptr, int len) |
| Reads from the null uart. | |
Variables | |
| const devoptab_t | null_devoptab |
| null table | |
Prints will be all lost. The prints will be not shown to the user.
| static int null_close | ( | int | fd | ) | [static] |
Is not called for null.
| fd | file descriptor |
| static int null_open | ( | const char * | path, | |
| int | flags, | |||
| int | mode | |||
| ) | [static] |
Is not called for null.
| path | file to be opened | |
| flags | opening flags | |
| mode | opening mode |
| static int null_read | ( | int | fd, | |
| void * | ptr, | |||
| int | len | |||
| ) | [static] |
Reads from the null uart.
| fd | file descriptor | |
| ptr | pointer to buffer where the read data will be placed | |
| len | length og the expected data |
| static int null_write | ( | int | fd, | |
| const void * | ptr, | |||
| int | len | |||
| ) | [static] |
Writes to null device.
| fd | file descriptor | |
| ptr | pointer to the buffer to be tx | |
| len | length of data to be transfered |
| const devoptab_t null_devoptab |
1.4.7