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

Changeset b72efe8 in mainline for uspace/srv/devman/devman.h


Ignore:
Timestamp:
2011-06-19T14:38:59Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
74464e8
Parents:
1d1bb0f
Message:

Separate list_t typedef from link_t (user-space part).

  • list_t represents lists
  • Use list_first(), list_last(), list_empty() where appropriate
  • Use list_foreach() where possible
  • assert_link_not_used()
  • usb_hid_report_path_free() shall not unlink the path, caller must do it
File:
1 edited

Legend:

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

    r1d1bb0f rb72efe8  
    9696        /** List of device ids for device-to-driver matching. */
    9797        match_id_list_t match_ids;
    98         /** Pointer to the linked list of devices controlled by this driver. */
    99         link_t devices;
     98        /** List of devices controlled by this driver. */
     99        list_t devices;
    100100       
    101101        /**
     
    108108typedef struct driver_list {
    109109        /** List of drivers */
    110         link_t drivers;
     110        list_t drivers;
    111111        /** Fibril mutex for list of drivers. */
    112112        fibril_mutex_t drivers_mutex;
     
    130130       
    131131        /** List of device functions. */
    132         link_t functions;
     132        list_t functions;
    133133        /** Driver of this device. */
    134134        driver_t *drv;
     
    170170        match_id_list_t match_ids;
    171171       
    172         /** The list of device classes to which this device function belongs. */
    173         link_t classes;
     172        /** List of device classes to which this device function belongs. */
     173        list_t classes;
    174174        /** Devmap handle if the device function is registered by devmap. */
    175175        devmap_handle_t devmap_handle;
     
    228228         * this class.
    229229         */
    230         link_t devices;
     230        list_t devices;
    231231       
    232232        /**
     
    280280typedef struct class_list {
    281281        /** List of classes. */
    282         link_t classes;
     282        list_t classes;
    283283       
    284284        /**
Note: See TracChangeset for help on using the changeset viewer.