Senthil K
|
io-pkt hangs because of nw_pthread_create function.
|
Senthil K
12/15/2009 6:38 AM
post43851
|
io-pkt hangs because of nw_pthread_create function.
Hi,
I have 2 different network drivers (devnp-sam1.so and devnp-sam2.so).
devnp-sam1.so - handling messages
=========
1.i have created the resource manger ,nw_pthread_create() in iopkt entry function.
2.In thread handler function is in busy loop to handle all the messages
code snippet - devnp-sam1.so
========
iopkt_entry
{
/* i create resource manager also. */
nw_thread_create(&thid,0,my_handler,NULL,0,my_init,NULL);
}
my_init()
{
struct nw_work_thread *wtp;
wtp = WTP;
wtp->quiesce_callout = my_quiesce;
return EOK;
}
my_quiesce()
{
printf(" inside quiesce\n");
}
my devnp-sam1.so loaded successfully.
devnp-sam1.so
=========
1.this is my network driver for handling the packets.
my second driver also loaded successfully.
if my application try to access my devnp-sam2.so(network driver) its hanged.
After that if i do ifconfig its also hanged.
if i load only one driver either devnp-sam1.so or devnp-sam2.so.
the drivers are working properly,my application is not hanging.
But if i load both the driver and run my application.
if i run my application my_quiesce function got invoked and displays
"inside quiesce" and then iopkt got hanged.
What should i do to run my network driver simulatenously.
Please help me if i missing any thing.
Thanks and Regards
K.Senthil
|
|
|