Hi all,
I have tried to use some functions from list.h.
Below is the snippet of the code:
Below is the snippet of the code:
list_for_each(tmp, &pidqueue_head) {
candidate = list_entry(tmp, struct
candidate_process, pid_list);
list_del(&candidate->pid_list);
}
candidate = list_entry(tmp, struct
candidate_process, pid_list);
list_del(&candidate->pid_list);
}
I am using this in a module, so this is executed when
I remove the module using rmmod module.ko and the
segmentation fault is printed on my screen.
I remove the module using rmmod module.ko and the
segmentation fault is printed on my screen.
After the first element is removed from the list the
following error is printed on my log file:
following error is printed on my log file:
"Unable to handle kernel paging request at virtual
address 00100100."
address 00100100."
Is it the correct way to remove itens from the doubly
linked list defined in list.h?
linked list defined in list.h?
Does anyone could help me?
BR,
Mauricio Lin.
************************************************
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!