- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 linux char device driver and ioctl 0629
将主设备号和次设备号转换成dev_t类型可以通过MKDEV(int major, int minor);如果要从dev_t类型中取得主设备号可用如下的方法:MAJOR(dev_t dev);如果要从dev_t类型中取得次设备号可用如下的方法:MINOR(dev_t dev);从inode中获得主设备号与次设备号
2015-06-28 23:18:06
353
原创 linux kbuild module
1. 在任何目录下,创建一个文件夹 test2. test 下,创建test.c makefiletest.c #include #include /* to indicate init func and clean func*/MODULE_LICENSE("GPL");/* init the module */stat
2015-06-26 02:11:25
406
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人