On Mon, Nov 22, 2010 at 10:02, Bond <jamesbond.2k.g@xxxxxxxxx> wrote: > I am trying to understand working of pci_resource_start function > So I browsed code via cscope and searched for string pci_resource_start > and got following in pci.h > > #define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start) AFAIK, for example dev is "foo", bar is "bar", then pci_resource_start(foo,bar) becomes: foo->resource[bar].start Seems like calling a function of field, which in turns is coming from a pointer, no? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ