Exemplo n.º 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
}
Exemplo n.º 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
}
Exemplo n.º 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));
}
Exemplo n.º 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));
}
Exemplo n.º 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));
}