kmalloc size limit?

arshad hussain arshad.super at gmail.com
Sun Aug 21 05:53:29 EDT 2016


> On 19-Aug-2016, at 11:51 pm, Muni Sekhar <munisekharrms at gmail.com> wrote:
> 
> Hi All,
> 
> I would like to know what is the maximum size limit for kmalloc() API
> to return a valid memory?

AFAIK, on x86 the largest allocation is 1024 pages. It boils down to 4MB.

> Does the size limit varies based on the flags argument?
> 
> 
> -- 
> Thanks,
> Sekhar
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




More information about the Kernelnewbies mailing list