diff options
author | Chris Johns <chrisj@rtems.org> | 2021-08-02 15:09:41 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2021-08-15 10:16:04 +1000 |
commit | 00f0dcabe7be8878251a3b7ed7ab2cefabb2de04 (patch) | |
tree | f304436cb535b66b8135718d26a4c7d776f02556 /freebsd/sys/kern/uipc_usrreq.c | |
parent | 796fb734a661822602905f90e53225e2b0391ffd (diff) |
sys/kern: Add VFS supportp5-4457-vfs
- Refactor the libio interface
- Move syscalls into an rtemsbsd location
- Provide a root directory mount point
Update #4475
Diffstat (limited to 'freebsd/sys/kern/uipc_usrreq.c')
-rw-r--r-- | freebsd/sys/kern/uipc_usrreq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/freebsd/sys/kern/uipc_usrreq.c b/freebsd/sys/kern/uipc_usrreq.c index 13fca66d..db07ce8a 100644 --- a/freebsd/sys/kern/uipc_usrreq.c +++ b/freebsd/sys/kern/uipc_usrreq.c @@ -608,7 +608,8 @@ rtems_uipc_imfs_destroy(IMFS_jnode_t *node) } static const IMFS_node_control rtems_uipc_imfs_control = - IMFS_GENERIC_INITIALIZER(&socketops, rtems_uipc_imfs_initialize, + IMFS_GENERIC_INITIALIZER(&rtems_bsd_sysgen_imfsnodeops, + rtems_uipc_imfs_initialize, rtems_uipc_imfs_destroy); static const IMFS_node_control rtems_uipc_imfs_zombi_control = @@ -616,12 +617,13 @@ static const IMFS_node_control rtems_uipc_imfs_zombi_control = IMFS_node_destroy_default); static void -VOP_UNP_DETACH(IMFS_generic_t *vp) +VOP_UNP_DETACH_rtems(IMFS_generic_t *vp) { - vp->Node.control = &rtems_uipc_imfs_zombi_control; vp->context = NULL; } +#undef VOP_UNP_DETACH +#define VOP_UNP_DETACH VOP_UNP_DETACH_rtems #endif /* __rtems__ */ static int uipc_bindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td) @@ -1725,7 +1727,7 @@ unp_connectat(int fd, struct socket *so, struct sockaddr *nam, &ctx, &soun->sun_path[0], (size_t)len, eval_flags, &rtems_filesystem_root, &rtems_filesystem_current); - if (currentloc->handlers == &socketops) { + if (currentloc->handlers == &rtems_bsd_sysgen_imfsnodeops) { vp = currentloc->node_access; } else { vp = NULL; |