Changeset 8c06905 in mainline
- Timestamp:
- 2010-04-05T20:27:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e598e0
- Parents:
- 9a66bc2e
- Location:
- uspace
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/device/hw_res.c
r9a66bc2e r8c06905 41 41 bool get_hw_resources(int dev_phone, hw_resource_list_t *hw_resources) 42 42 { 43 bool ret = true;44 43 ipcarg_t count = 0; 45 44 int rc = async_req_1_1(dev_phone, HW_RES_DEV_IFACE, GET_RESOURCE_LIST, &count); -
uspace/lib/libc/include/ipc/dev_iface.h
r9a66bc2e r8c06905 31 31 32 32 #include <ipc/ipc.h> 33 #include <malloc.h> 33 34 34 35 #define DEV_IFACE_FIRST IPC_FIRST_USER_METHOD … … 85 86 } hw_resource_list_t; 86 87 88 static inline void clean_hw_resource_list(hw_resource_list_t *hw_res) 89 { 90 free(hw_res->resources); 91 hw_res->resources = 0; 92 hw_res->count = 0; 93 } 94 87 95 #endif
Note:
See TracChangeset
for help on using the changeset viewer.