public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [NUMA x86_64] problem accessing global Node List pgdat_list
@ 2005-10-05  5:40 devesh sharma
  2005-10-05 12:42 ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: devesh sharma @ 2005-10-05  5:40 UTC (permalink / raw)
  To: linux-kernel

Hi all,
On an dual opteron machine and 2.6.9 kernel, I am accessing the global
node list pgdat_list but I am not getting the desired results

#include<linux/module.h>
#include<linux/config.h>
#include<linux/kernel.h>
#include<linux/mmzone.h>

struct pglist_data *pgdat_list ;

int init_module( void )
{

  pg_data_t *pg_dat ;

  printk ("<1>****Module initialized to retrive the information of
pgdat_list list in the Kernel****\n" ) ;


  for_each_pgdat(pg_dat)
  {
    printk ("<1>The number of zones on this node are %x\n", pg_dat ->
nr_zones ) ;

    printk ("<1>The Node Id of this node is %d\n", pg_dat -> node_id ) ;

  }

  return 0 ;
}

void cleanup_module ( void )
{
    printk ("<1>********Module Exiting***********\n" ) ;
}

MODULE_LICENSE("GPL") ;

How I can access this list any body tell me the solution.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-06  9:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05  5:40 [NUMA x86_64] problem accessing global Node List pgdat_list devesh sharma
2005-10-05 12:42 ` Eric Dumazet
     [not found]   ` <309a667c0510050550x68e0c996q51e00e908813b5c1@mail.gmail.com>
2005-10-06  9:16     ` devesh sharma
2005-10-06  9:27       ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox