Create a linked list in linux kernel 5.3

In the post "Creating linked list in linux Kernel using the list" we saw how to create a linked list in a kernel. Find below the updated code which works is tested in kernel 5.3

Save the file as linked_list.c and use the following makefile to compile the code

Compile and insert the module using the following commands

Run the command dmesg to see the linked list values being printed.

Follow by Email