Problem of memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hello, I have a problem, I am developing a video driver for imx27 in version
2.6.30, I need to work in this version, I work with the soc-camera subsytem.
the problem is that I need to reserve memory for my buffers, but the
function DMA_ALLOC_COHERENT says error: ENOMEN. This problem is in that I
haven't enough memory to my buffers, then I am thinking that I can reserve
memory for this buffers in the __init of driver... but, how can I do it?
In my aplication, I call to mmap(), this function reserve memory for the
buffers and also calls soc_camera_mmap for to call at dma_alloc_coherent.
How can I do for that the driver reserve memory and the aplication knows
where is this memory? how can I resolver this problem?, also I have thought
that I could reserve memory without call to soc-camera subsytem in the mmap,
only in this function, is it possible? can someone help me? thanks.
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]

Add to Google Powered by Linux