阅读:1376回复:5
有没有人做过solaris下驱动的,交流一下?
真惨,现在做这个下面的驱动,没人交流,看看一大堆的PDF也没什么进展,急需交流!
|
|
沙发#
发布于:2003-07-11 04:15
What kind of driver you want to develop? I have some experience on developing device driver on Solaris. Actually there is a forum on Sun website. http://forum.sun.com. But this forum is not very well. Sometime no one reply your question.
|
|
板凳#
发布于:2003-07-11 13:55
太好了,终于遇到了高手,我现在就写个虚串口驱动程序,但要把串口数据发送到网络上。
具体任务也就是,用open了这个设备后,write的数据就发送到指定的网络上,READ就是从网络上读过来的。 在linux下与windows下我都完成了这个功能,但solaris下的设备管理我不清楚,驱动程序结构我倒是看了很多遍。关健是不理解它这个 “设备注册”、“设备创建”是怎样完成的,如有个例子程序就好。 |
|
地板#
发布于:2003-07-11 16:10
email:jxnuxdy@163.com
|
|
地下室#
发布于:2003-07-11 22:17
I think you can turn to the books, Solaris Internals and Writing Device Drivers. Actually the device register and device creation are not very difficult after you read the books.
If you want to get more detailed information, such as samples, you can download the source code of Solaris OS. Just send a fax to SUN company. They will give you a link to download the entire source code. As my point of view it is very helpful to your development. I am not very familar to the serial port. I am working on the storage device driver. So I couldn\'t give you big help. Sorry about that. |
|
5楼#
发布于:2003-07-17 14:45
大侠,我现在不是说思路上的问题,而是按照SUN的这些例子及步螂,就是报attach失败:
devfsadm: driver failed to attach: com Warning: Driver (com) successfully added to system but failed to attach 这是什么原因,你的设备不过是块设备嘛,考个框架给偶,让偶再拆腾一下。谢谢了先! |
|