📄 rtmac_vnic.h
字号:
/* include/rtmac/rtmac_vnic.h * * rtmac - real-time networking media access control subsystem * Copyright (C) 2002 Marc Kleine-Budde <kleine-budde@gmx.de>, * 2003 Jan Kiszka <Jan.Kiszka@web.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __RTMAC_VNIC_H_#define __RTMAC_VNIC_H_#ifdef __KERNEL__#include <linux/init.h>#include <linux/netdevice.h>#include <rtmac/rtmac_disc.h>#define DEFAULT_VNIC_RTSKBS 32int rtmac_vnic_rx(struct rtskb *skb, u16 type);int rtmac_vnic_xmit(struct sk_buff *skb, struct net_device *dev);void rtmac_vnic_set_max_mtu(struct rtnet_device *rtdev, unsigned int max_mtu);int rtmac_vnic_add(struct rtnet_device *rtdev, vnic_xmit_handler vnic_xmit);void rtmac_vnic_unregister(struct rtnet_device *rtdev);static inline void rtmac_vnic_cleanup(struct rtnet_device *rtdev){ struct rtmac_priv *mac_priv = rtdev->mac_priv; rtskb_pool_release(&mac_priv->vnic_skb_pool);}int rtmac_proc_read_vnic(char *buf, char **start, off_t offset, int count, int *eof, void *data);int __init rtmac_vnic_module_init(void);void rtmac_vnic_module_cleanup(void);#endif /* __KERNEL__ */#endif /* __RTMAC_VNIC_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -