Re: How to allocate memory and get the physical address in kernel

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

 



Hi Silverstri,


On Thu, Feb 6, 2014 at 7:56 AM, m silverstri <michael.j.silverstri@xxxxxxxxx> wrote:
Hi,

I am developing a kernel driver. I need to allocate buffer in the
kernel driver and pass the physical address of the buffer to the Chip
register so that it can generate output there.

I tried using kmalloc() but I don' get any output from the chip.
If your device is not having an iommu, you need to convert the address returned by kmalloc using __pa(addr) before you program the chip.

Thanks,
Arun

Is there a better way to achieve what I want?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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