|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include "socket_family.h"#include "net.h"#include "socket.h"#include <kernel/fs/sysfs.h>#include <kernel/fs/vfs.h>#include <kernel/log/log.h>#include <errno.h>#include <stdlib.h>#include <sys/list.h>Go to the source code of this file.
Functions | |
| static uint64_t | socket_factory_read (file_t *file, void *buffer, uint64_t count, uint64_t *offset) |
| static uint64_t | socket_factory_open (file_t *file) |
| static void | socket_factory_close (file_t *file) |
| uint64_t | socket_family_register (const socket_family_ops_t *ops, const char *name, socket_type_t supportedTypes) |
| Register a socket family. | |
| socket_family_t * | socket_family_get (const char *name) |
| Get a socket family by name. | |
| static socket_family_t * | socket_family_get_and_remove (const char *name) |
| void | socket_family_unregister (const char *name) |
| Unregister a socket family. | |
| void | socket_family_unregister_all (void) |
| Unregister all socket families. | |
| uint64_t | socket_family_get_dir (socket_family_t *family, path_t *outPath) |
| Get the directory of a socket family. | |
Variables | |
| static list_t | families = LIST_CREATE(families) |
| static lock_t | lock = LOCK_CREATE() |
| static file_ops_t | fileOps |
|
static |
Definition at line 38 of file socket_family.c.
|
static |
Definition at line 157 of file socket_family.c.
|
static |
Definition at line 13 of file socket_family.c.
|
static |
Definition at line 14 of file socket_family.c.
|
static |
Definition at line 47 of file socket_family.c.