From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave.hellewell@gmail.com (Dave Hellewell) Date: Tue, 30 Jul 2013 01:24:29 +1000 Subject: Why use "." in the struct in this way? In-Reply-To: References: Message-ID: <51F6892D.5030205@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 30/07/13 00:56, lx wrote: > hi all: > why use the struct in this way by "." > > for example, *.owner* instead of *owner* , why? It's utilising a feature known as designated initialisers. Essentially, using this technique, struct members may be initialised out of order from the way the struct is defined. cf. http://en.wikipedia.org/wiki/Struct_(C_programming_language)#Struct_initialization Cheers, Dave