Align userspace buffers to a page size boundary
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 2 Jun 2010 12:18:29 +0000 (14:18 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 2 Jun 2010 12:18:29 +0000 (14:18 +0200)
commit5444ca9d5fb255ea35fc60bf1cb27d29135cfbf3
treeaa15b5f85a66ef0997b7fd341dbc6cbb637b67e8
parent454203ed354c84c6947bb774c8deda9b2646e190
Align userspace buffers to a page size boundary

Some devices need userspace buffers to be page-aligned. Use the
posix_memalign function instead of malloc to allocate page-aligned
buffers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
yavta.c