opnsense-src/sys
Ed Schouten 38219d6acd Implement kqueue(2) for procdesc(4).
kqueue(2) already supports EVFILT_PROC. Add an EVFILT_PROCDESC that
behaves the same, but operates on a procdesc(4) instead. Only implement
NOTE_EXIT for now. The nice thing about NOTE_EXIT is that it also
returns the exit status of the process, meaning that we can now obtain
this value, even if pdwait4(2) is still unimplemented.

Notes:

- Simply reuse EVFILT_NETDEV for EVFILT_PROCDESC. As both of these will
  be used on totally different descriptor types, this should not clash.

- Let procdesc_kqops_event() reuse the same structure as filt_proc().
  The only difference is that procdesc_kqops_event() should also be able
  to deal with the case where the process was already terminated after
  registration. Simply test this when hint == 0.

- Fix some style(9) issues in filt_proc() to keep it consistent with the
  newly added procdesc_kqops_event().

- Save the exit status of the process in pd->pd_xstat, as we cannot pick
  up the proctree_lock from within procdesc_kqops_event().

Discussed on:	arch@
Reviewed by:	kib@
2014-04-07 18:10:49 +00:00
..
amd64 Make the vmm code compile with gcc too. Not entirely sure things are 2014-04-05 22:43:23 +00:00
arm Move sys/arm/econa to sys/arm/cavium/cns11xx. 2014-04-07 05:33:30 +00:00
boot These were bogusly placed in the arm directory. Move them to their 2014-04-07 16:38:31 +00:00
bsm Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
cam Report stripe size and offset of the backing device in READ CAPACITY (16) 2014-04-06 10:13:14 +00:00
cddl In addition to r264077, tell GEOM that we do support BIO_DELETE now. 2014-04-06 16:31:28 +00:00
compat In freebsd32_sendmsg(), replace the call to sockargs() followed by a 2014-04-05 18:56:01 +00:00
conf An all-or-nothing approach to labels isn't flexible enough. Embedded 2014-04-06 02:44:37 +00:00
contrib Fix ah_powerMode setting. 2014-03-29 18:56:11 +00:00
crypto replace the kernel's version w/ cperciva's implementation... In all 2014-03-16 01:43:23 +00:00
ddb ddb: Minor style cleanups. 2014-03-31 16:37:41 +00:00
dev Add some assertions to ensure that the target array doesn't get accessed 2014-04-07 15:13:24 +00:00
fs Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
gdb rename scheduler->swapper and SI_SUB_RUN_SCHEDULER->SI_SUB_LAST 2013-07-24 09:45:31 +00:00
geom An all-or-nothing approach to labels isn't flexible enough. Embedded 2014-04-06 02:44:37 +00:00
gnu Symbolic bindings for the dts files... 2014-02-28 16:51:33 +00:00
i386 Make this compile with gcc. 2014-04-05 22:43:18 +00:00
ia64 Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern Implement kqueue(2) for procdesc(4). 2014-04-07 18:10:49 +00:00
kgssapi Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
libkern Fix typo 2013-11-29 20:14:26 +00:00
mips Change kernel/rootfs hints to use search patterns instead of absolute 2014-04-04 15:52:45 +00:00
modules An all-or-nothing approach to labels isn't flexible enough. Embedded 2014-04-06 02:44:37 +00:00
net De-virtualize UMA zone pf_mtag_z and move to global initialization part. 2014-03-29 09:05:25 +00:00
net80211 Remove IPX support. 2014-03-14 02:58:48 +00:00
netgraph Remove AppleTalk support. 2014-03-14 06:29:43 +00:00
netinet Minor style cleanups. 2014-04-07 01:55:53 +00:00
netinet6 Minor style cleanups. 2014-04-07 01:55:53 +00:00
netipsec The check for local address spoofing lacks ifaddr locking. 2014-04-04 16:58:32 +00:00
netnatm Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netpfil Merge from projects/pf r264198: 2014-04-07 07:06:13 +00:00
netsmb Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
nfs - Remove rt_metrics_lite and simply put its members into rtentry. 2014-03-05 01:17:47 +00:00
nfsclient For software builds, the NFS client does many small 2013-12-07 23:05:59 +00:00
nfsserver Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
pci Increase the number of TX DMA segments from 32 to 35. It turned 2014-03-31 01:54:59 +00:00
powerpc Clear the backlight level when it's turned off. Also, reduce the delay times to 2014-04-06 23:57:19 +00:00
rpc Fix lock acquisition in case no request space available, missed in r260097. 2014-02-04 00:00:01 +00:00
security audit: plug FILEDESC_LOCK leak in audit_canon_path. 2014-03-21 01:30:33 +00:00
sparc64 Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
sys Implement kqueue(2) for procdesc(4). 2014-04-07 18:10:49 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
ufs Update comment to explain search order reverted to historical order 2014-03-22 11:26:39 +00:00
vm Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
x86 Make this compile with gcc. 2014-04-05 22:43:18 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen Make this compile with gcc. 2014-04-05 22:43:18 +00:00
Makefile Remove AppleTalk support. 2014-03-14 06:29:43 +00:00