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 
takes longer time. But it gives perror as "Invalid argument" during writing.  
Please let me know, what I am missing here.

Also please let me know, if you have other suggestions for faster and direct 
write to disk, instead of having to assume that the kernel would have done it.

I am sure that many of you would have such requirements. It would be great to 
know the possible solutions to tackle the issue.

Regards,
Gopal Sukumar.


DISCLAIMER:

This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.

E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.

Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.

MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.

________________________________
http://www.mindtree.com/email/disclaimer.html
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to