Changeset df747b9c in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-04-23T11:30:25Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5af21c5
Parents:
a78fa2a
Message:

added device states (usable, invalid, not present, not initialized); add_device driver callback method returns integer (errno) instead of bool

File:
1 edited

Legend:

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

    ra78fa2a rdf747b9c  
    519519        async_wait_for(req, &rc);
    520520        switch(rc) {
    521                 // TODO inspect return value to find out whether the device was successfully probed and added
    522521        case EOK:
     522                node->state = DEVICE_USABLE;
     523                break;
    523524        case ENOENT:
    524                
     525                node->state = DEVICE_NOT_PRESENT;
    525526                break;
    526                
     527        default:
     528                node->state = DEVICE_INVALID;           
    527529        }
    528530       
Note: See TracChangeset for help on using the changeset viewer.