Home | History | Annotate | Download | only in sun
History log of /src/sys/dev/sun/event.c
RevisionDateAuthorComments
 1.26  26-Sep-2021  thorpej Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89
 1.25  18-Dec-2020  thorpej Use sel{record,remove}_knote().
 1.24  25-Oct-2017  maya branches: 1.24.18;
Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- { a, b, c, d
+ {
+ .f_isfd = a,
+ .f_attach = b,
+ .f_detach = c,
+ .f_event = d,
};
 1.23  14-Mar-2009  dsl branches: 1.23.22;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.22  01-Mar-2008  rmind branches: 1.22.4; 1.22.12; 1.22.18;
Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
 1.21  05-Dec-2007  pooka branches: 1.21.8; 1.21.12;
Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
 1.20  04-Mar-2007  christos branches: 1.20.14; 1.20.16; 1.20.22; 1.20.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.19  17-Feb-2007  pavel Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
 1.18  11-Dec-2005  christos branches: 1.18.26;
merge ktrace-lwp.
 1.17  27-Feb-2005  perry branches: 1.17.4;
nuke trailing whitespace
 1.16  04-Feb-2005  perry de-__P
 1.15  07-Aug-2003  agc branches: 1.15.8; 1.15.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.14  29-Jun-2003  fvdl branches: 1.14.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.13  29-Jun-2003  darrenr More changes for providing lwpid for ktrace (sparc GENERIC built)
 1.12  26-Nov-2002  christos si_ -> sel_
 1.11  23-Oct-2002  jdolecek merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
 1.10  21-Oct-2002  uwe vuid_event.h is in dev/sun now.
 1.9  14-Jan-2002  tsutsui Call malloc(9) with M_ZERO flag instead of bzero() after malloc().
 1.8  13-Nov-2001  lukem add RCSIDs
 1.7  07-Jun-2001  mrg branches: 1.7.2;
LKM friendly: move ev_out32() to netbsd32 specific code; add an ev_out32 hook.
 1.6  22-Aug-2000  mrg branches: 1.6.2;
#include <compat/netbsd32/netbsd32.h> if necessary
 1.5  20-Aug-2000  eeh Add COMPAT_NETBSD32 support.
 1.4  30-Mar-2000  augustss branches: 1.4.4;
Remove register declarations.
 1.3  12-Sep-1996  mrg branches: 1.3.28;
update these for poll(2) changes.
 1.2  29-May-1996  pk branches: 1.2.2;
Add missing splx(), per Jason.
Also, change `"event_var"' to `<dev/sun/event_var.h>'.
 1.1  24-Jan-1996  gwr branches: 1.1.1;
Initial revision
 1.1.1.1  24-Jan-1996  gwr New "child" drivers for Sun keyboard and mouse attached to z8530sc.
 1.2.2.2  29-May-1996  pk Add missing splx(), per Jason.
Also, change `"event_var"' to `<dev/sun/event_var.h>'.
 1.2.2.1  29-May-1996  pk file event.c was added on branch netbsd-1-2 on 1996-05-29 21:24:42 +0000
 1.3.28.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.4.1  26-Aug-2000  mrg pull up 1.5. approved by thorpej:
>Add COMPAT_NETBSD32 support.
 1.6.2.7  11-Dec-2002  thorpej Sync with HEAD.
 1.6.2.6  11-Nov-2002  nathanw Catch up to -current
 1.6.2.5  24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.6.2.4  28-Feb-2002  nathanw Catch up to -current.
 1.6.2.3  15-Nov-2001  pk Fix `curproc' usage.
 1.6.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.6.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.7.2.4  02-Oct-2002  jdolecek do not need the (void *) cast for kn_hook anymore
 1.7.2.3  11-Feb-2002  jdolecek Sync w/ -current.
 1.7.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.2.1  12-Sep-2001  thorpej Add kqueue support (not compiled yet).
 1.14.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.2.5  04-Feb-2005  skrll Sync with HEAD.
 1.14.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.14.2.2  26-Aug-2004  skrll Adapt to branch.

sparc64 GENERIC compiles.
 1.14.2.1  03-Aug-2004  skrll Sync with HEAD
 1.15.10.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.15.10.1  12-Feb-2005  yamt sync with head.
 1.15.8.1  29-Apr-2005  kent sync with -current
 1.17.4.5  17-Mar-2008  yamt sync with head.
 1.17.4.4  07-Dec-2007  yamt sync with head
 1.17.4.3  03-Sep-2007  yamt sync with head.
 1.17.4.2  26-Feb-2007  yamt sync with head.
 1.17.4.1  21-Jun-2006  yamt sync with head.
 1.18.26.2  12-Mar-2007  rmind Sync with HEAD.
 1.18.26.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.20.24.1  08-Dec-2007  ad Sync with head.
 1.20.22.1  08-Dec-2007  mjf Sync with HEAD.
 1.20.16.2  23-Mar-2008  matt sync with HEAD
 1.20.16.1  09-Jan-2008  matt sync with HEAD
 1.20.14.1  09-Dec-2007  jmcneill Sync with HEAD.
 1.21.12.1  03-Apr-2008  mjf Sync with HEAD.
 1.21.8.1  24-Mar-2008  keiichi sync with head.
 1.22.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.22.12.1  28-Apr-2009  skrll Sync with HEAD.
 1.22.4.1  04-May-2009  yamt sync with head.
 1.23.22.1  03-Dec-2017  jdolecek update from HEAD
 1.24.18.1  03-Jan-2021  thorpej Sync w/ HEAD.

RSS XML Feed