语法 #include <sys/types.h>#include <sys/errno.h>#include <aixif/net_if.h> intnet_xmit (ifp,m,netfp,lngth,m_ext) struct ifnet*ifp; struct mbuf*m; struct file*netfp; intlngth; struct mbuf *m_ext; 参数 描述 Net_xmit内核服务会构建乌约结构,然后调用弗 p_rwuio服务来传输包。 对于...
errno.h ether.h ethernet.h event_injector.h event.h fcntl.h feature.h fenv.h flex_layout.h flow_control.h fmtmsg.h fnmatch.h format_interface.h format_type.h format.h frame_config.h ftw.h geometry2d.h getopt.h glob.h gpio_if.h graphic_assert.h ...
Sintaxe #include <sys/types.h>#include <sys/errno.h>#include <aixif/net_if.h> intnet_xmit (ifp,m,netfp,lngth,m_ext) struct ifnet*ifp; struct mbuf*m; struct file*netfp; intlngth; struct mbuf *m_ext; Parâmetros Descrição O serviço kernelnet_xmitconstrói uma estruturauioe...
errno.h error-injection.h errqueue.h errseq.h etherdevice.h ethtool.h ethtool_netlink.h eventfd.h eventpoll.h evm.h execmem.h export-internal.h export.h exportfs.h ext2_fs.h extable.h extcon-provider.h extcon.h f2fs_fs.h f75375s.h falloc.h fanotify.h fault-inject-usercopy.h fa...
(&po->tx_ring); status = TP_STATUS_SEND_REQUEST; err = packet_xmit(po, skb); if (unlikely(err != 0)) { if (err > 0) err = net_xmit_errno(err); if (err && __packet_get_status(po, ph) == TP_STATUS_AVAILABLE) { /* skb was destructed already */ skb = NULL; g...
err = net_xmit_errno(err); if (err) { kfree_skb(newskb); return err; } if (newskb) netif_rx_ni(newskb); /* update statistics */ pkg_stats->tx_frames++; pkg_stats->tx_frames_delta++; return 0; inval_skb:
__neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, struct net_device *dev) { struct neighbour *n = neigh_lookup(tbl, pkey, dev); if (n) return n; return neigh_create(tbl, pkey, dev); } struct neighbour_cb { unsigned long sched_next; unsigned int flags...
int dev_queue_xmit( struct sk_buff * skb) { struct net_device * dev = skb->dev; struct netdev_queue * txq; struct Qdisc * q; int rc = - ENOMEM; /* GSO will handle the following emulations directly. */ if (netif_needs_gso (dev , skb ))//如果是GSO数据包,且设备支持GSO数据...
#include <linux/errno.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/ioport.h> #include <linux/pm.h> #include <linux/irq.h> #include <asm/hardware.h> #include <asm/io.h> #include <asm/uaccess.h>
&pfifo_fast_ops; EXPORT_SYMBOL(default_qdisc_ops); static void qdisc_maybe_clear_missed(struct Qdisc *q, const struct netdev_queue *txq) { clear_bit(__QDISC_STATE_MISSED, &q->state); /* Make sure the below netif_xmit_frozen_or_stopped() * checking happens after clearing STATE_...