IDE device driver query




Hello to all,

I am doing diagnostic of HDD on the linux 2.6. The challenge we are
facing is the synchronization with the existing ide driver. The kernel
module that we have written directly accesses the ide controller
registers. The restriction is that we cannot make any changes in the
currently running ide driver. But how to make sure that while my module
is writing into a particular sector, the existing driver does not
interfere?
Is there a way to temporarily shutdown the running IDE interface and
resume it once the diagnostics is done?

Thanks & Regards,
-Nutty

.