Re: linked lists linux kernel how they works?

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

 



  the first definition
#define LIST_HEAD_INIT(name) { &(name), &(name) }
initializes the linked list

and the second definition is where u define the contents of ur structure .... i meam the contents of a particular node of a linked list.



On Fri, 04 Mar 2005 cranium2003 wrote :
>hello,
>                    In kernel source in list.h i found
>following info
>#define LIST_HEAD_INIT(name) { &(name), &(name) }
>#define LIST_HEAD(name) struct list_head name =
>LIST_HEAD_INIT(name)
>              What i want to know is how
>LIST_HEAD_INIT(name) evaluted? what will first
>definition return  to second one?
>regards,
>cranium.
>
>
>
>
>__________________________________
>Celebrate Yahoo!'s 10th Birthday!
>Yahoo! Netrospective: 100 Moments of the Web
>http://birthday.yahoo.com/netrospective/
>
>--
>Kernelnewbies: Help each other learn about the Linux kernel.
>Archive:      http://mail.nl.linux.org/kernelnewbies/
>FAQ:          http://kernelnewbies.org/faq/
>




[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