open ("/dev/tty.xxxx"...) for my driver crashes the system
open ("/dev/tty.xxxx"...) for my driver crashes the system
- Subject: open ("/dev/tty.xxxx"...) for my driver crashes the system
- From: Pavan Chebbi <email@hidden>
- Date: Tue, 27 Jun 2006 02:08:54 -0700 (PDT)
Hi All,
This is yet another query that is related to my virtual serial driver.
After my driver is loaded, it creates /dev/cu.xxxx and /dev/tty.xxxx nodes in the /dev
I want to know what happens when I call open() on my virtual ports from a program? I want to know how do I register the open routine for my driver. I know the routines acquirePort, releasePort, etc but the machine crashes the moment I call open from an application. ( open("/dev/tty.xxxx", O_RDWR | O_NOCTTY | O_NONBLOCK ))
The panic log says unresolved kernel trap 0x300 data access.
I'd be glad if someone could help me with any pointers. I am referring the Apple16X50Serial sample. But I encountered the same problem there too.
(I had eliminated most of its code keeping only the code concerned with serial)
Thanks,
Pavan.
Want to be your own boss? Learn how on
Yahoo! Small Business.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden