[openib-general] Question about pinning memory

Gleb Natapov glebn at voltaire.com
Mon Jul 25 08:58:46 PDT 2005


On Mon, Jul 25, 2005 at 11:37:29AM -0400, Pete Wyckoff wrote:
> I like your signal idea but am not fond of the signal mechanism,
> especially as we (the library) can't trust the user not to break it.
> Signaling a separate thread has the same race problem.  I'd prefer
> to export a counter from the kernel that the user application can
> see.  The kernel would atomically increment it when there is an
> unread event, and the app can check the variable to decide if the
> read() is necessary.
I also don't like signal much but... 
How userspace will read kernel counter without system call? Or do you
mean kernel will increment counter resided in userspace?

--
			Gleb.



More information about the general mailing list