summaryrefslogtreecommitdiff
path: root/sys/kern/kern_event.c
AgeCommit message (Expand)Author
2020-02-09Zero struct knote on allocation. This makes the code less proneVisa Hankala
2020-02-05Move kernel locking inside knote_fdclose() from finishdup() andVisa Hankala
2020-01-18Make klist_invalidate() more careful and general. Acquire knotes beforeVisa Hankala
2020-01-13Allocate kqueue instance outside fdplock to avoid sleeping withVisa Hankala
2020-01-10Use atomic operations with kq_refs, to nudge the code toward MP-safety.Visa Hankala
2020-01-08Skip fdplock when freeing a file descriptor table. The lock is notVisa Hankala
2020-01-06Use type M_KEVENT instead of M_TEMP when allocating kqueue-relatedVisa Hankala
2020-01-06Make kqlist part of filedesc and serialize access to it using fdplock.Visa Hankala
2020-01-05Constify instances of struct fileops.Visa Hankala
2020-01-03Fix a file descriptor close race in kqueue_register()Visa Hankala
2019-12-31Fix some races in kqueue_register().Visa Hankala
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2019-12-29Wake up knote waiters in knote_drop(). This lets the blockedVisa Hankala
2019-12-25Replace macros knote_alloc() and knote_free() with direct use ofVisa Hankala
2019-12-12Allow sleeping inside kqueue event filters.Visa Hankala
2019-12-11Replace p_xstat with ps_xexit and ps_xsigPhilip Guenther
2019-12-07Combine macro KNOTE_ACTIVATE() with function knote_activate()Visa Hankala
2019-07-03Lock the kernel when removing file descriptors from the descriptorVisa Hankala
2019-07-01kevent(2): remove 24hr timeout limitcheloha
2019-05-04Removed all diagnostic, calling printf() here might create a recursion.Martin Pieuchot
2019-05-04Relax the check in knote_{de,en}queue: don't panic w/o KERNEL_LOCK().Martin Pieuchot
2019-05-01sprinkle some KERNEL_ASSERT_LOCKED()David Gwynne
2018-11-27EVFILT_TIMER: Remove extra tick from tvtohz(9) on timeout reload.cheloha
2018-11-17Avoid leaking kernel memory in struct kevent padding.Todd C. Miller
2018-09-04kevent: Don't poll for nonzero timeouts < 1us.cheloha
2018-08-20Reorder checks in the read/write(2) family of syscalls to prepare makingMartin Pieuchot
2018-08-15Grab the KERNEL_LOCK() in MP-unsafe fo_close routines. This preventsVisa Hankala
2018-08-09Remove redundant "kq == kn->kn_kq" checks. The lists kq_knhash andVisa Hankala
2018-08-07Fix dangling knote references.Visa Hankala
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-17Move kqueue related fields from struct filedesc to struct kqueue. Solves a panicanton
2018-06-15kevent: don't reject timeouts greater than 100 million secondscheloha
2018-06-05Revert introduction of fdinsert(), a sanitify check triggers whenMartin Pieuchot
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-05-22kevent: correctly check that timeout's nanoseconds are on [0, 1000000000)cheloha
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-10Convert 'struct fileops' definitions to C99.Martin Pieuchot
2018-04-08Test for preexisting conditions when re-enabling eventsMike Belopuhov
2018-04-03Move FREF()s just after fd_getfile() in sys_kevent(), sys_lseek() andMartin Pieuchot
2018-01-13introduce a filter called EVFILT_DEVICE that can be used to notifyRobert Nagy
2017-12-18Revert support for multiple threads to enter kqueue_scan() in parallel.Martin Pieuchot
2017-11-04Make it possible for multiple threads to enter kqueue_scan() in parallel.Martin Pieuchot
2017-10-11Move `kq_count' increase/decrease close to the corresponding TAILQ_*Martin Pieuchot
2017-10-11Move kq_kev from struct kqueue to the stack.Martin Pieuchot
2017-05-31Add support for EV_RECEIPT and EV_DISPATCH flagsMike Belopuhov
2017-02-11Add a flags argument to falloc() that lets it optionally set thePhilip Guenther
2016-09-24move knhash size to event.h, use it for hashfree. from Mathieu -Ted Unangst
2016-09-15all pools have their ipl set via pool_setipl, so fold it into pool_init.David Gwynne
2016-08-25pool_setiplDavid Gwynne
2016-07-14Prevent silly states via knotes on pids > 2^32 and on nonexistent signals.Philip Guenther