Kernel Struct Zone Read Access

Submitted by speedytangent
on October 19, 2008 - 7:59am

Hi All ...

I am developing a char Device.. for some purpose i need to read Struct "ZONE" information ,
can somebody guide me , how to get a pointer to zone struct , as far as i could search i found a function dat shuld work like da code given below , but i am not sure , am i right or wrong , please help..

Static struct *zn;

for_each_zone(zn)
{
zn->(Any Component of zone struct like minPages , maxpafes , free pages etc etc)
}

please guide me ,...