Abstract:
A direct memory access (DMA) transmission control method and apparatus, where the method includes selecting a target channel for the target DMA task according to a priority corresponding to the target DMA task when a DMA transmission request for transmitting data of a target DMA task is received, querying a task type and a priority of another DMA task that has occupied a channel and a task type of the target DMA task when the other DMA task exists on the DMA channel, comparing the task type and the priority of the other DMA task that has occupied the channel with the task type and the priority of the target DMA task, and controlling data transmission on the DMA channel according to a comparison result. Hence, the urgent DMA task can be preferentially processed.
Abstract:
The application provides a route synchronization method and an apparatus. The method includes: receiving, by a first FEF, an entire network address request message sent by a second FEF, where the entire network address request message includes an MAC address and an FC network segment of the second FEF; parsing, by the first FEF, the entire network address request message, acquiring the MAC address and the FC network segment of the second FEF, and storing the MAC address and the FC network segment of the second FEF in a routing table of the first FEF; and sending, by the first FEF, a response message to the second FEF, where the response message includes a MAC address and an FC network segment of the first FEF. Thus, distributed routing of an FCoE network is implemented, and scalability of the FCoE network is improved.
Abstract:
A packet diversion method and a DPI device are disclosed in the present invention. The method includes: receiving a packet, where the packet contains a user identifier; according to the user identifier and preset first correspondence between the user identifier and a service type, searching for the service type corresponding to the user identifier in the packet; adding an inner virtual local area network Vlan header to the packet according to the service type, preset second correspondence between a service type and a slave device identifier, and preset third correspondence between a slave device identifier and each bit in a diversion identifier field; and diverting the packet to a corresponding slave device according to the diversion identifier in the diversion identifier field. The inner Vlan header carrying the diversion identifier field is added to the packet, to indicate diversion of the packet in a same cluster.
Abstract:
A packet diversion method and a DPI device are disclosed in the present invention. The method includes: receiving a packet, where the packet contains a user identifier; according to the user identifier and preset first correspondence between the user identifier and a service type, searching for the service type corresponding to the user identifier in the packet; adding an inner virtual local area network Vlan header to the packet according to the service type, preset second correspondence between a service type and a slave device identifier, and preset third correspondence between a slave device identifier and each bit in a diversion identifier field; and diverting the packet to a corresponding slave device according to the diversion identifier in the diversion identifier field. The inner Vlan header carrying the diversion identifier field is added to the packet, to indicate diversion of the packet in a same cluster.
Abstract:
A display method for a device having a foldable screen includes: detecting a status of the foldable screen; displaying an application interface on one or more of a first screen of the foldable screen or a second screen of the foldable screen according to a first display policy if the status of the foldable screen is a support state or a folded state; or if the status of the foldable screen is an unfolded state, displaying the application interface on the foldable screen in the unfolded state according to a second display policy, where in the unfolded state the first screen and the second screen form a same plane or form an approximately same plane, and where the first display policy is different from the second display policy.
Abstract:
A garbage data scrubbing method includes obtaining an input/output (IO) busy/idle status of a terminal at a current moment, where the IO busy/idle status includes a busy state and an idle state. When the IO busy/idle status of the terminal at the current moment is the idle state, a discard message is delivered to a storage device, where the discard message includes an initial address and a size of to-be-scrubbed physical space in the storage device, and where the discard message is used to unbind a mapping relationship between a physical address of the to-be-scrubbed physical space and a corresponding logical address.
Abstract:
A display control method includes: obtaining, by a terminal, orientations and display statuses of a first screen and a second screen; determining, by the terminal, whether a trigger event used for adjusting the display statuses of the first screen and the second screen occurs; and when the trigger event occurs, displaying, by the terminal, adjusted display content on the first screen and the second screen based on the orientations and the display statuses of the first screen and the second screen. By obtaining an orientation and a display status of a terminal screen, when the trigger event occurs, the terminal can adjust the display status of the screen in a timely manner, so that a user can perform an interaction operation and interaction display between different screens.
Abstract:
A control method includes obtaining feature data using at least one sensor, the feature data being acquired by the terminal using the at least one sensor, generating an action instruction based on the feature data and a decision-making mechanism of the terminal, and executing the action instruction. In this application, various aspects of feature data are acquired using a plurality of sensors, data analysis is performed on the feature data, and a corresponding action instruction is then generated based on a corresponding decision-making mechanism to implement interactive control.
Abstract:
A method for protecting application data includes detecting a deleting operation performed by a first application on first data. The method also includes determining, based on a preset condition, whether to delete the first data of the first application. The method further includes renaming the first data of the first application based on a determination that the first application meets the preset condition. The method additionally includes storing the renamed first data in a memory.
Abstract:
A method for executing a hard disk operation command, a hard disk, and a storage medium. After an operation command is received, a target LUN in an idle state is determined; a target physical block that is to be accessed when the operation command is executed is determined from the target LUN; the operation command is stored in a processing waiting queue corresponding to a flash memory chip to which the target physical block belongs; and a working state of the target LUN is changed to a non-idle state when a quantity of operation commands that wait to be processed in a processing waiting queue respectively corresponding to each flash memory chip in the target LUN is greater than a preset threshold.