On Sunday 27 August 2006 19:28, Jim Cromie wrote: > Ashok Sharma wrote: > > Pl explain the following structure declaration in PCI_driver code > > > > static struct pci_driver foo_driver { > > .name = “foo”, > > .probe = foo_probe, > > .remove = foo_remove, > > .id_table = foo_tbl, > > }; > > > > consider me a novice only > > Ashok, > youve been on-list a while ( at least since 12/05), > please follow standard practice, and start a new thread to ask new > questions. > You may regard this as a followon, Id wager the thread participants think > it as a backup-and-start-over. > > > youre looking at a C99 initialiation of a vtable > http://en.wikipedia.org/wiki/Vtable > AFAIK vtables are only used in C++. Is there something that I am missing? This way of initializing a structure/array is called designated initializing: http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gcc/designated-inits.html tavi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/