diff options
author | ps <ps@FreeBSD.org> | 2005-06-03 23:15:01 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-06-03 23:15:01 +0000 |
commit | bac0ce72d54d57dab4b235877be6b8090fda5902 (patch) | |
tree | e5d9af6691976de89fb4273770f09eb4af9915ad /sys/sys/event.h | |
parent | 046df800974bd8b2e1278f178f6dbeabb12dcf56 (diff) | |
download | FreeBSD-src-bac0ce72d54d57dab4b235877be6b8090fda5902.zip FreeBSD-src-bac0ce72d54d57dab4b235877be6b8090fda5902.tar.gz |
Wrap copyin/copyout for kevent so the 32bit wrapper does not have
to malloc nchanges * sizeof(struct kevent) AND/OR nevents *
sizeof(struct kevent) on every syscall.
Glanced at by: peter, jmg
Obtained from: Yahoo!
MFC after: 2 weeks
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index ef20bec..3cf8bce 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -192,6 +192,11 @@ struct knote { #define kn_data kn_kevent.data #define kn_fp kn_ptr.p_fp }; +struct kevent_copyops { + void *arg; + int (*k_copyout)(void *arg, struct kevent *kevp, int count); + int (*k_copyin)(void *arg, struct kevent *kevp, int count); +}; struct thread; struct proc; |