Hi,
Iam writing a character driver which is supposed to read a block of data from the user and then write it
to the device. I use DMA controller to transfer the data to the device.
As for my design, i allocate buffers from the DMA zone and then the user application mmaps these buffers
into its address space. Which is more like the buffers are shared between the user and the kernel.
This is done to avoid copy_from_user .
Now, 1) How do i synchronize the access to these buffers between the kernel and user.
2) I need to provide these buffers to the DMA, is this feasible ?
Regards
Srinivas Bakki