Query: mpt_hardresethandler
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MPT_HARDRESETHANDLER(9) Message-based devices MPT_HARDRESETHANDLER(9)NAMEmpt_HardResetHandler - Generic reset handlerSYNOPSISint mpt_HardResetHandler(MPT_ADAPTER * ioc, int sleepFlag);ARGUMENTSioc Pointer to MPT_ADAPTER structure sleepFlag Indicates if sleep or schedule must be called.DESCRIPTIONIssues SCSI Task Management call based on input arg values. If TaskMgmt fails, returns associated SCSI request.REMARK_HardResetHandler can be invoked from an interrupt thread (timer) or a non-interrupt thread. In the former, must not call schedule.NOTEA return of -1 is a FATAL error case, as it means a FW reload/initialization failed. Returns 0 for SUCCESS or -1 if FAILED.COPYRIGHTKernel Hackers Manual 2.6. July 2010 MPT_HARDRESETHANDLER(9)