[ofa-general] Re: [PATCH] IB/mthca: Clear ICM pages before handing to FW

Pete Wyckoff pw at osc.edu
Mon Jun 23 07:27:11 PDT 2008


eli at dev.mellanox.co.il wrote on Mon, 23 Jun 2008 09:35 +0300:
> Looking at the implementation of kmap_atomic() quoted bellow:
[..]
> static inline void *kmap_atomic(struct page *page, enum km_type idx)
> {
>         pagefault_disable();
>         return page_address(page);
> }
> 
> I can't see page_address doing anything actively to map the page. It
> just searches for the page and returns it's mapping. But I'm probably
> missing something.

You're looking at the no-highmem version.  Check the one in
arch/x86/mm/highmem_32.c for a more interesting example.

		-- Pete



More information about the general mailing list