Linux environment network interface structural body memory processing method and device

A technology of interface structure and environmental network, which is applied in the field of memory processing of network interface structure in Linux environment, can solve problems such as system downtime and inaccessibility, and achieve the effect of improving efficiency

Active Publication Date: 2018-01-09
HANGZHOU DPTECH TECH
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, after the interface is unregistered, if the interface is incorrectly unregistered due to a reference count error, or for other reasons, there are still processes that need to access the memory allocated for the structure, and the allocated memory has been released at this time. System down due to inaccessibility

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Linux environment network interface structural body memory processing method and device
  • Linux environment network interface structural body memory processing method and device
  • Linux environment network interface structural body memory processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] First, the Linux environment network interface structure memory processing method of the embodiment of the present invention is described, and the method may include the following steps:

[0027] When receiving an interface use request, according to the interface identification provided by the use request, search for a target memory address, the target memory address is the first address of the memory allocated to the target structure, and the target structure includes the interface identification;

[0028] When the target memory address is not found, create a structure including the interface identifier and an interface status identifier;

[0029] Allocate memory for the created structure;

[0030] Set the interface state flag of the created structure to available state;

[0031] When receiving an interface logout request, look for a structure including the interface identifier provided by the logout request;

[0032] Setting the interface status flag of the found st...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a Linux environment network interface structural body memory processing method and device. The method comprises the steps of when an interface using request is received, searching for a target memory address according to an interface identification provided by the using request, wherein the target memory address is the first address of the memory distributed in a target structural body, and the target structural body comprises the interface identification; when the target memory address is not searched, creating a structural body which includes the interface identification and is provided with an interface state identification; distributing a memory for the created structural body; configuring the interface state identification of the created structural body to be anavailable state; when an interface log-out re quest is received, searching for the structural body which comprises the interface identification provided by the log-out request; when the interface identification state of the searched structural body is configured to be an unavailable state, reserving the memory distributed for the searched structural body. When an interface is logged out, the distributed memory is reserved, and the problem that a system is power down when a progress accesses the memory is solved.

Description

technical field [0001] The present application relates to the field of network technology, in particular to a memory processing method and device for a network interface structure in a Linux environment. Background technique [0002] In the Linux operating system, the network device interface layer uniformly defines different network interfaces through the net_device structure, and realizes the unification of various hardware at the software level. The net_device structure corresponding to each interface includes information such as the name of the network interface, the physical address, and the index corresponding to the interface one by one. When a process needs to use a certain network interface, create the net_device structure of the interface and dynamically allocate memory for the variables in the structure. After that, other processes can use the interface through the created structure. When there are no more processes using the interface, the interface is unregiste...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30
Inventor 肖海波
Owner HANGZHOU DPTECH TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products