Changeset 7fcb74c in mainline for uspace/lib/libc/generic/devmap.c
- Timestamp:
- 2009-06-29T16:02:32Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f49cf64
- Parents:
- bfd247f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/devmap.c
rbfd247f r7fcb74c 219 219 } 220 220 221 int devmap_null_create(void) 222 { 223 int phone = devmap_get_phone(DEVMAP_CLIENT, IPC_FLAG_BLOCKING); 224 225 if (phone < 0) 226 return -1; 227 228 ipcarg_t null_id; 229 int retval = async_req_0_1(phone, DEVMAP_DEVICE_NULL_CREATE, &null_id); 230 if (retval != EOK) 231 return -1; 232 233 return (int) null_id; 234 } 235 236 void devmap_null_destroy(int null_id) 237 { 238 int phone = devmap_get_phone(DEVMAP_CLIENT, IPC_FLAG_BLOCKING); 239 240 if (phone < 0) 241 return; 242 243 async_req_1_0(phone, DEVMAP_DEVICE_NULL_DESTROY, (ipcarg_t) null_id); 244 } 245 221 246 ipcarg_t devmap_device_get_count(void) 222 247 {
Note:
See TracChangeset
for help on using the changeset viewer.