Re: strange structs

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

 



On Monday 12 July 2004 17:51, so usp wrote:
> Hi,
>
> Inside the kernel source, there are some structs with
> the following format:
>
> 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'.


> I didn't understand this structure, the some_function
> has something linked to some_function? What does it
> mean? How can I use it inside my code?


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