Driver/snull/snull_enqueue_buf()

Last-modified: 2007-09-18 (火) 11:35:52

163 :void snull_enqueue_buf(struct net_device *dev, struct snull_packet *pkt)
164 :{
165 : unsigned long flags;
166 : struct snull_priv *priv = netdev_priv(dev);
167 :
168 : spin_lock_irqsave(&priv->lock, flags);
169 : pkt->next = priv->rx_queue; /* FIXME - misorders packets */
170 : priv->rx_queue = pkt;
171 : spin_unlock_irqrestore(&priv->lock, flags);
172 :}