Changeset 2050 for Whitix/trunk/kernel/module.c
- Timestamp:
- 05/26/09 10:15:14 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/kernel/module.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/kernel/module.c
r1975 r2050 482 482 VaList list; 483 483 char* name; 484 char* args[2]; 485 int fds[] = {0, 0, 0}; 486 int pid, exitStatus, ret; 484 487 485 488 VaStart(list, fmt); … … 487 490 VaEnd(list); 488 491 489 /* TODO: Call userspace service that will load modules based on name, device 490 * ID or lack of system call 491 */ 492 args[0] = name; 493 args[1] = NULL; 494 495 pid = Exec("/System/Modules/modloader", fds, args); 496 497 if (pid < 0) 498 return -ENOENT; 499 500 ret = ThrWaitForProcessFinish(pid, &exitStatus); 501 502 if (ret < 0) 503 return ret; 492 504 493 505 MemFree(name); 494 495 return 0; 506 507 if (exitStatus) 508 exitStatus = -ENOENT; 509 510 return exitStatus; 496 511 } 497 512
