Changeset 0b5a4131 in mainline for uspace/srv


Ignore:
Timestamp:
2010-11-18T18:10:11Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c63e70c
Parents:
991f645
Message:

Rename device_handle_t to devman_handle_t and make it explicitly clear that
device_handle_t is a handle understood by devman.

Location:
uspace/srv/devman
Files:
3 edited

Legend:

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

    r991f645 r0b5a4131  
    5252{
    5353        node_t *dev = hash_table_get_instance(item, node_t, devman_link);
    54         return (dev->handle == (device_handle_t) key[0]);
     54        return (dev->handle == (devman_handle_t) key[0]);
    5555}
    5656
     
    782782 * @return              The device node.
    783783 */
    784 node_t *find_dev_node_no_lock(dev_tree_t *tree, device_handle_t handle)
     784node_t *find_dev_node_no_lock(dev_tree_t *tree, devman_handle_t handle)
    785785{
    786786        unsigned long key = handle;
     
    795795 * @return              The device node.
    796796 */
    797 node_t *find_dev_node(dev_tree_t *tree, device_handle_t handle)
     797node_t *find_dev_node(dev_tree_t *tree, devman_handle_t handle)
    798798{
    799799        node_t *node = NULL;
  • uspace/srv/devman/devman.h

    r991f645 r0b5a4131  
    121121struct node {
    122122        /** The global unique identifier of the device. */
    123         device_handle_t handle;
     123        devman_handle_t handle;
    124124        /** The name of the device specified by its parent. */
    125125        char *name;
     
    179179         * manner.
    180180         */
    181         device_handle_t current_handle;
     181        devman_handle_t current_handle;
    182182       
    183183        /** Synchronize access to the device tree. */
     
    309309extern void delete_dev_node(node_t *node);
    310310extern node_t *find_dev_node_no_lock(dev_tree_t *tree,
    311     device_handle_t handle);
    312 extern node_t *find_dev_node(dev_tree_t *tree, device_handle_t handle);
     311    devman_handle_t handle);
     312extern node_t *find_dev_node(dev_tree_t *tree, devman_handle_t handle);
    313313extern node_t *find_dev_node_by_path(dev_tree_t *, char *);
    314314extern node_t *find_node_child(node_t *, const char *);
  • uspace/srv/devman/main.c

    r991f645 r0b5a4131  
    202202static void devman_add_child(ipc_callid_t callid, ipc_call_t *call)
    203203{
    204         device_handle_t parent_handle = IPC_GET_ARG1(*call);
     204        devman_handle_t parent_handle = IPC_GET_ARG1(*call);
    205205        ipcarg_t match_count = IPC_GET_ARG2(*call);
    206206        dev_tree_t *tree = &device_tree;
     
    271271static void devman_add_device_to_class(ipc_callid_t callid, ipc_call_t *call)
    272272{
    273         device_handle_t handle = IPC_GET_ARG1(*call);
     273        devman_handle_t handle = IPC_GET_ARG1(*call);
    274274       
    275275        /* Get class name. */
     
    414414    bool drv_to_parent)
    415415{
    416         device_handle_t handle = IPC_GET_ARG2(*icall);
     416        devman_handle_t handle = IPC_GET_ARG2(*icall);
    417417       
    418418        node_t *dev = find_dev_node(&device_tree, handle);
Note: See TracChangeset for help on using the changeset viewer.