Changeset 8b1e15ac in mainline for uspace/drv/test2/test2.c
- Timestamp:
- 2011-02-11T22:26:36Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68414f4a
- Parents:
- 1b367b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test2/test2.c
r1b367b4 r8b1e15ac 63 63 name, message); 64 64 65 int rc = child_device_register_wrapper(parent, name,65 int rc = register_function_wrapper(parent, name, 66 66 match_id, match_score); 67 67 … … 82 82 { 83 83 device_t *dev = (device_t *) arg; 84 function_t *fun; 84 85 85 86 async_usleep(1000); … … 90 91 "test1", "virtual&test1", 10); 91 92 92 add_device_to_class(dev, "virtual"); 93 fun = create_function(); 94 fun->ftype = fun_exposed; 95 fun->name = "a"; 96 97 register_function(fun, dev); 98 99 add_function_to_class(fun, "virtual"); 93 100 94 101 return EOK; 95 102 } 96 97 103 98 104 static int add_device(device_t *dev) … … 101 107 dev->name, (int) dev->handle); 102 108 103 if ( dev->parent == NULL) {109 if (str_cmp(dev->name, "child") != 0) { 104 110 fid_t postpone = fibril_create(postponed_birth, dev); 105 111 if (postpone == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.