Re: kqueue for usb_dev

看板FB_current作者時間12年前 (2014/02/27 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/14 (看更多)
On 02/27/14 07:02, John-Mark Gurney wrote: > 2) Why do you try to start read/write transfers in the _filter? You > should just check to see if data is available and not do work.. This > is also important since kqueue calls the filter just before delivering > the knote to userland to verify that there is still data, and it will > call your _event function for each knote on the fd... The work should > be started through other mechanisms, like read/write syscall or > interrupt or timeout/callout... If it's required to get results from > USB_IF_POLL, then it's fine.. Hi, In the case where you start polling and don't do any reads or writes, the poller needs to get the data traffic going. --HPS _______________________________________________ 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): #1J3kdomj (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1J3kdomj (FB_current)