摘要
网卡是以串行的工作方式处理发送和接收的数据包,这是造成优先级反转的一个主要原因。为了消除这种优先级反转,提高数据发送的实时性,文中从Linux下的以太网卡驱动程序着手,对现在广泛应用的乒乓机制进行了部分的改进,并详细地说明了具体实现过程。为了研究方便,还介绍了网卡的分类情况,及两种最常用的网卡结构:可编程I/O和共享内存。最后对Linux的分层驱动模型实现做了简要介绍。
Network interface controller (NIC) transmits and receives data frame in a serial way. It may cause priority inversion. In this paper, the Ping-Pang mechanism for NIC driver is revised and implemented to reduce priority inversion and improves the real-time of data transmission. In order to research conveniently, two kinds of NIC: programmable I/O and sharing memory, layered device driver model of Linux are introduced.
出处
《微机发展》
2004年第5期5-7,共3页
Microcomputer Development