|
PatchworkOS
|
#include <kernel/net/local/local_listen.h>#include <kernel/fs/sysfs.h>#include <kernel/log/panic.h>#include <kernel/net/local/local.h>#include <kernel/net/local/local_conn.h>#include <kernel/net/socket_family.h>#include <kernel/sched/wait.h>#include <kernel/sync/lock.h>#include <kernel/sync/rwlock.h>#include <kernel/utils/map.h>#include <stdlib.h>#include <sys/list.h>Go to the source code of this file.
Functions | |
| void | local_listen_dir_init (void) |
Initialize the /net/local/listen/ directory. | |
| local_listen_t * | local_listen_new (const char *address) |
| Allocate and initialize a new local listener. | |
| void | local_listen_free (local_listen_t *listen) |
| Free and deinitialize a local listener. | |
| local_listen_t * | local_listen_find (const char *address) |
| Find a local listener by its address. | |
Variables | |
| static dentry_t * | listenDir = NULL |
| static map_t | listeners |
| static rwlock_t | listenersLock |
Definition at line 16 of file local_listen.c.
Referenced by local_listen_dir_init(), and local_listen_new().
|
static |
Definition at line 18 of file local_listen.c.
Referenced by local_listen_dir_init(), local_listen_find(), local_listen_free(), and local_listen_new().
|
static |
Definition at line 19 of file local_listen.c.
Referenced by local_listen_dir_init(), local_listen_find(), local_listen_free(), and local_listen_new().