Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-pkt-v4 crash when nw_pthread_create() used.: (1 Item)
   
io-pkt-v4 crash when nw_pthread_create() used.  
Hi iam working of QNX 641 for ppc target.using io-net driver with shim layer.

We have developed a module which broadcast raw ethernet packets.
which is working fine.
When i include the functionality of broadcasting in nw_pthread_create() function io-pkt is getting crashed.

i am creating the thread as follows.

if (nw_pthread_create( NULL, NULL, send_qnet_broadcast, NULL,WT_FLOW,nr_nwthread_init,NULL) != EOK) {
		slogf(_SLOGC_RESOLVER, _SLOG_CRITICAL,"nw_pthrad_create() failed");
		return 0;
	}

the nr_nwthread_init() function is as follows.

static int nr_nwthread_init(void * arg)
{

	struct nw_work_thread	*wtp;
	slogf(_SLOGC_RESOLVER, _SLOG_CRITICAL, "nr_nwthread_init");
	wtp = WTP;
	wtp->intr_sighot = 1;
	wtp->wt_zone_mbuf.max = mbuf_cache_max;
	wtp->wt_zone_packet.max = pkt_cache_max;
	wtp->quiesce_callout = NULL;
	wtp->quiesce_arg = NULL;
	slogf(_SLOGC_RESOLVER, _SLOG_CRITICAL, "nr_nwthread_init end");  
	return EOK;  
}


what else iam missing out??
Why io-pkt-v4 is getting crashed??
is there an detailed documentation about how to use nw_pthread_create() ??
How to set its attributes??
Let me know?