Changeset 7707954 in mainline for uspace/lib/libdrv/include/driver.h
- Timestamp:
- 2010-03-18T21:20:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bda60d9
- Parents:
- 084ff99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libdrv/include/driver.h
r084ff99 r7707954 38 38 #include <adt/list.h> 39 39 40 41 42 40 typedef struct device { 43 41 long handle; … … 61 59 int driver_main(driver_t *drv); 62 60 61 static inline device_t * create_device() 62 { 63 device_t *dev = malloc(sizeof(device_t)); 64 if (NULL != dev) { 65 memset(dev, 0, sizeof(device_t)); 66 } 67 68 return dev; 69 } 70 71 bool child_device_register(device_t *child, const char *child_name, device_t *parent); 72 73 74 63 75 #endif 64 76
Note:
See TracChangeset
for help on using the changeset viewer.