See the archives of this mailing list.
http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=linux-streams_gsyc_escet_urjc_es&restrict=&exclude=&words=refcount
This is what I do to /head/linux-mdep.c

@@ -998,7 +1001,11 @@
        if (inode && inode->i_cdev)
            printk(">> i->i_cdev: [EMAIL PROTECTED]/%d/%x \"%s\"\n",
                inode->i_cdev,
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8)
                K_ATOMIC_READ(&inode->i_cdev->kobj.refcount),
+#else
+               K_ATOMIC_READ(&inode->i_cdev->kobj.kref.refcount),
+#endif
                DEV_TO_INT(inode->i_cdev->dev),
                (inode->i_cdev->owner ?
                 inode->i_cdev->owner->name : "No-Owner")) ;

Paul Landay

_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to