Method and device for repairing interrupted singly linked list
A technology of one-way linked list and linked list, which is applied in the direction of response error generation, response error safety measures, etc., and can solve the problem that the two-way linked list is not suitable for data storage structure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] In order to improve the reliability of the singly linked list, Embodiment 1 of the present application shows a method for repairing an interrupted singly linked list, which is applied to a storage device. See image 3 , image 3 It is a flowchart of a method for repairing an interrupted singly linked list shown in Embodiment 1 of the present application, and specifically performs the following steps:
[0039] Step 301: When the pointer in any target node in the one-way linked list is lost or wrong, determine the target linked list to which the target node logically belongs;
[0040] In this embodiment, storage resources that can be stored continuously are applied for in advance in the storage device, and are stored in the form of a one-way linked list.
[0041]Among them, the method of applying for storage resources in advance can save the time of applying for memory when adding nodes in the one-way linked list, and save the time of reclaiming memory when deleting nod...
Embodiment 2
[0076] Corresponding to Embodiment 1 of the aforementioned method for repairing an interrupted singly linked list, the present application also provides Embodiment 2 of an apparatus for repairing an interrupted singly linked list.
[0077] An embodiment of an apparatus for repairing an interrupted one-way linked list of the present application can be applied to a storage device. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for operation by the processor of the storage device where it is located. From a hardware perspective, such as Figure 8 As shown, it is a hardware structural diagram of a storage device where a repairing device for a one-way linked list interrupt shown in Embodiment 2 of the present application is lo...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


