This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Write a file to a disk with O_DIRECT flag

Hi,

I'm using O_DIRECT for write to SSD. It is working properly when the array is allocated in user space via malloc(). But when I try to use an array which allocated via Vsys_allocBuf() the write() return -1.  Any suggestion?  Or may be there is a way to organize DMA from a buffer a bufList of type VIDEO_FRAMEBUF_LIST_S  to a buffer located in user space? 
I'm using DM8148 and ipnc_psp_04_04_00_01.
Thanks,
Constantin