Method and system of realizing hot-swap function of CF (Compact Flash) card
A hot-swap, functional technology, applied in the direction of instruments, electrical digital data processing, etc., can solve the problems of unexpected system reset, component damage, data communication errors, etc., to improve flexibility and achieve the effect of hot-swap function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0037] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0038] The present invention provides a method for realizing the hot swap function of a CF card, see figure 1 As shown, the card removal steps are as follows:
[0039] S11. When the CF card needs to be pulled out, the application program sets an event waiting for the action of pulling out the card through the interface provided by the CF card hot-swapping driver;
[0040] After the application program sets an event of waiting for the card pulling action, it waits for the card pulling action. When the card pulling action does not occur, the application program is in a sleep state. In addition, the interface provided by the CF card hot plug driver in the present invention is an ioctl interface, so that the cmd and arg parameters passed in by the ioctl function of the application layer will be directly passed into the ioctl interface of the driver layer.
[00...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


