Changeset e5556e4a in mainline for uspace/srv/devman/client_conn.c


Ignore:
Timestamp:
2013-09-11T09:46:38Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7969087
Parents:
4c6ade6
Message:

Reverse order of drivers in driver list. Print driver state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/client_conn.c

    r4c6ade6 re5556e4a  
    490490}
    491491
     492/** Get driver state. */
     493static void devman_driver_get_state(ipc_callid_t iid, ipc_call_t *icall)
     494{
     495        driver_t *drv;
     496       
     497        drv = driver_find(&drivers_list, IPC_GET_ARG1(*icall));
     498        if (drv == NULL) {
     499                async_answer_0(iid, ENOENT);
     500                return;
     501        }
     502       
     503        async_answer_1(iid, EOK, (sysarg_t) drv->state);
     504}
     505
    492506/** Function for handling connections from a client to the device manager. */
    493507void devman_connection_client(ipc_callid_t iid, ipc_call_t *icall)
     
    537551                        devman_driver_get_name(callid, &call);
    538552                        break;
     553                case DEVMAN_DRIVER_GET_STATE:
     554                        devman_driver_get_state(callid, &call);
     555                        break;
    539556                default:
    540557                        async_answer_0(callid, ENOENT);
Note: See TracChangeset for help on using the changeset viewer.