Hi Jerry,
I am not sure if you have tried the below algorithm successfully with O_DIRECT. But what
O_DIRECT needs is Soft-block aligned buffer on not Byte-aligned.
In the alternative you have mentioned, I understand that it is without
O_DIRECT. If that's the case, I will try it out for sure,
davinci-linux-open-source@linux.davincidsp.commailto:davinci-linux-open-source@linux.davincidsp.com
Cc: piyush_jad...@mindtree.commailto:piyush_jad...@mindtree.com
Sent: Friday, 6 February, 2009 11:39:52 PM
Subject: Writing streaming content on to SD Flash
Hi all,
I am writing an application
if you're trying to align malloc'ed memory to an x-byte boundary, you
can try to do this:
e.g, aligning to a 2-byte boundary,
unaligned_addr = malloc(size + 0x3);
aligned_addr = ((unaligned_addr+0x3) (~0x3));
This should allow you to request the maximum possible size, and then
allow
Hi all,
I am writing an application that dumps A/V data into the SD Flash card in the
order of around 1.5 MB/sec.
I am trying to use O_DIRECT flag when I open a file into which the A/V data goes. I am
using this flag because I want to shutdown buffer-caching during IO as buffer-cached IO