如何编写Linux设备驱动程序
发布时间:2016-01-24 19:17:04 所属栏目:Linux 来源:网络整理
这几个函数都是空操作.实际调用发生时什么也不做,他们仅仅为下面的结构提供函数指针。 struct file_operations test_fops = { NULL, read_test, write_test, NULL, /* test_readdir */ NULL, NULL, /* test_ioctl */ NULL, /* test_mmap */ open_test, release_test, NULL, /* test_fsync */ NULL, /* test_fasync */ /* nothing more, fill with NULLs */ }; (编辑:云计算网_泰州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |