On Sat, Jan 23, 2010 at 11:38:28AM +0700, Mulyadi Santosa wrote:
> Hi everybody
> 
> As the subject says, anybody could kindly point me to the
> PageSwapBacked() definition? I use cscope, lxr....no use at all. I am
> guessing, it could be a function that is composed by somekind of gcc
> macro, but I am not sure.
>
Hi Mulyadi,

The file mm-flags.h defines a set of macros like

#define TESTPAGEFLAG(uname, lname)                                      \
static inline int Page##uname(struct page *page)                        \
                        { return test_bit(PG_##lname, &page->flags); }

This macro creates the function you are lookign for. PG_swapbacked is the
bit for marking if page is backed by swap. I believe ##uname of swapbacked
is equivalent to SwapBacked and similarly lname is swapbacked itself.

HTH

Regards
Himanshu

 
> -- 
> regards,
> 
> Mulyadi Santosa
> Freelance Linux trainer and consultant
> 
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
> 
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecar...@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
> 

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to