int netif_event_xmit(spdid_t spdid, char *mem, int sz) { int ret; if (sz > MTU || sz <= 0) return -EINVAL; NET_LOCK_TAKE(); ret = __netif_xmit(mem, (unsigned int)sz); NET_LOCK_RELEASE(); return ret; }
int netif_event_xmit(spdid_t spdid, struct cos_array *d) { int ret; if (!cos_argreg_arr_intern(d)) return -EINVAL; if (d->sz > MTU || d->sz <= 0) return -EINVAL; NET_LOCK_TAKE(); ret = __netif_xmit(d->mem, (unsigned int)d->sz); NET_LOCK_RELEASE(); return ret; }