|
PatchworkOS
10941b4
A non-POSIX operating system.
|
#include <kernel/fs/path.h>#include <kernel/sched/wait.h>#include <kernel/sync/mutex.h>#include <kernel/sync/rwmutex.h>#include <kernel/utils/ref.h>#include <stdint.h>#include <sys/io.h>#include <sys/list.h>Go to the source code of this file.
Data Structures | |
| struct | socket_t |
| Socket structure. More... | |
| struct | netfs_family_t |
| Socket Family structure. More... | |
Macros | |
| #define | NETFS_NAME "netfs" |
| The name of the networking filesystem. | |
| #define | NETFS_BACKLOG_DEFAULT 128 |
| The default backlog size for listening sockets. | |
Typedefs | |
| typedef struct netfs_family | netfs_family_t |
Enumerations | |
| enum | socket_type_t { SOCKET_STREAM = 1 << 0 , SOCKET_DGRAM = 1 << 1 , SOCKET_SEQPACKET = 1 << 2 , SOCKET_RAW = 1 << 3 , SOCKET_RDM = 1 << 4 , SOCKET_TYPE_AMOUNT = 5 } |
| Socket types. More... | |
| enum | socket_state_t { SOCKET_NEW , SOCKET_BOUND , SOCKET_LISTENING , SOCKET_CONNECTING , SOCKET_CONNECTED , SOCKET_CLOSING , SOCKET_CLOSED } |
| Socket states. More... | |
Functions | |
| void | netfs_init (void) |
| Initialize the networking filesystem. | |
| uint64_t | netfs_family_register (netfs_family_t *family) |
| Register a network family. | |
| void | netfs_family_unregister (netfs_family_t *family) |
| Unregister a network family. | |