Hi, This a different way to initialize a C struct and its only supported by gcc compilers I guess, you will see this very often in the kernel code.
-- Regards, Karthik Poduval On Sun, Jun 6, 2010 at 2:00 AM, kernelcoder2 <[email protected]> wrote: > Hi, > > I am a kernel newbie. Saw the following struct in linux kernel /net/ > ipv4/tcp_ipv4.c: > > struct proto tcp_prot={ > > .name = "TCP", > .owner = THIS_MODULE, > ... > } > > each field name starts with a dot, ends with a comma (,) instead of > semicolon (;), this doesn't look like a C struct, what is it? Thanks. > > kc > > -- > unsubscribe: > [email protected]<android-kernel%[email protected]> > website: http://groups.google.com/group/android-kernel -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
