Changeset eff1a590 in mainline for uspace/srv
- Timestamp:
- 2010-03-25T14:47:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1769ee
- Parents:
- a087f2e
- Location:
- uspace/srv
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
ra087f2e reff1a590 591 591 size_t pathsize = (str_size(node->name) + 1); 592 592 if (NULL != parent) { 593 pathsize += str_size(parent-> name) + 1;593 pathsize += str_size(parent->pathname) + 1; 594 594 } 595 595 -
uspace/srv/drivers/root/root.c
ra087f2e reff1a590 80 80 if (NULL == (platform = create_device())) { 81 81 goto failure; 82 } 82 } 83 83 84 // TODO - replace this with some better solution (sysinfo ?) 85 platform->name = STRING(UARCH); 84 platform->name = "hw"; 86 85 printf(NAME ": the new device's name is %s.\n", platform->name); 87 86 … … 90 89 goto failure; 91 90 } 92 match_id->id = platform->name; 91 92 // TODO - replace this with some better solution (sysinfo ?) 93 match_id->id = STRING(UARCH); 93 94 match_id->score = 100; 94 95 add_match_id(&platform->match_ids, match_id); … … 130 131 } 131 132 132 static bool root_init()133 {134 // TODO driver initialization135 return true;136 }137 138 133 int main(int argc, char *argv[]) 139 134 { 140 printf(NAME ": HelenOS root device driver\n"); 141 if (!root_init()) { 142 printf(NAME ": Error while initializing driver.\n"); 143 return -1; 144 } 145 135 printf(NAME ": HelenOS root device driver\n"); 146 136 return driver_main(&root_driver); 147 137 }
Note:
See TracChangeset
for help on using the changeset viewer.