Re: Unfamiliar C syntax in HLIST_HEAD_INIT

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

 



On Sat, 20 Jan 2007, Eric wrote:

> While reading the kernel source, I noticed this macro:
> #define HLIST_HEAD_INIT { .first = NULL }
>
> Which is used to initialize the struct:
>
> struct hlist_head {
>      struct hlist_node *first;
> };
>
> My question is, what is the dot notation in ".first"?

C99 designated initializers.

rday

--
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