I’m new in working with kernel. I want to add a linked list to my kernel, and I try to fix it like this link : Linux Kernel Programming–Linked List here is code’s that I added to sys.c : syscall defenition: and my struct for linked list: and when I compile the kernel, I saw this error: thanks for your
Tag: linked-list
LINUX LISH.H list_for_each infinite loop
I’m trying to implement a list of task_struct and use it as a FIFO. In addition I need a function to go through the list and search for a particular task. My problem is that the list_for_each macro gets stuck in an infinite loop. Here below there is a snippet from my code: Thanks in advance for any tips! Answer
Deleting Linked List Elements
I’m curious what I have done wrong, since my void *DeleteDoneNodes(node * n) doesn’t do anything, no error but no output neighter, so could anyone help me finding the root of my problem thank you. Scenario: cmd line ./s m n m number of nodes in list, n number of workingThreads should delete each nodes with node->value == 1, but