J
jebaanandhan
Hi all,
i have come across the following snippets of code in linux kernel. It
would be grateful if somebody clarifies me what does the following
code means.
Code: reference : include/linux/list.h
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
the exact replacement will be
Thanks
Jeba
i have come across the following snippets of code in linux kernel. It
would be grateful if somebody clarifies me what does the following
code means.
Code: reference : include/linux/list.h
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
the exact replacement will be
Thanks
Jeba