gpt4 book ai didi

linux - net_device linux 中的读取函数

转载 作者:太空宇宙 更新时间:2023-11-04 11:27:15 25 4
gpt4 key购买 nike

我正在 linux 中开发一个小型网络设备。当我经过

结构网络设备操作

{

.ndo_start_xmit = 转移

.ndo_start_xmit 用于将数据从网络设备传输到硬件。但是我将如何知道新数据何时到达网络设备/硬件。如何处理 net_device 中的 read()?或者它是如何在 net_device 中处理的?

谢谢

最佳答案

我相信您正在寻找的函数是在 linux/netdevice.h 中定义的 netif_rx并在 net/core/dev.c 中声明

关于linux - net_device linux 中的读取函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13915043/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com