Message receiving method and network device
The embodiment of the invention relates to a technology of message processing and particularly relates to a message receiving method and a network device. The method is applied to a multi-core CPU. The multi-core CPU comprises a master core and a plurality of slave cores. The master core is used for...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention relates to a technology of message processing and particularly relates to a message receiving method and a network device. The method is applied to a multi-core CPU. The multi-core CPU comprises a master core and a plurality of slave cores. The master core is used for determining an operation state of each slave core of the plurality of slave cores and maps the operation state of each slave core through a bit map. The method comprises the steps that in the plurality of slave cores, a first slave core operating in a kernel mode determines whether an interruption signal from an interruption controller is a packet receiving interruption signal or not; and if the interruption signal is the packet receiving interruption signal, the first salve core writes a memory address of a message into a shared memory shared by a user mode and the kernel mode in an interruption process, thereby enabling the address of the message to be seen by the slave kernels in the kernel mode and the user mo |
---|