hi friends ,
i have a simple doubt when i was looking on linux/list.h
I have seen that INIT_LIST_HEAD and LIST_HEAD_INIT are performing the
same functionality,the major difference is
the argument passed.
When we have to use INIT_LIST_HEAD and LIST_HEAD_INIT??
On Tue, Jan 06, 2015 at 01:26:45PM -0800, anish singh wrote:
On Tue, Jan 6, 2015 at 1:37 AM, nawab nawabli...@gmail.com wrote:
hi friends ,
i have a simple doubt when i was looking on linux/list.h
I have seen that INIT_LIST_HEAD and LIST_HEAD_INIT are performing the
On Tue, Jan 6, 2015 at 1:37 AM, nawab nawabli...@gmail.com wrote:
hi friends ,
i have a simple doubt when i was looking on linux/list.h
I have seen that INIT_LIST_HEAD and LIST_HEAD_INIT are performing the
same functionality,the major difference is
the argument passed.
yes but that is
When we have to use INIT_LIST_HEAD and LIST_HEAD_INIT??
I believe it's better to use macro LIST_HEAD(name) to define and
initialize a variable of type 'struct list_head'.
The method INIT_LIST_HEAD() is used to initialize a predefined variable
of type 'struct list_head'.
--
Best regards,