struct member detection

MShura shura_mam@mail.ru
Fri Jan 18 07:02:00 GMT 2008


Hi!

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

In kernel versions before 2.6.17(?) this struct contains member 
union{
  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: http://www.nabble.com/struct-member-detection-tp14922472p14922472.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list