Re: strange structs

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

 



> > static struct name1 name2 = {
> >    .some_struct = some_function,
> >    .some_struct = some_function,
> >
> > ...
> > };
> 
> 'name2' is the variable name.
> 'struct name1' is the type.
> The field 'some_struct' is initialized to
> 'some_function'.

Is this inicialization done at the system
initialization?
So, can I export 'some_struct' to my code and use it
without initializing anything? 
And would I have to use these fields like:
'name2.some_struct' ?

Thanks



	
	
		
_______________________________________________________
Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

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