Re: Difference between INIT_LIST_HEAD and LIST_HEAD_INIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >
> > 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,
Chen Weixiang (Alex)


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux