[openib-general] Re: Plans for libibverbs 1.0, 1.1 and beyond

Roland Dreier rdreier at cisco.com
Fri Feb 17 08:14:31 PST 2006


    Michael> Does this guarantee that nothing else the child might
    Michael> need falls into the same page?

Yes, for example CQ buffers are allocated with:

	if (posix_memalign(&buf, dev->page_size,
			   align(nent * MTHCA_CQ_ENTRY_SIZE, dev->page_size)))

dev->page_size is initialized with:

	dev->page_size   = sysconf(_SC_PAGESIZE);

so the allocation gives a buffer aligned to the page size, with a size
that is a multiple of the page size.

 - R.



More information about the general mailing list