tech-kern archive

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

Re: Proposal: kmem_valloc [was: Re: raspberry pi panic 7.0_BETA after install fs resize]

Le 09/11/2014 14:00, Maxime Villard a écrit :
After all, kmem_intr_zalloc is not needed since the caller can simply do
     ptr = kmem_intr_alloc(...);
     memset(ptr, 0, ...);

That's because kmem_intr_zalloc() is naive. It could also allocate a page from pools where the page has been previously zero'd by UVM (through UVM_PGA_ZERO) or else fallback to memset().

kmem_intr_alloc() does not set any constraint on that. You may have garbage inside, it is just that caller does not care.

Still, they both exist - rightfully or wrongfully - while their usage is

That depends on caller's wishes.

Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index