Changeset 08d9525a in mainline for uspace/lib/libdrv/generic/driver.c


Ignore:
Timestamp:
2010-05-12T10:22:22Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4ef3c2
Parents:
f031713
Message:

add default handler for client requests which do not use any of the standard interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libdrv/generic/driver.c

    rf031713 r08d9525a  
    253253                       
    254254                        if (!is_valid_iface_idx(iface_idx)) {
    255                                 // this is not device's interface
     255                                remote_handler_t *default_handler;
     256                                if (NULL != (default_handler = device_get_default_handler(dev))) {
     257                                        (*default_handler)(dev, callid, &call);
     258                                        break;
     259                                }
     260                                // this is not device's interface and the default handler is not provided
    256261                                printf("%s: driver_connection_gen error - invalid interface id %d.", driver->name, iface_idx);
    257262                                ipc_answer_0(callid, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.