TWI275998B - IDE apparatus hot-plug system and implementation method under Linux operating system - Google Patents
IDE apparatus hot-plug system and implementation method under Linux operating system Download PDFInfo
- Publication number
- TWI275998B TWI275998B TW92134745A TW92134745A TWI275998B TW I275998 B TWI275998 B TW I275998B TW 92134745 A TW92134745 A TW 92134745A TW 92134745 A TW92134745 A TW 92134745A TW I275998 B TWI275998 B TW I275998B
- Authority
- TW
- Taiwan
- Prior art keywords
- controller
- ide
- operating system
- plug
- hot
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012545 processing Methods 0.000 claims description 46
- 230000010365 information processing Effects 0.000 claims description 14
- 238000003780 insertion Methods 0.000 claims description 10
- 230000037431 insertion Effects 0.000 claims description 10
- 239000000523 sample Substances 0.000 claims description 3
- 230000006870 function Effects 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
1275998 五、發明說明α) 【發明所屬之技術領域】 本發明是關於一種I DE設備熱插/拔系統及實現方 法,特別是關於一種在L i nux作業系統下實現I DE設備熱插 /拔的系統及方法。 【先前技術】 IDE( Integrated Device Electronics)是一種磁碟 機的介面類型’也稱為ATA( AT Attachment)介面。IDE 介面模式經歷了三個不同時期的技術變化,由最早的p I 〇 (Programmed I/O)傳輸方式升級到先進的DMA ( Direct1275998 V. INSTRUCTION DESCRIPTION α) [Technical Field] The present invention relates to an I DE device hot plug/pull system and an implementation method thereof, and more particularly to an I DE device hot plug/pull operation under a Linux operating system System and method. [Prior Art] IDE (Integrated Device Electronics) is a type of interface of a disk drive, also known as an ATA (AT Attachment) interface. The IDE interface model has undergone three different technological changes, upgrading from the earliest p I O (Programmed I/O) transfer to advanced DMA (Direct
Memory Access)傳輸方式,直至現在最新的Ultra DMA (Ultra Direct Memory Access)傳輸方式 。 I DE設備指的是採用I DE介面的電腦設備。目前,我們 的電腦中標配的I DE設備無外乎兩類——硬碟和光碟機,硬 碟的存在形式比較簡單,而光碟機則包括CD_R〇M驅動器、 DVD-ROM驅動器和CD-r/rw光碟刻錄機三種常見的類型。此 外,我們不常見的IDE設備還有ZIP軟碟驅動器、〇RB活動 硬碟驅動器等。總的來說,IDE與存儲設備幾乎可以說是 無論具體I DE設備的工作原理及姓媸执 媳田, 人、、、口稱叹叶如何,由於 y 了同樣的介面、在同樣的匯流排上被同一個控制器指 $者二使用同樣的指令體系來完成與系統 ^ 爽。從具體的地方來 #思些相同之處表現在設備的資料連接增 面形狀、設置方式都大致相同。 尾、、見Memory Access), up to now the latest Ultra DMA (Ultra Direct Memory Access) transmission method. The I DE device refers to a computer device that uses the I DE interface. At present, the standard I DE devices in our computers are nothing more than two types - hard disk and CD player. The existence of hard disk is relatively simple, and the CD player includes CD_R〇M drive, DVD-ROM drive and CD- There are three common types of r/rw disc burners. In addition, our uncommon IDE devices include ZIP floppy drives, 〇RB active hard drives, and more. In general, IDE and storage devices can be said to be almost the same as the working principle of the specific I DE device and the surname of the 媸 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , By the same controller, the second commander uses the same instruction system to complete the system. From the specific place, #though the same thing is expressed in the data connection surface shape and setting method of the device are almost the same. Tail, see
12759% 五、發-------- 和時接與IDE設備打交道是IDE控制器’最早8〇86、286 單獨的8、代(甚至4 8 6時代的早期)’ 1㈣設備都需要一個 器來$控制卡來連接1 DE設備,並通過這個卡上的1 DE控制 始,對丨!^設備的各種訪問操作。但自從48 6時代開 直到今控制>器被曰集成到了系統的晶片組的南橋晶片中, 熥立Τ °这些晶片組都提供了完全相同的配置集成兩個 Ε控制器,每個控制器可接駁兩個ide設備(分別為 王自又備和從設備)。 在I DE設備上也有一個丨DE控制器來完成設備與主機之 間IDE控制命令以及資料監控/傳輸等功能。只不過,這些 控制器的存在形式由於jDE設備的不同,與主機端(晶片組 内集成)完全不一樣。簡單來說,整個iDE就是由IDE設 備、主機/設備的I DE控制器、I DE資料連接/傳輸電纜和介 面共同構成的一個子系統。· 所謂熱插拔’指的就是帶電插/拔電腦的硬體。熱插 拔可以節省電腦關機重新啟動的時間,還能降低開關機時 電腦啟動電流過大對硬體造成的衝擊,所以在高級電腦用 戶中備受青睞。 現有的I DE設備熱插拔的實現,大致有如下兩種方 法:一種採用專用的硬體設備,在硬體磁片陣列的基礎 上,不需要軟體(作業系統)的干預,實現IDE設備的熱 插/拔。這種方法硬體設備造價昂貴,只適用於高檔的伺 服器。 另一種方法需要安裝I DE控制器的專用驅動程式,由12759% V. Hair -------------- Interacting with IDE devices is the IDE controller 'early 8〇86, 286 Separate 8, generation (even in the early 4 8 6 era)' 1 (four) devices are required One device comes to the $ control card to connect to the 1 DE device, and through the 1 DE control on this card, the various access operations of the device! But since the 48 6 era, until now, the control device has been integrated into the south bridge of the system's chipset, these chipsets provide the same configuration to integrate two Ε controllers, each controller It can connect two ide devices (both Wang and slave). There is also a 丨DE controller on the I DE device to complete the IDE control commands and data monitoring/transmission functions between the device and the host. However, the presence of these controllers is completely different from the host side (integrated in the chipset) due to the different jDE devices. Simply put, the entire iDE is a subsystem consisting of an IDE device, a host/device I DE controller, an I DE data connection/transmission cable, and an interface. · The so-called hot plugging refers to the hardware that plugs in/out the computer. Hot plugging can save time for computer shutdown and restart, and it can reduce the impact on the hardware caused by excessive computer startup current when switching on and off, so it is favored among advanced computer users. The existing I DE device hot plug implementation has the following two methods: one uses a dedicated hardware device, on the basis of the hardware disk array, does not require the intervention of the software (operation system) to realize the IDE device Hot plug / pull. This method of hardware equipment is expensive and only suitable for high-end servos. Another method requires a dedicated driver for installing the I DE controller.
1275998 五、發明說明(3) " -------- 實現IDE設備熱插,拔。這個驅動程式 ί i m上控制器’通用性不強。同時…㈣χ作 爰熱插/拔的專用驅動程式並不容易獲得。 =,如何在不需要專用的硬體設備和專用的驅動程 二;引不提供一種低成本且通用性較好的I DE設備熱 插/拔的方法已經成為業界亟待解決的問題。 【發明内容】 二X月)馮解決上述問題而提供一種L i nux作業系統 下I DE叹備熱插/拔的實現方法,不需要昂貴的硬體設備 和專用的驅動程式,即可在系統帶電運行的過程中,實現 I D E设備的插入和拔除。 本發明提供一種Linux作業系統下IDE設備熱插/拔系 統,用於在Linux作業系統帶電運行的過程中,實現Ι])Ε設 備的插入和拔除,該系統包括一中斷處理模組,用於自動 偵測並分析I D E設備熱插拔操作所引起的硬體中斷;一用 戶空間處理模組’用於在接到該中斷處理模組發出的通知 後根據插/拔類型而將该I D E設備與應用程式在用戶空間 相分離;以及一 I DE註冊資訊處理模組,用於根據用戶空 間的處理情況以及插/拔類型而對丨DE設備的註冊資訊進 行修改。 本發明進而提供一種L i nux作業系統下I DE設備熱插/ 拔的實現方法,在L i nux作業系統帶電運行的過程中,實 現I DE設備的插入和拔除,該方法首先捕獲丨DE設備熱插/ 拔事件,接著定位發生該熱插/拔事件的具體丨DE設備並1275998 V. Invention Description (3) " -------- Realize the hot plugging and unplugging of IDE devices. This driver ί i on the controller 'universal is not strong. At the same time... (4) The special driver for hot plugging/unplugging is not easy to obtain. = How to eliminate the need for dedicated hardware devices and dedicated drivers. 2. The method of hot plugging/unplugging of I DE devices with low cost and good versatility has become an urgent problem in the industry. [Summary of the Invention] The second X) Feng solves the above problems and provides an implementation method of I DE spoof hot plug/pull in the L i nux operating system, which does not require expensive hardware devices and dedicated drivers. Insertion and removal of IDE devices during live operation. The invention provides an IDE device hot plug/unplug system for a Linux operating system, which is used for inserting and extracting a device during a live operation of a Linux operating system. The system includes an interrupt processing module for Automatically detect and analyze the hardware interruption caused by the hot plug operation of the IDE device; a user space processing module 'is used to connect the IDE device according to the plug/unplug type after receiving the notification sent by the interrupt processing module The application is separated in the user space; and an I DE registration information processing module is used to modify the registration information of the DE device according to the processing situation of the user space and the plug/unplug type. The invention further provides an implementation method for hot plugging/unplugging of the I DE device under the L i nux operating system, which realizes insertion and extraction of the I DE device during the live operation of the L i nux operating system, the method first capturing the 丨DE device Hot plug/unplug event, then locate the specific 丨DE device where the hot plug/unplug event occurs and
$ 7頁 1275998 五、發明說明(4) 分析插/拔類型,然後根據該丨DE設備的使用情況將其與 應用程式在用戶空間分離,最後根據插/拔類型修改I DE 控制器中的註冊資訊。 本發明透過動態修改L i nux内核中I DE設備的資料結構 資訊,在L i nux作業系統層次上實現I DE設備插/拔操作, 不需要專用的硬體設備和專用的驅動程式,主要利用軟體 進行處理,成本很低且通用性較好。 【實施方式】 如第1圖所示,本發明提供一種Li nux作業系統下IDE 設備熱插/拔的實現方法,在L i nux作業系統帶電運行的 過程中,實現I DE設備的插入和拔除,該方法首先捕獲I DE 設備熱插/拔事件(步驟1 0 1);接著定位發生該熱插/拔 事件的具體I DE設備並分析插/拔類型(步驟1 〇 2);然後 根據該I D E設備的使用情況將其與應用程式在用戶空間分 離(步驟1 0 3);最後根據插/拔類型修改I dE控制器中的 註冊資訊(步驟1 04)。 為進一步清楚的描述本發明的實現,請參閱第2圖, 其為本發明的模組架構圖,功能模組按照L i nux的特點被 劃分成内核空間的π I D E註冊資訊處理模組中斷處理模 組”和用戶空間的"用戶空間處理模組”三個模組。 I D Ε控制器在發生熱插/拔事件時,會產生硬體中 斷。”中斷處理模組”註冊一個中斷處理程式,用來捕獲熱 插/拔事件。在捕獲到熱插/拔事件後,中斷處理模組分 析中斷原因:具體的I DE控制器和插入/拔除類型。然後$7:1275998 V. INSTRUCTIONS (4) Analyze the plug/unplug type, then separate it from the application in the user space according to the usage of the DE device, and finally modify the registration in the I DE controller according to the plug/pull type. News. The invention realizes the insertion and extraction operation of the I DE device at the level of the L i nux operating system by dynamically modifying the data structure information of the I DE device in the L i nux core, and does not require a dedicated hardware device and a dedicated driver, and mainly utilizes The software is processed at a low cost and is versatile. [Embodiment] As shown in FIG. 1 , the present invention provides a method for implementing hot plugging/unplugging of an IDE device under a Li nux operating system, and inserting and removing an I DE device during a live operation of the Linux operating system. The method first captures the I DE device hot plug/unplug event (step 1 0 1); then locates the specific I DE device in which the hot plug/pull event occurs and analyzes the plug/pull type (step 1 〇 2); The use of the IDE device separates it from the application in the user space (step 1 0 3); finally, the registration information in the IdE controller is modified according to the plug/unplug type (step 104). For a further clear description of the implementation of the present invention, please refer to FIG. 2, which is a schematic diagram of a module architecture of the present invention. The function module is divided into kernel space according to the characteristics of the Luxux, and the π IDE registration information processing module is interrupted. Modules and user space "user space processing module" three modules. The I D Ε controller generates a hardware interrupt when a hot plug/unplug event occurs. The "Interrupt Processing Module" registers an interrupt handler to capture hot plug/unplug events. After the hot plug/pull event is captured, the interrupt processing module is analyzed for the cause of the interrupt: the specific I DE controller and the insert/pull type. then
第8頁 1275998 五、發明說明(5) 會通知”用戶空間處理程式”進行處理。 π用戶空間處理模組π設計成一個守護進程,在L i n u X 系統啟動後自動執行並處於等待。在接到,,中斷處理模 組’’的通知後,'’用戶空間處理程式”完成用戶空間需要進 行的處理:如拔除設備前,終止各個應用程式對該設備的 使用,使該設備處於安全的可拔除狀態。在完成處理後, 調用π I DE註冊資訊處理模組,’。 I D Ε注冊> §孔處理模組,’負責處理l i n u X k e r n e 1 (核 〜)中關於I D E没備的註冊資訊。Linux kernel中關於IDE 設備的註冊資訊保存在一個陣列中,陣列的每一個單元對 應一個IDE設備。通過修改該陣列可以在Linux kerne^ 貫現對I DE設備的註冊或登出操作,從而實現丨DE設備插入 和拔除。 下面從各個模組的處理流程出發來說明本發明的實現 方法’第3圖為中斷處理模組的流程圖,π中斷處理模 組”可以設計成Linux Kernel可載入模組,模組初始化 後,註冊一個中斷處理函數(步驟3〇1),該中斷處理函 數處於等待狀態,等待中斷發生(步驟3〇2)。當發生ide 熱插拔事件後,產生硬體中斷,該中斷觸發中斷處理函 數。 中斷處理函數判斷中斷的具體原因,判斷是哪一個 I DE控制器發生熱插/拔,是插入還是拔除(步驟3 〇 3)。 喚醒n用戶空間處理程式"進行處理(步驟3〇4)。然後中 斷處理模組繼續進入等待,等候下一次中斷發生。其中,Page 8 1275998 V. Description of the invention (5) The "User Space Processing Program" will be notified for processing. The π user space processing module π is designed as a daemon process that is automatically executed and waits after the L i n u X system is started. After receiving the notification of the interrupt processing module '', the 'user space handler' completes the processing required by the user space: before the device is unplugged, the application of the device is terminated and the device is secured. After the processing is completed, the π I DE registration information processing module is called, '. ID Ε Registration> § hole processing module, 'responsible for processing linu X kerne 1 (nuclear ~) in the IDE is not ready Registration information. The registration information about the IDE device in the Linux kernel is stored in an array, and each unit of the array corresponds to an IDE device. By modifying the array, the registration or logout operation of the I DE device can be performed in Linux kerne. Therefore, the 丨DE device insertion and removal are realized. The following describes the implementation method of the present invention from the processing flow of each module. FIG. 3 is a flowchart of the interrupt processing module, and the π interrupt processing module can be designed as a Linux Kernel. Loading the module, after the module is initialized, register an interrupt handler function (step 3〇1), the interrupt handler function is in a wait state, waiting An interrupt occurs (step 3〇2). When an ide hot swap event occurs, a hardware interrupt is generated that triggers the interrupt processing function. The interrupt handler determines the specific cause of the interrupt and determines which I DE controller is hot-plugged/unplugged, whether it is inserted or removed (step 3 〇 3). Wake up the n user space handler " for processing (step 3〇4). The interrupt processing module then continues to wait, waiting for the next interrupt to occur. among them,
$ 9頁 1275998 五、發明言" ---- 戶斤士 田士 明插/拔類型,是根據硬體中斷類型,判斷當前丨Df# 的操作是插入還是拔除。 & 、第4圖為用戶空間處理模組的流程圖,”用戶空間處王 程式”啟動後進入睡眠狀態,等待„中斷處理模組”喚醒处理 (步驟4 0 1,4 0 2)。在被喚醒之後,首先取得發生中 具體設備(步驟4 0 3),然後判斷設備是插入還是拔除的 (步驟4 0 4)。如果是插入操作,不做進一步處理,= 調用I DE注冊資訊處理模組π (步驟4 〇 8),由π I DF却皿 冊嘗 訊處理板組π作進一步的處理。 、 如果中斷類型為拔除控制器的操作,判斷控制器是 被應用私式使用(步驟4 0 5)。如果沒有應用程式使用此 控制器,表明控制器可以安全的拔除,可直接調用,,j DE註 冊資訊處理模組π進行處理。 如果控制器已經被使用,判斷控制器是否是磁片陣列 的〆部分,是否有冗餘(步驟4 0 6)。如果控制器有冗 餘,表明拔除此控制器不會影響到應用程式的使用,可從 冗餘中移除此控制器(步驟4 0 9)。然後調用” I DE註冊資 訊處理模組”進行處理。 如果控制器沒有冗餘,就需要強制終止使用此控制11 的用戶程式(步驟4 0 7),清除對控制器的使用,然後父 於” I DE註冊資訊處理模組’’作進一步的處理。 、,口 >肅資訊 第5圖為I DE註冊資訊處理模組流程圖。π I w、 處理模組,'運行在Linux核心空間’由π用戶空間處理^ 式”調用,處理IDE設備的的資料結構。首先通過ide一$9页 1275998 V. Inventions " ---- Hu Jinshi Tian Shiming plug-in/pull type is based on the type of hardware interrupt, to determine whether the current operation of Df# is inserted or removed. & Figure 4 is a flow chart of the user space processing module. After the user program starts, the user enters the sleep state and waits for the interrupt processing module to wake up (steps 4 0 1, 4 0 2). After being awakened, the specific device in the process is first acquired (step 4 0 3), and then it is judged whether the device is inserted or removed (step 4 0 4). If it is an insert operation, no further processing is performed, = call I DE registration information processing module π (step 4 〇 8), and π I DF is used to process the processing board group π for further processing. If the interrupt type is the operation of the controller, the controller is judged to be used by the application (step 4 0 5). If no application uses this controller, it means that the controller can be safely removed, can be called directly, and the j DE registration information processing module π is processed. If the controller has been used, determine if the controller is part of the disk array and if there is redundancy (step 4 06). If the controller has redundancy, indicating that the removal of this controller does not affect the use of the application, the controller can be removed from the redundancy (step 4 0 9). Then call "I DE Registration Information Processing Module" for processing. If the controller is not redundant, it is necessary to forcefully terminate the user program using this control 11 (step 4 0 7), clear the use of the controller, and then the parent "I DE registration information processing module" for further processing. , mouth > Su information Figure 5 is the I DE registration information processing module flow chart. π I w, processing module, 'run in the Linux core space 'by π user space processing ^ type" call, processing IDE devices Data structure. First through ide one
1275998 五、發明說明(7) 陣列獲取指定控制器的資料結構(步驟5 〇丨)。判斷熱插 /拔類型(步驟5 0 2) ’如果為插入操作,調用核心函數 ide—init 一 hwif — ports,初始化控制器的硬體參數(步驟 5 0 3)。然後通過核心函數丨de_probe_in〇du 1 e、 create一proc一ide—interfaces、ide一driver一modul e探測 控制器,填充註冊資訊到控制器的資料結構中(步驟 504)。然後通過核心函數ide__setup__dma設置控制器的 DΜA方式(505),再調用核心函數ide_dma_check和 set —using一dma,為用 DMA(直接内存訪問,Direct Memory Access)方式(步驟5 0 6)。此時控制器資訊已經 被正確的加入到核心的資料結構中,用戶程式也可以訪問 該I DE控制器。控制器的插入操作到次結束。 如果進行拔除操作,調用核心函數i d e _ u n r e g i s t e r, 清除控制器的註冊資訊(步驟5 〇 7)。這樣控制器就拔除 了。 下面為了具體說明本發明之技術,特舉一具體實施 例。如在_個存儲伺服器中,有一個I DE控制器插槽為空 閒狀態,將一個控制器插入到該插槽的處理過程如下: 首先中斷處理模組檢測到中斷發生,判斷出一個I DE 控制器插入到系統中,調用用戶空間處理程式。用戶空間 處理程式判斷是I D E插入操作,不做處理,直接調用I D E言主 冊資訊處理模組。I D E註冊資訊處理模組取得該控制器的 資料結構,初始化硬體參數。探測控制器,填充註冊資訊 到控制器的資料結構中。初始化控制器的DMA參數,啟動1275998 V. INSTRUCTIONS (7) The array acquires the data structure of the specified controller (step 5 〇丨). Determine the hot plug/pull type (step 5 0 2) ‘If it is an insert operation, call the core function ide—init a hwif — ports to initialize the controller's hardware parameters (step 5 0 3). Then, through the core functions 丨de_probe_in〇du 1 e, create a proc-ide-interfaces, ide-driver-module probe controller, the registration information is filled into the data structure of the controller (step 504). Then set the controller's DΜA mode (505) through the core function ide__setup__dma, and then call the core functions ide_dma_check and set_using a dma for DMA (Direct Memory Access) mode (step 506). At this point, the controller information has been correctly added to the core data structure, and the user program can also access the I DE controller. The controller's insert operation ends. If the plucking operation is performed, the core function i d e _ u n r e g i s t e r is called to clear the registration information of the controller (step 5 〇 7). The controller is then removed. DETAILED DESCRIPTION OF THE INVENTION In order to specifically describe the technology of the present invention, a specific embodiment will be described. For example, in the _ storage server, there is an I DE controller slot in the idle state. The process of inserting a controller into the slot is as follows: First, the interrupt processing module detects that the interrupt occurs and determines an I DE The controller is inserted into the system and the user space handler is called. The user space processing program judges the I D E insertion operation, and does not process, directly calls the I D E statement book information processing module. The I D E registration information processing module obtains the data structure of the controller and initializes the hardware parameters. The probe controller populates the registration information into the data structure of the controller. Initialize the DMA parameters of the controller and start
1275998 五、發明說明(8) DMA方式。 以上所述者,僅為本發明其中的較佳實施例而已,並 非用來限定本發明的實施範圍;即凡依本創作申請專利範 圍所作的均等變化與修飾,皆為本創作專利範圍所涵蓋。1275998 V. Description of invention (8) DMA method. The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; that is, the equivalent changes and modifications made by the scope of the patent application are covered by the scope of the patent application. .
第12頁 1275998 圖式簡單說明 第1圖為本發明之L i nux作業系統下I DE設備熱插/拔的實現 方法流程圖; 第2圖為本發明之L i nux作業系統下I DE設備熱插/拔系統模 組架構圖, 第3圖為本發明所提之中斷處理模組的處理流程圖; 第4圖為本發明所提之用戶空間處理模組的處理流程圖; 及 第5圖為本發明所提之I DE註冊資訊處理模組的處理流程 圖。Page 12 1275998 Brief Description of the Drawings FIG. 1 is a flow chart of a method for implementing hot plugging/unplugging of I DE devices in the L i nux operating system of the present invention; FIG. 2 is a diagram showing I DE devices under the L i nux operating system of the present invention. Hot plug/unplug system module architecture diagram, FIG. 3 is a processing flowchart of the interrupt processing module proposed by the present invention; FIG. 4 is a processing flowchart of the user space processing module proposed by the present invention; The figure is a processing flowchart of the I DE registration information processing module proposed by the present invention.
【圖式符號說明】 步驟1 0 1 捕獲I DE設備熱插/拔事件 步驟1 0 2 定位發生該熱插/拔事件的具體I DE設備並分析 插/拔類型 步驟1 0 3 根據該I DE設備的使用情況將其與應用程式在用 戶空間分離 步驟1 0 4 根據插/拔類型修改I DE控制器中的註冊資訊 步驟3 0 1 註冊中斷處理程式 步驟3 0 2 等待中斷發生 步驟3 0 3 判斷中斷具體内容[Description of Schematic] Step 1 0 1 Capture I DE device hot plug/pull event Step 1 0 2 Locate the specific I DE device where the hot plug/pull event occurs and analyze the plug/pull type step 1 0 3 According to the I DE The device usage separates it from the application in user space. Step 1 0 4 Modify the registration information in the I DE controller according to the plug/unplug type. Step 3 0 Register the interrupt handler Step 3 0 2 Wait for the interrupt to occur Step 3 0 3 Determine the specific content of the interruption
步驟3 0 4 喚醒用戶空間處理模組 步驟4 0 1 等待中斷處理模組喚醒通知 步驟4 0 2 是否被中斷喚醒 步驟4 0 3 取得發生中斷的具體設備 步驟4 0 4 是否為拔除操作Step 3 0 4 Wake up the user space processing module Step 4 0 1 Wait for the interrupt processing module to wake up the notification Step 4 0 2 Whether to wake up by interrupt Step 4 0 3 Obtain the specific device that interrupted Step 4 0 4 Is the extraction operation
第13頁 1275998 圖式簡單說明 步驟4 0 5 控制器是否被使用 步驟406 控制器是否有冗餘 步驟4 0 7 強制終止使用控制器的程式 步驟4 0 8 呼叫I DE註冊資訊處理模組 步驟4 0 9 從冗餘中移除控制器 步驟5 0 1 得到控制器的資料結構 步驟5 0 2 是否為插入操作 步驟5 0 3 初始化控制器的硬體參數Page 13 1275998 Schematic description step 4 0 5 Whether the controller is used Step 406 Controller has redundancy Step 4 0 7 Force termination of the program using the controller Step 4 0 8 Call I DE Registration Information Processing Module Step 4 0 9 Remove controller from redundancy Step 5 0 1 Get the data structure of the controller Step 5 0 2 Is the insertion operation step 5 0 3 Initialize the hardware parameters of the controller
步驟5 0 4 探測控制器,填充註冊資訊到控制器的資料結 構中 步驟5 0 5 設置控制器的DMA方式 步驟5 0 6 啟用ΜΑ方式 步驟5 0 7 清除控制器的註冊資訊Step 5 0 4 Detect the controller and fill the registration information to the controller's data structure. Step 5 0 5 Set the controller's DMA mode Step 5 0 6 Enable the ΜΑ mode Step 5 0 7 Clear the controller registration information
第14頁Page 14
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW92134745A TWI275998B (en) | 2003-12-09 | 2003-12-09 | IDE apparatus hot-plug system and implementation method under Linux operating system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW92134745A TWI275998B (en) | 2003-12-09 | 2003-12-09 | IDE apparatus hot-plug system and implementation method under Linux operating system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW200519745A TW200519745A (en) | 2005-06-16 |
| TWI275998B true TWI275998B (en) | 2007-03-11 |
Family
ID=38646136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW92134745A TWI275998B (en) | 2003-12-09 | 2003-12-09 | IDE apparatus hot-plug system and implementation method under Linux operating system |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI275998B (en) |
-
2003
- 2003-12-09 TW TW92134745A patent/TWI275998B/en not_active IP Right Cessation
Also Published As
| Publication number | Publication date |
|---|---|
| TW200519745A (en) | 2005-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1882917B (en) | Method and apparatus for monitoring and resetting a coprocessor | |
| CN107423169B (en) | Method and system for testing high speed peripheral device interconnection equipment | |
| US8862790B2 (en) | Method for identifying version type of windows operating system on a host by a USB device | |
| RU2436145C1 (en) | Information processing device and method of controlling said device | |
| RU2008151698A (en) | PERIPHERAL DEVICE TYPE "CONNECT AND WORK" | |
| CN102081581A (en) | Power management system and method | |
| CN1233799A (en) | PCI and adapter requirements after reset | |
| CN110419035B (en) | USB host to host automatic switching | |
| CN110647486A (en) | PCIe link training method, end equipment and communication system | |
| CN101751274B (en) | Virtual machine system and unloading method of universal serial bus device thereof | |
| CN107145198B (en) | Method for improving compatibility of server to hard disk and mainboard thereof | |
| CN116737636B (en) | PCIE (peripheral component interface express) equipment hot plug control method and related device | |
| US8527667B2 (en) | Apparatuses and methods for transferring data | |
| WO2020001150A1 (en) | Method, system and medium for instantly prompting in-position change of sata and nvme devices | |
| CN1632769B (en) | IDE equipment hot plug/unplug system under Linux operating system and implementation method | |
| TWI275998B (en) | IDE apparatus hot-plug system and implementation method under Linux operating system | |
| TW201337577A (en) | Method and system for transmitting data and electronic apparatus using the method | |
| CN115407941A (en) | VMD function starting method and related assembly thereof | |
| WO2015139431A1 (en) | Stable hot plugging driving method and apparatus and hot plugging-supporting equipment | |
| CN119396748A (en) | Device management method, system, computer program product, electronic device and medium | |
| EP1749268B1 (en) | Method for managing the plug-in or removal of a memory card into or from a card reader and apparatus for use in said method | |
| CN101782856A (en) | Computer system | |
| CN116627472A (en) | Firmware program upgrading method and server of high-speed peripheral component equipment | |
| CN105208192B (en) | A kind of method and device of detection terminal storage card state | |
| CN104823174B (en) | Method and system for re-enumeration of USB3.0 compatible devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |