Re: _pa/virt_to_phys and __va/phys_to_virt

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

 



> AFAIK, if the same physical memory will be used then
> there won't be different virtual address between 

Can we go via an example? Say I have a kernel module
and am loading it after system start. Then in that
module, I need some kinds of buffer and want to
allocate memory using kmalloc. Then because I am a
kernel space prog. kernel doesnt defer the allocation
and tries to give me what I need. Say it finds a
physical addr. range starting at 0x04000000. Then is
the virtual addr. given to me 0xC4000000? I am
wondering this...

I hope I explain it clearly...

Thanks...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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