linux驱动程序
来源:互联网 发布:好莱坞黑帮电影知乎 编辑:程序博客网 时间:2024/06/04 18:33
在kernel 2.6.36 中已经完全删除了struct file_operations 中的ioctl 函数指针,取而代之的是unlocked_ioctl
1 驱动程序的修改:
static struct file_operations hi_i2c_fops = { .owner = THIS_MODULE, // .ioctl = I2C_Ioctl , .unlocked_ioctl = I2C_Ioctl , .open = I2C_Open , .release = I2C_Close ,};
2 main.c中还是使用ioctl()函数
int main(){... ret = ioctl(fd, GPIO_I2C_WRITE, &value);...}
阅读全文
0 0
- Linux驱动程序
- Linux驱动程序
- linux驱动程序
- linux驱动程序
- Linux驱动程序入门-----------------------------驱动程序框架
- Linux网卡驱动程序编写
- Linux网卡驱动程序编写
- linux驱动程序设计
- Linux系统设备驱动程序
- Linux设备驱动程序设计
- Linux系统设备驱动程序
- Linux设备驱动程序设计
- LINUX驱动程序初体验
- linux驱动程序编程学习
- Linux设备驱动程序设计
- linux驱动程序的编写
- Linux网卡驱动程序
- linux设备驱动程序
- javase-for循环的嵌套与数组(基础)
- C#核心编程结构(二)
- android startservce与bindService
- 10.15解题报告
- 4. tensorflow之全连接层(dense)
- linux驱动程序
- C#实验解答(3)
- 如何让别人远程连接到自己的MySql数据库
- NURBS学习第一天
- sqlserver时间转换一般用convert函数(备忘)
- 初识C++——C语言与C++的区别
- 网络(TCP)
- OSPF笔记-1
- js 打印对象