Re: how to use the memory allocated in kernel?

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

 



2012/4/18 夏业添 <summerxyt@xxxxxxxxx>:
> Hi Dave,
>
> Thanks for reply. My English is not very good, and so I want to ask about a
> term:map. Does map mean that create a relationship between the virtual space
> and physical memory?
>
> Thanks again!
>

As Dave said, unless you know what you are doing, you should really
use kmalloc() and friends (kzalloc(), etc) for assigning physically
contiguous kernel memory or
vmalloc() that assigns virtually (but not necessarily physical)
contiguous memory.

vmalloc() performs worse that kmalloc() but has more changes to
succeed when trying to get large memory chunks.

Best regards,

-- 
Javier Martínez Canillas
(+34) 682 39 81 69
Barcelona, Spain

_______________________________________________
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