Re: FILTER_SCHEDULE_THREAD is not a bit-value

看板FB_current作者時間14年前 (2012/02/01 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
On Tuesday, January 31, 2012 3:57:26 am Max Khon wrote: > No, the text does not imply that only one of the values is supposed to > be returned (where did you see it). See also KASSERT checks in > intr_event_handle() -- they clearly show that the intention was to > allow FILTER_HANDLED and FILTER_SCHEDULE_THREAD to be returned > simultaneously. That was the original plan, but I now plan to no longer allow that. I think I posted a thread to that effect on arch@ several months ago. However, in some patches I have to rework ithreads, I remove the bitmask bits and make the return value a simple enum of distinct values. Also, your patch is not really correct I think, note that that code is only in the !INTR_FITLER case, and we don't allow you to OR together those two values in the INTR_FILTER case. -- John Baldwin _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FA2navz (FB_current)
文章代碼(AID): #1FA2navz (FB_current)