On Wed, 18 Jul 2007 20:58:45 +0200, Oliver Neukum <[EMAIL PROTECTED]> wrote:
> Am Mittwoch 18 Juli 2007 schrieb eczema:

> > +struct iuu_buffers {
> > +       u8 buf[256];
> > +       u8 finalbuf[256];
> > +       u8 dbgbuf[512];
> > +       u8 len;
> > +};
> > +
> 
> Is that safe? Kmalloc will give out chunks of memory safe for DMA, but will
> they be aligned?

Yes, they are aligned for the longest integral type a system
possesses, although there may be issues. They are NOT aligned for
the next power of two though. It only happens as long as SLAB
debugging is not enabled. If you want alignment to 256, either
grab pages or realign by hand like ymfpci did.

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to