Changes in uspace/app/devctl/devctl.c [1433ecda:8300c72] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/devctl/devctl.c
r1433ecda r8300c72 1 1 /* 2 * Copyright (c) 20 11Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 198 198 } 199 199 200 static errno_t fun_quiesce(const char *path) 201 { 202 devman_handle_t funh; 203 errno_t rc; 204 205 rc = devman_fun_get_handle(path, &funh, 0); 206 if (rc != EOK) { 207 printf(NAME ": Error resolving device function '%s' (%s)\n", 208 path, str_error(rc)); 209 return rc; 210 } 211 212 rc = devman_fun_quiesce(funh); 213 if (rc != EOK) { 214 printf(NAME ": Failed to offline function '%s' (%s)\n", path, 215 str_error(rc)); 216 return rc; 217 } 218 219 return EOK; 220 } 221 200 222 static errno_t drv_list(void) 201 223 { … … 409 431 return 2; 410 432 } 433 } else if (str_cmp(argv[1], "quiesce") == 0) { 434 if (argc < 3) { 435 printf(NAME ": Argument missing.\n"); 436 print_syntax(); 437 return 1; 438 } 439 440 rc = fun_quiesce(argv[2]); 441 if (rc != EOK) { 442 return 2; 443 } 411 444 } else if (str_cmp(argv[1], "list-drv") == 0) { 412 445 rc = drv_list();
Note:
See TracChangeset
for help on using the changeset viewer.