mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
scst/include/scst.h: Document on_abort_cmd() further
Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -995,7 +995,17 @@ struct scst_tgt_template {
|
||||
/*
|
||||
* Called to notify target driver that the command is being aborted.
|
||||
* If target driver wants to redirect processing to some outside
|
||||
* processing, it should get it using scst_cmd_get().
|
||||
* processing, it should get it using scst_cmd_get(). Since this
|
||||
* function is invoked from the context of a task management function
|
||||
* it runs asynchronously with the regular command processing finite
|
||||
* state machine. In other words, it is only safe to invoke functions
|
||||
* like scst_tgt_cmd_done() or scst_rx_data() from this callback
|
||||
* function if the target driver owns the command and if appropriate
|
||||
* measures have been taken to avoid that the target driver would
|
||||
* invoke one of these functions from the regular command processing
|
||||
* path. Note: if scst_tgt_cmd_done() or scst_rx_data() is invoked
|
||||
* from this callback function these must be invoked with the
|
||||
* SCST_CONTEXT_THREAD argument.
|
||||
*
|
||||
* OPTIONAL
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user