Good question!!! I have to check it. Thank you for your tip. Mauricio Lin. --- Ed L Cashin <ecashin@xxxxxxxxxx> escreveu: > Mauricio Lin <mauriciolin2000@xxxxxxxxxxxx> writes: > > > Mauricio Lin <mauriciolin2000@xxxxxxxxxxxx> > wrote: > > > > Here goes the function that is throwing the > segmentation fault: > > > > > > > > void resident_mem_size(struct mm_struct *mm, > unsigned long > > start_address, > > > > unsigned long end_address, unsigned long *size) > { > ... > > my_pgd = pgd_offset(mm, page); > > Are you sure you are not calling resident_mem_size > with a NULL mm > parameter? > > -- > Ed L Cashin <ecashin@xxxxxxxxxx> > > > -- > Kernelnewbies: Help each other learn about the Linux > kernel. > Archive: > http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > ===== ************************************************ Conhecimento vem do seu instrutor; Sabedoria vem do seu interior. (Bruce Lee) ************************************************ _______________________________________________________ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/