mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
local sockets: initial implementation
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <errno.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <kernel/poll.h>
|
||||
#include <kernel/sock.h>
|
||||
|
||||
#define PATHNAME_MAX 512
|
||||
#define MAXLINKDEPTH 64
|
||||
@@ -53,6 +54,12 @@ int vfs_register(vfsops_t *ops, char *name) {
|
||||
return hashtable_set(&fstable, ops, name, strlen(name), true);
|
||||
}
|
||||
|
||||
void vfs_inactive(vnode_t *vnode) {
|
||||
if (vnode->socketbinding)
|
||||
localsock_leavebinding(vnode);
|
||||
vnode->ops->inactive(vnode);
|
||||
}
|
||||
|
||||
int vfs_mount(vnode_t *backing, vnode_t *pathref, char *path, char *name, void *data) {
|
||||
vfsops_t *ops;
|
||||
int err = hashtable_get(&fstable, (void **)(&ops), name, strlen(name));
|
||||
|
||||
Reference in New Issue
Block a user