Changeset f9b2cb4c in mainline for uspace/srv/devman/driver.c


Ignore:
Timestamp:
2015-08-23T12:50:23Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef495f
Parents:
0dd16778
Message:

unify interface API

  • introduce new interfaces
  • unify location service clients to always expect service ID as the second argument
  • remove obsolete methods that take explicit exchange management arguments (first phase)
  • use interfaces in device drivers, devman, location service, logger, inet
File:
1 edited

Legend:

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

    r0dd16778 rf9b2cb4c  
    3636#include <sys/stat.h>
    3737#include <io/log.h>
    38 #include <ipc/driver.h>
    3938#include <loc.h>
    4039#include <str_error.h>
     
    573572       
    574573        if (rc != EOK) {
    575                 /* TODO handle error */
    576         }
    577 
    578         /* Wait for answer from the driver. */
    579         async_wait_for(req, &rc);
    580 
    581         switch(rc) {
     574                async_forget(req);
     575        } else {
     576                /* Wait for answer from the driver. */
     577                async_wait_for(req, &rc);
     578        }
     579
     580        switch (rc) {
    582581        case EOK:
    583582                dev->state = DEVICE_USABLE;
     
    592591       
    593592        dev->passed_to_driver = true;
    594 
    595         return;
    596593}
    597594
Note: See TracChangeset for help on using the changeset viewer.