Patent ID: 9223740
Filing Date: 2015-12-29
Classification: G06F

Abstract:
1. A method for detecting a hot-swapping status of a Secure Digital (SD) card in a linux operating system, comprising: activating a polling thread at an application end corresponding to a user-interacting application when the user-interacting application is activated, wherein the user-interacting application is running in a user mode and requiring the hot-swapping status, wherein the polling thread for detecting the hot-swapping status of the SD card is disposed in the user mode; transmitting an inquiry command to the SD card at a predetermined frequency; receiving a current command return message replied in response to the inquiry command, wherein the current command return message comprises information indicating whether the SD card is present; determining the hot-swapping status according to a comparison of a previous command return message and the current command return message; replying the hot-swapping status to the user-interacting application; deactivating the polling thread when the user-interacting application is terminated.