K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-02-29T06:19:00.460339Z K 7 svn:log V 1001 MFC 230857: If multiple threads call kevent() to get AIO events on same kqueue fd, it is possible that a single AIO event will be reported to multiple threads, it is not threading friendly, and the existing API can not control this behavior. Allocate a kevent flags field sigev_notify_kevent_flags for AIO event notification in sigevent, and allow user to pass EV_CLEAR, EV_DISPATCH or EV_ONESHOT to AIO kernel code, user can control whether the event should be cleared once it is retrieved by a thread. This change should be comptaible with existing application, because the field should have already been zero-filled, and no additional action will be taken by kernel. PR: kern/156567 MFC 231006: Add 32-bit compat code for AIO kevent flags introduced in revision 230857. MFC 231724: Add notes about sigev_notify_kevent_flags introduced in revision 230857 which enables thread-friendly polling on same fd for AIO events. Reviewed by: delphij MFC 231777: Bump .Dd date for previous revision. END