Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 45f04f8 in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c


Ignore:
Timestamp:
2010-11-18T18:23:43Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
3f0a7971, a7811f17, cb569e6
Parents:
51a268f (diff), c63e70c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge changes that aim to do a better job in differentiating between
dev_handle_t and device_handle_t, respectively, by renaming these types to
devmap_handle_t and devman_handle_t, respectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/gxe_bd/gxe_bd.c

    r51a268f r45f04f8  
    9393static gxe_bd_t *dev;
    9494
    95 static dev_handle_t dev_handle[MAX_DISKS];
     95static devmap_handle_t devmap_handle[MAX_DISKS];
    9696
    9797static fibril_mutex_t dev_lock[MAX_DISKS];
     
    143143        for (i = 0; i < MAX_DISKS; i++) {
    144144                snprintf(name, 16, "%s/disk%d", NAMESPACE, i);
    145                 rc = devmap_device_register(name, &dev_handle[i]);
     145                rc = devmap_device_register(name, &devmap_handle[i]);
    146146                if (rc != EOK) {
    147147                        devmap_hangup_phone(DEVMAP_DRIVER);
     
    161161        ipc_call_t call;
    162162        ipcarg_t method;
    163         dev_handle_t dh;
     163        devmap_handle_t dh;
    164164        int flags;
    165165        int retval;
     
    174174        disk_id = -1;
    175175        for (i = 0; i < MAX_DISKS; i++)
    176                 if (dev_handle[i] == dh)
     176                if (devmap_handle[i] == dh)
    177177                        disk_id = i;
    178178
Note: See TracChangeset for help on using the changeset viewer.