Changes in uspace/lib/device/src/devman.c [8300c72:edeee9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/device/src/devman.c
r8300c72 redeee9f 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2007 Josef Cejka 3 * Copyright (c) 2013 Jiri Svoboda 4 4 * Copyright (c) 2010 Lenka Trochtova 5 5 * All rights reserved. … … 343 343 } 344 344 345 errno_t devman_drv_fun_quiesce(devman_handle_t funh)346 {347 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_DRIVER);348 if (exch == NULL)349 return ENOMEM;350 351 errno_t retval = async_req_1_0(exch, DEVMAN_DRV_FUN_QUIESCE, funh);352 353 devman_exchange_end(exch);354 return retval;355 }356 357 errno_t devman_drv_fun_wait_stable(devman_handle_t funh)358 {359 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_DRIVER);360 if (exch == NULL)361 return ENOMEM;362 363 errno_t retval = async_req_1_0(exch, DEVMAN_DRV_FUN_WAIT_STABLE, funh);364 365 devman_exchange_end(exch);366 return retval;367 }368 369 345 async_sess_t *devman_parent_device_connect(devman_handle_t handle, 370 346 unsigned int flags) … … 518 494 } 519 495 520 errno_t devman_fun_quiesce(devman_handle_t funh)521 {522 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT);523 if (exch == NULL)524 return ENOMEM;525 526 errno_t retval = async_req_1_0(exch, DEVMAN_FUN_QUIESCE, funh);527 528 devman_exchange_end(exch);529 return retval;530 }531 532 496 static errno_t devman_get_handles_once(sysarg_t method, sysarg_t arg1, 533 497 devman_handle_t *handle_buf, size_t buf_size, size_t *act_size) … … 656 620 } 657 621 658 errno_t devman_quiesce_devices(const char *path)659 {660 devman_handle_t funh;661 errno_t rc;662 663 funh = 0;664 rc = devman_fun_get_handle(path, &funh, 0);665 if (rc != EOK)666 return rc;667 668 return devman_fun_quiesce(funh);669 }670 671 622 errno_t devman_get_drivers(devman_handle_t **drvs, 672 623 size_t *count)
Note:
See TracChangeset
for help on using the changeset viewer.