Changeset 93b29f0 in rtems


Ignore:
Timestamp:
Oct 30, 2012, 4:20:16 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
736b8d2
Parents:
ee82825d
git-author:
Sebastian Huber <sebastian.huber@…> (10/30/12 16:20:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/30/12 17:03:29)
Message:

Filesystem: Use transient event

Location:
cpukit/libcsupport
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    ree82825d r93b29f0  
    14631463  /**
    14641464   * The task that initiated the unmount process.  After unmount process
    1465    * completion this task will be notified via the
    1466    * @ref RTEMS_FILESYSTEM_UNMOUNT_EVENT.
     1465   * completion this task will be notified via the transient event.
     1466   *
     1467   * @see ClassicEventTransient.
    14671468   */
    14681469  rtems_id                               unmount_task;
     
    15271528 * set to EBUSY.
    15281529 *
    1529  * The unmount process completion notification uses the RTEMS classic API
    1530  * event @ref RTEMS_FILESYSTEM_UNMOUNT_EVENT.  It is a fatal error to terminate
    1531  * the calling thread while waiting for this event.
     1530 * The unmount process completion notification uses the transient event.  It is
     1531 * a fatal error to terminate the calling thread while waiting for this event.
    15321532 *
    15331533 * A concurrent unmount request for the same file system instance has
     
    15361536 * @retval 0 Successful operation.
    15371537 * @retval -1 An error occured.  The @c errno indicates the error.
     1538 *
     1539 * @see ClassicEventTransient.
    15381540 */
    15391541int unmount(
  • cpukit/libcsupport/include/rtems/libio_.h

    ree82825d r93b29f0  
    3838#define RTEMS_LIBIO_SEM         rtems_build_name('L', 'B', 'I', 'O')
    3939#define RTEMS_LIBIO_IOP_SEM(n)  rtems_build_name('L', 'B', 'I', n)
    40 
    41 /**
    42  * @brief Event to signal an unmount process completion.
    43  *
    44  * This event should equal the RTEMS_BDBUF_TRANSFER_SYNC event to avoid too
    45  * many events reserved for the file system.
    46  *
    47  * @see rtems_filesystem_do_unmount() and unmount().
    48  */
    49 #define RTEMS_FILESYSTEM_UNMOUNT_EVENT RTEMS_EVENT_1
    5040
    5141extern rtems_id                          rtems_libio_semaphore;
  • cpukit/libcsupport/src/sup_fs_location.c

    ree82825d r93b29f0  
    217217  if (mt_entry->unmount_task != 0) {
    218218    rtems_status_code sc =
    219       rtems_event_send(mt_entry->unmount_task, RTEMS_FILESYSTEM_UNMOUNT_EVENT);
     219      rtems_event_transient_send(mt_entry->unmount_task);
    220220    if (sc != RTEMS_SUCCESSFUL) {
    221221      rtems_fatal_error_occurred(0xdeadbeef);
  • cpukit/libcsupport/src/unmount.c

    ree82825d r93b29f0  
    7171
    7272  if ( rv == 0 ) {
    73     rtems_event_set out;
    74     rtems_status_code sc = rtems_event_receive(
    75       RTEMS_FILESYSTEM_UNMOUNT_EVENT,
    76       RTEMS_EVENT_ALL | RTEMS_WAIT,
    77       RTEMS_NO_TIMEOUT,
    78       &out
     73    rtems_status_code sc = rtems_event_transient_receive(
     74      RTEMS_WAIT,
     75      RTEMS_NO_TIMEOUT
    7976    );
    8077
Note: See TracChangeset for help on using the changeset viewer.