24 lines
290 B
C
24 lines
290 B
C
|
#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;
|
||
|
}
|
||
|
|