Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2011 17:23:15 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kqueue and device driver experience anyone ?
Message-ID:  <20110830002315.GD3098@funkthat.com>
In-Reply-To: <20110826210101.GA5822@onelab2.iet.unipi.it>
References:  <20110826153940.GA3800@onelab2.iet.unipi.it> <201108261313.03441.jhb@freebsd.org> <20110826210101.GA5822@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote this message on Fri, Aug 26, 2011 at 23:01 +0200:
> The other thing i need (but i believe i know how to handle it)
> is tell whether .f_event() is called by KNOTE() or by kqueue_scan(),
> but i believe i can use the "hint" argument to tell the two.

Why do you need to know the difference?  kqueue is a level triggered
API, and so should behave the same if it is called from KNOTE or
kqueue_scan...   The reason it is called from kqueue_scan is to ensure
that the condition (level) still exists, and to get updated data
information (like how many bytes are available for reading)...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110830002315.GD3098>