mmap usage for DMA

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

 



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
 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux