summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/kern/uipc_usrreq.c')
-rw-r--r--freebsd/sys/kern/uipc_usrreq.c10
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;