Passing linked list via copy_from_user
问题 I'm working on a linux project. I need to pass a linked list to the kernel from a userspace program. I have used the kernel way of implementing linked lists in userspace. I have defined a structure as follows: struct time{ int val; struct list_head* list; }; The variable for this strucure would be: struct time mylist; I have given the input data and used list_add function found in linux/include/list.h to link the structures. This mylist is a part of another structure: struct params{ int data1