On 8/31/05, Vincenzo Mallozzi <vinjunior@xxxxxxxx> wrote: > > it's md.pages_list and not md_pages_list. It's a field of "struct > mtpmc_mm_struct md;" declared above. It's not a global variable. > :ohhh this means md must be a pointer and the return type have to be the pointer too as you are returning a local variable that will be copied to the variable you are assigning the value after calling the function !!! and your pointers other fields in the structure might become invalid later ..... > > > I call only other_function function. In this function > mtpmc_dump_memory_descriptor is called (as in the code I've listed) ok .... just try to return pointer from mtpmc_dump_memory_descriptor function and then use it ... I hope that will work ... -- Fawad Lateef -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/