关于linux 内核源码中static struct pci_driver vortex_driver的定义的问题
以下是linux内核源码中关于static struct pci_driver vortex_driver的定义:
static struct pci_driver vortex_driver = {
.name = "3c59x",
.probe = vortex_init_one,
.remove = __devexit_p(vortex_remove_one),
.id_table = vortex_pci_tbl,
#ifdef CONFIG_PM
.suspend = vortex_suspend,
.resume = vortex_resume,
#endif
};
其中vortex_init_one,vortex_suspend,vortex_resume是函数名字,__devexit_p是宏定义,vortex_pci_tbl是另一个结构体
请各位大牛解释下这个结构体的定义,第一次见这么个用法……