Hung Tran(deleted)
|
message from driver to app
|
Hung Tran(deleted)
12/23/2011 4:10 PM
post90758
|
message from driver to app
I am trying to send a message from my driver to my app using MsgSendPulse.
So I listen for message in my app:
int chid = ChannelCreate(0);
coid = ConnectAttach(0 , 0, chid, _NTO_SIDE_CHANNEL, 0);
for (;;) {
printf("waiting for pulse: chid = %x\, coid = %x\n", chid, coid);
rcvid = MsgReceivePulse( chid, &pulse, sizeof (pulse), NULL );
printf("rcvid = %x\n", rcvid);
}
And send pulse message from my driver:
log_error(1,coid = %x\n", my_interrupt_info.coid);
IntDebug3 = MsgSendPulse (my_interrupt_info.coid, 10, my_interrupt_info.level, my_interrupt_info.statusid);
I confirm that coid is the same value (passed to driver from app), and MsgSendPulse return 0. However, my app never seem
to receive the pulse (the 2nd printf statement never print). What did I do wrong ?
Any help will be appreciated.
Thanks !!!
hung
|
|
|