Le mercredi 28 novembre 2007 à 14:24 +0000, Samuel Thibault a écrit :
> Hi,
> 
> Laurent Vivier, le Wed 28 Nov 2007 15:02:50 +0100, a écrit :
> > +    ret = posix_memalign((void**)&buf, 0x200, 512);
> 
> For making this more easily portable, maybe it should be a new
> qemu_memalign() function?  Also, the alignment may probably be better as
> a global macro, since the alignment requirements depend on the OS.

I think O_DIRECT is linux specific whereas posix_memalign() is part of
POSIX specification. And the memory alignement should only needed by the
implemetation of O_DIRECT on linux.

But I have nothing against to write a qemu_memalign().

Laurent
-- 
------------- [EMAIL PROTECTED]  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to