struct member detection

Fri Jan 18 07:02:00 GMT 2008


The file <include/linux/fs.h> contains declaration of struct inode.

In kernel versions before 2.6.17(?) this struct contains member 
  void *generic_ip;
} u;

In kernel versions after 2.6.19(?) this struct contains member 
void  *i_private

In 2.6.18 this struct can be first or second variant.

Is it possible to detect at compile time what kind of private pointer the
struct inode contains?

Thanks in advance.

View this message in context:
Sent from the gcc - Help mailing list archive at

More information about the Gcc-help mailing list