Skip to contentSkip to conversation

2.4.3-pre7 and p*_alloc

DISCUSSION Russell King 1 participant 1 message Mar 25, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I'm looking at re-implementing the ARM page table allocation macros required for 2.4.3-pre7, and have found the following:

pte_t *pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address)

{
	if (!pmd_present(*pmd)) {

Why do we use pmd_present here instead of pmd_none? The same question applies to __pmd_alloc.

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html