-/* $OpenBSD: hotplug.c,v 1.22 2022/07/02 08:50:41 visa Exp $ */
+/* $OpenBSD: hotplug.c,v 1.23 2023/09/08 20:00:27 mvs Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
#include <sys/fcntl.h>
#include <sys/hotplug.h>
#include <sys/ioctl.h>
+#include <sys/selinfo.h>
#include <sys/vnode.h>
#define HOTPLUG_MAXEVENTS 64
-/* $OpenBSD: wseventvar.h,v 1.11 2022/07/02 08:50:42 visa Exp $ */
+/* $OpenBSD: wseventvar.h,v 1.12 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: wseventvar.h,v 1.1 1998/03/22 14:24:03 drochner Exp $ */
/*
* @(#)event_var.h 8.1 (Berkeley) 6/11/93
*/
+#include <sys/selinfo.h>
#include <sys/sigio.h>
/*
-/* $OpenBSD: cd9660_vnops.c,v 1.94 2023/03/08 04:43:08 guenther Exp $ */
+/* $OpenBSD: cd9660_vnops.c,v 1.95 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */
/*-
kn->kn_hook = (caddr_t)vp;
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
}
int
-/* $OpenBSD: fuse_device.c,v 1.38 2022/08/29 06:08:04 jsg Exp $ */
+/* $OpenBSD: fuse_device.c,v 1.39 2023/09/08 20:00:28 mvs Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
#include <sys/statvfs.h>
#include <sys/vnode.h>
#include <sys/fusebuf.h>
+#include <sys/selinfo.h>
#include "fusefs_node.h"
#include "fusefs.h"
-/* $OpenBSD: fuse_vnops.c,v 1.66 2022/06/26 05:20:42 visa Exp $ */
+/* $OpenBSD: fuse_vnops.c,v 1.67 2023/09/08 20:00:28 mvs Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
kn->kn_hook = (caddr_t)vp;
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
}
int
-/* $OpenBSD: msdosfs_vnops.c,v 1.139 2022/08/23 20:37:16 cheloha Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.140 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
kn->kn_hook = (caddr_t)vp;
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
}
int
-/* $OpenBSD: nfs_kq.c,v 1.35 2023/03/08 04:43:09 guenther Exp $ */
+/* $OpenBSD: nfs_kq.c,v 1.36 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: nfs_kq.c,v 1.7 2003/10/30 01:43:10 simonb Exp $ */
/*-
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
/* Remove the vnode from watch list */
if ((kn->kn_flags & (__EV_POLL | __EV_SELECT)) == 0)
return (error);
}
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
-/* $OpenBSD: vnode.h,v 1.168 2023/02/10 14:34:17 visa Exp $ */
+/* $OpenBSD: vnode.h,v 1.169 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
#include <sys/buf.h>
#include <sys/types.h>
+#include <sys/event.h>
#include <sys/queue.h>
-#include <sys/selinfo.h>
#include <sys/tree.h>
/*
TAILQ_HEAD(, namecache) v_cache_dst; /* cache entries to us */
void *v_data; /* private data for fs */
- struct selinfo v_selectinfo; /* identity of poller(s) */
+ struct klist v_klist; /* identity of poller(s) */
};
#define v_mountedhere v_un.vu_mountedhere
#define v_socket v_un.vu_socket
#define VATTR_NULL(vap) vattr_null(vap)
#define NULLVP ((struct vnode *)NULL)
#define VN_KNOTE(vp, b) \
- knote_locked(&vp->v_selectinfo.si_note, (b))
+ knote_locked(&vp->v_klist, (b))
/*
* Global vnode data.
-/* $OpenBSD: tmpfs_vnops.c,v 1.52 2022/06/26 05:20:42 visa Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.53 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
kn->kn_hook = (caddr_t)vp;
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
}
int
-/* $OpenBSD: ufs_vnops.c,v 1.157 2023/03/08 04:43:09 guenther Exp $ */
+/* $OpenBSD: ufs_vnops.c,v 1.158 2023/09/08 20:00:28 mvs Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */
/*
kn->kn_hook = (caddr_t)vp;
- klist_insert_locked(&vp->v_selectinfo.si_note, kn);
+ klist_insert_locked(&vp->v_klist, kn);
return (0);
}
{
struct vnode *vp = (struct vnode *)kn->kn_hook;
- klist_remove_locked(&vp->v_selectinfo.si_note, kn);
+ klist_remove_locked(&vp->v_klist, kn);
}
int