diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-07-09 10:21:29 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2020-07-17 08:12:37 +0200 |
commit | 3a95a07d88a6926bd2f67dc53c977b8dbc828f9c (patch) | |
tree | bd0a63c5a5bb9ff72ea43bda17a2355bc3688a64 /cpukit/include/rtems/media.h | |
parent | bsps/pc386: Fix IPI for non-consecutive APICIDs (diff) | |
download | rtems-3a95a07d88a6926bd2f67dc53c977b8dbc828f9c.tar.bz2 |
media-server: Add ability for retry.
This adds the possibility to request a retry in the media-listener if an
operation failed. Usefull for example if you want to automatically
reformat a disk if it wasn't possible to mount it.
Diffstat (limited to 'cpukit/include/rtems/media.h')
-rw-r--r-- | cpukit/include/rtems/media.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/include/rtems/media.h b/cpukit/include/rtems/media.h index b2a3e2dc91..3fea38b261 100644 --- a/cpukit/include/rtems/media.h +++ b/cpukit/include/rtems/media.h @@ -281,6 +281,9 @@ typedef enum { * * @retval RTEMS_SUCCESSFUL Successful operation. * @retval RTEMS_IO_ERROR In the inquiry state this will abort the action. + * @retval RTEMS_INCORRECT_STATE In the failed state this will cause a retry. + * Make sure to have a retry counter or similar to avoid endless loops if you + * use this value. */ typedef rtems_status_code (*rtems_media_listener)( rtems_media_event event, |