dev/c/list/list_kernel.c

24 lines
290 B
C
Raw Normal View History

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/list.h>
struct mystruct {
int data;
struct list_head mylist;
};
struct mystruct first = {
.data = 10,
.mylist = LIST_HEAD_INIT(first.mylist)
};
int main(int argc, char *argv[])
{
return EXIT_SUCCESS;
}