Method and device for receiving multi-application program message based on zero copy mode
A technology for receiving applications and messages, applied in digital transmission systems, instruments, data exchange networks, etc., can solve problems such as inability to receive multiple applications and messages, and achieve the effect of reducing the occupancy rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0017] see figure 1 As shown, a method for receiving multi-application messages based on a zero-copy method in this embodiment includes the following steps:
[0018] S110, apply for continuous memory space in the network card driver as the buffer queue for message reception; S120, set a buffer queue write pointer register and a plurality of buffer queue read pointer registers in the network card related registers, each buffer queue The read pointer register corresponds to an application program; S130, the network card receives the message and judges whether the buffer queue is full, if the buffer queue is not full, the message is stored in the buffer queue, and the write pointer register is updated at the same time; and S140, Each application separately judges whether there is a message to be received stored in the buffer queue, if so, the message is taken away from the buffer queue, and the network card driver updates the buffer queue read pointer register corresponding to th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 