public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* struct member detection
@ 2008-01-18  7:02 MShura
  0 siblings, 0 replies; only message in thread
From: MShura @ 2008-01-18  7:02 UTC (permalink / raw)
  To: gcc-help


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-17 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-18  7:02 struct member detection MShura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).