Changes in uspace/lib/drv/generic/driver.c [d0dd7b5:1dc4a5e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rd0dd7b5 r1dc4a5e 582 582 int ddf_fun_bind(ddf_fun_t *fun) 583 583 { 584 assert(fun->bound == false);585 584 assert(fun->name != NULL); 586 585 … … 597 596 fun->bound = true; 598 597 return res; 599 }600 601 /** Unbind a function node.602 *603 * Unbind the specified function from the system. This effectively makes604 * the function invisible to the system.605 *606 * @param fun Function to bind607 * @return EOK on success or negative error code608 */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 598 } 625 599
Note:
See TracChangeset
for help on using the changeset viewer.