The inode arg comes by way of the struct file_operations' open() and release() function prototypes. On a typical file system, the inode points to the entity that that operation is for. In synthetic file systems, however, the inode is at times superfluous because the entity being worked could be fixed. For example here we are returning a list of heartbeating nodes. That's the reason it is not being used. But that does not mean we can do away with it because we are still using file_ops infrastructure.
tristan.ye wrote: >> +static int o2hb_debug_open(struct inode *inode, struct file *file) >> > Just be curious that why the arg 'inode' kept here since it never be > refered in below func body. > so as the func o2hb_debug_release() _______________________________________________ Ocfs2-devel mailing list [email protected] http://oss.oracle.com/mailman/listinfo/ocfs2-devel
