Changeset 30ec5ea in mainline for uspace/lib/usb/src/hc.c


Ignore:
Timestamp:
2011-12-12T15:30:03Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c59dbdd5
Parents:
3538b0e
Message:

libusb: Rename read/write functions. Make del_ref function more robust.

Add doxygen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hc.c

    r3538b0e r30ec5ea  
    6464        assert(connection);
    6565        fibril_mutex_lock(&connection->guard);
     66        if (connection->ref_count == 0) {
     67                /* Closing already closed connection... */
     68                assert(connection->hc_sess = NULL);
     69                fibril_mutex_unlock(&connection->guard);
     70                return EOK;
     71        }
    6672        --connection->ref_count;
    6773        int ret = EOK;
     
    232238}
    233239/*----------------------------------------------------------------------------*/
    234 int usb_hc_control_read(usb_hc_connection_t *connection, usb_address_t address,
     240int usb_hc_read(usb_hc_connection_t *connection, usb_address_t address,
    235241    usb_endpoint_t endpoint, uint64_t setup, void *data, size_t size,
    236242    size_t *real_size)
     
    246252}
    247253/*----------------------------------------------------------------------------*/
    248 int usb_hc_control_write(usb_hc_connection_t *connection, usb_address_t address,
     254int usb_hc_write(usb_hc_connection_t *connection, usb_address_t address,
    249255    usb_endpoint_t endpoint, uint64_t setup, const void *data, size_t size)
    250256{
Note: See TracChangeset for help on using the changeset viewer.