Example #1
0
static int dl_proc_open_rf_b(struct inode *inode, struct file *file)
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
	return single_open(file, rtl_proc_get_reg_rf_b, GET_INODE_DATA(inode));
#else
	return single_open(file, rtl_proc_get_reg_rf_b, inode);
#endif
}
Example #2
0
static int dl_proc_open_cam_3(struct inode *inode, struct file *file)
{
	return single_open(file, rtl_proc_get_cam_register_3,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0))
			   GET_INODE_DATA(inode));
#else
			   inode);
#endif
}
Example #3
0
static int dl_proc_open_mac_0(struct inode *inode, struct file *file)
{
	return single_open(file, rtl_proc_get_mac_0, GET_INODE_DATA(inode));
}
Example #4
0
static int dl_proc_open_cam_3(struct inode *inode, struct file *file)
{
	return single_open(file, rtl_proc_get_cam_register_3,
			   GET_INODE_DATA(inode));
}
Example #5
0
static int dl_proc_open_rf_b(struct inode *inode, struct file *file)
{
	return single_open(file, rtl_proc_get_reg_rf_b, GET_INODE_DATA(inode));
}