FreeBSD/sys/netinet/toecore.c
/*
 * Register an active TOE device with the system.  This allows it to receive
 * notifications from the kernel.
 */
Register an active TOE device with the system.  This allows it to receive
notifications from the kernel.
Register an active TOE device with the system . This allows it to receive notifications from the kernel .
int
register_toedev(struct toedev *tod)
{
	struct toedev *t;
	mtx_lock(&toedev_lock);
	TAILQ_FOREACH(t, &toedev_list, link) {
		if (t == tod) {
			mtx_unlock(&toedev_lock);
			return (EEXIST);
		}
	}
	TAILQ_INSERT_TAIL(&toedev_list, tod, link);
	registered_toedevs++;
	mtx_unlock(&toedev_lock);
	inp_apply_all(toe_listen_start, tod);
	return (0);
}
int register_toedev ( struct toedev * tod ) { struct toedev * t ; mtx_lock ( & toedev_lock ) ; TAILQ_FOREACH ( t , & toedev_list , link ) { if ( t == tod ) { mtx_unlock ( & toedev_lock ) ; return ( EEXIST ) ; } } TAILQ_INSERT_TAIL ( & toedev_list , tod , link ) ; registered_toedevs ++ ; mtx_unlock ( & toedev_lock ) ; inp_apply_all ( toe_listen_start , tod ) ; return ( 0 ) ; }
Register an active TOE device with the system.
Register an active TOE device with the system .