Changes in uspace/lib/drv/generic/driver.c [26fa82bc:fc51296] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r26fa82bc rfc51296 47 47 #include <stdlib.h> 48 48 #include <str.h> 49 #include <str_error.h>50 49 #include <ctype.h> 51 50 #include <errno.h> … … 403 402 get_remote_method(rem_iface, iface_method_idx); 404 403 if (iface_method_ptr == NULL) { 405 / * The interface has not such method */404 // the interface has not such method 406 405 printf("%s: driver_connection_gen error - " 407 406 "invalid interface method.", driver->name); … … 656 655 int ddf_driver_main(driver_t *drv) 657 656 { 658 int rc;659 660 657 /* 661 658 * Remember the driver structure - driver_ops will be called by generic … … 671 668 672 669 /* 673 * Register driver with device manager using generic handler for674 * incomingconnections.670 * Register driver by device manager with generic handler for incoming 671 * connections. 675 672 */ 676 rc = devman_driver_register(driver->name, driver_connection); 677 if (rc != EOK) { 678 printf("Error: Failed to register driver with device manager " 679 "(%s).\n", (rc == EEXISTS) ? "driver already started" : 680 str_error(rc)); 681 682 return 1; 683 } 684 685 /* Return success from the task since server has started. */ 686 rc = task_retval(0); 687 if (rc != EOK) 688 return 1; 689 673 devman_driver_register(driver->name, driver_connection); 674 690 675 async_manager(); 691 676
Note:
See TracChangeset
for help on using the changeset viewer.