On Tue, Mar 23, 2010 at 01:17:40PM -0400, Jeff Squyres wrote:
> On Mar 23, 2010, at 12:59 PM, Jason Gunthorpe wrote:
> 
> > The main reason for the new FD is so it can be polled on..
> 
> What do you poll on the fd for?
> 
> With ummunotify, you only read() from the fd when (counter !=
> last_counter).  Were you thinking that the poll() would be for
> something else?

poll() is for apps that want to get the notifications without
spinning on the counter. If you don't think that is worth doing it
does simplify things alot, just add two new verbs calls:

ibv_set_mmu_counter(verbs, &my_counter);
ibv_get_mmu_notifications(verbs, &my_list, sizeof(my_list));

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to