<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 1:37 AM, nawab <span dir="ltr"><<a href="mailto:nawablinux@gmail.com" target="_blank">nawablinux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi friends ,<br>
<br>
i have a simple doubt when i was looking on linux/list.h<br>
<br>
I have seen that INIT_LIST_HEAD and LIST_HEAD_INIT are performing the<br>
same functionality,the major difference is<br>
the argument passed.<br></blockquote><div> </div><div>yes but that is minor difference. Major is that one is a macro and other is<br></div><div>a function.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When we have to use INIT_LIST_HEAD and LIST_HEAD_INIT??<br></blockquote><div><br></div><div>When do you use macro and when do you use function? <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br></div></div>