Difference between INIT_LIST_HEAD and LIST_HEAD_INIT
anish singh
anish198519851985 at gmail.com
Tue Jan 6 16:26:45 EST 2015
On Tue, Jan 6, 2015 at 1:37 AM, nawab <nawablinux at 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 minor difference. Major is that one is a macro and other is
a function.
> When we have to use INIT_LIST_HEAD and LIST_HEAD_INIT??
>
When do you use macro and when do you use function?
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150106/d9c54d49/attachment.html
More information about the Kernelnewbies
mailing list