Changes in uspace/lib/drv/generic/driver.c [ef9460b:d0dd7b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
ref9460b rd0dd7b5 582 582 int ddf_fun_bind(ddf_fun_t *fun) 583 583 { 584 assert(fun->bound == false); 584 585 assert(fun->name != NULL); 585 586 … … 598 599 } 599 600 601 /** Unbind a function node. 602 * 603 * Unbind the specified function from the system. This effectively makes 604 * the function invisible to the system. 605 * 606 * @param fun Function to bind 607 * @return EOK on success or negative error code 608 */ 609 int ddf_fun_unbind(ddf_fun_t *fun) 610 { 611 int res; 612 613 assert(fun->bound == true); 614 615 add_to_functions_list(fun); 616 res = devman_remove_function(fun->handle); 617 if (res != EOK) 618 return res; 619 620 remove_from_functions_list(fun); 621 622 fun->bound = false; 623 return EOK; 624 } 625 600 626 /** Add single match ID to inner function. 601 627 * … … 635 661 } 636 662 637 /** Add exposed function to c lass.663 /** Add exposed function to category. 638 664 * 639 665 * Must only be called when the function is bound. 640 666 */ 641 int ddf_fun_add_to_c lass(ddf_fun_t *fun, const char *class_name)667 int ddf_fun_add_to_category(ddf_fun_t *fun, const char *cat_name) 642 668 { 643 669 assert(fun->bound == true); 644 670 assert(fun->ftype == fun_exposed); 645 671 646 return devman_add_device_to_c lass(fun->handle, class_name);672 return devman_add_device_to_category(fun->handle, cat_name); 647 673 } 648 674
Note:
See TracChangeset
for help on using the changeset viewer.