Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/kqueue]: src/sys/sys add struct klist v_klist to struct vnode, and proto...
details: https://anonhg.NetBSD.org/src/rev/91871fda6374
branches: kqueue
changeset: 512346:91871fda6374
user: lukem <lukem%NetBSD.org@localhost>
date: Tue Jul 10 13:28:45 2001 +0000
description:
add struct klist v_klist to struct vnode, and prototype vn_kqfilter()
diffstat:
sys/sys/vnode.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r e815f7e37dc3 -r 91871fda6374 sys/sys/vnode.h
--- a/sys/sys/vnode.h Tue Jul 10 13:27:57 2001 +0000
+++ b/sys/sys/vnode.h Tue Jul 10 13:28:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnode.h,v 1.91 2001/04/29 04:23:20 thorpej Exp $ */
+/* $NetBSD: vnode.h,v 1.91.2.1 2001/07/10 13:28:45 lukem Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -38,6 +38,7 @@
#ifndef _SYS_VNODE_H_
#define _SYS_VNODE_H_
+#include <sys/event.h>
#include <sys/lock.h>
#include <sys/queue.h>
@@ -120,6 +121,7 @@
struct lock *v_vnlock; /* pointer to vnode lock */
enum vtagtype v_tag; /* type of underlying data */
void *v_data; /* private data for fs */
+ struct klist v_klist; /* knotes attached to vnode */
};
#define v_mountedhere v_un.vu_mountedhere
#define v_socket v_un.vu_socket
@@ -535,6 +537,7 @@
int vn_readdir(struct file *fp, char *buf, int segflg, u_int count,
int *done, struct proc *p, off_t **cookies, int *ncookies);
int vn_poll(struct file *fp, int events, struct proc *p);
+int vn_kqfilter(struct file *fp, struct knote *kn);
int vn_stat(void *fdata, struct stat *sb, struct proc *p);
void vn_syncer_add_to_worklist(struct vnode *vp, int delay);
void vn_syncer_remove_from_worklist(struct vnode *vp);
Home |
Main Index |
Thread Index |
Old Index