[RFC]confusions about 'struct' define

harryxiyou harryxiyou at gmail.com
Wed May 30 13:37:42 EDT 2012


On Thu, May 31, 2012 at 1:20 AM, Gaurav Jain <gjainroorkee at gmail.com> wrote:
Hi Gaurav,

> Those are forward declarations as they are being used in defining struct
> bus_attribute. It's nothing special about GNU-C. That's the case for ANSI-C
> too. Pretty standard.
>

Hmmm.., that is to say, they may be used before definitions in this file or
defined in other files like 'struct iommu_ops;' field (Actually, i can
not find this field's
definition in this file). However, if it has been defined in other
header files, we need
not declare here, right?



-- 
Thanks
Harry Wei



More information about the Kernelnewbies mailing list