Beispiel #1
0
/* 
 * Currently, this only adds to the wildcard brand.
 */
int netif_event_create(spdid_t spdid)
{
	unsigned short int ucid = cos_get_thd_id();

	assert(wildcard_brand_id > 0);
	NET_LOCK_TAKE();
	if (sched_add_thd_to_brand(cos_spd_id(), wildcard_brand_id, ucid)) BUG();
	add_thd_map(ucid, /*0 wildcard port ,*/ &rb1_md_wildcard);
	NET_LOCK_RELEASE();
	printc("created net uc %d associated with brand %d\n", ucid, wildcard_brand_id);

	return 0;
}
Beispiel #2
0
/* 
 * Currently, this only adds to the wildcard acap.
 */
int netif_event_create(spdid_t spdid)
{
	unsigned short int ucid = cos_get_thd_id();

	NET_LOCK_TAKE();

	/* Wildcard upcall */
	if (cos_net_create_net_acap(0, &rb1_md_wildcard)) BUG();
	assert(wildcard_acap_id > 0);
	add_thd_map(ucid, /*0 wildcard port ,*/ &rb1_md_wildcard);
	NET_LOCK_RELEASE();
	printc("created net uc %d associated with acap %d\n", ucid, wildcard_acap_id);

	return 0;
}