Changes in uspace/app/devctl/devctl.c [8300c72:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/devctl/devctl.c
r8300c72 r1433ecda 1 1 /* 2 * Copyright (c) 20 25Jiri Svoboda2 * Copyright (c) 2011 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 222 200 static errno_t drv_list(void) 223 201 { … … 431 409 return 2; 432 410 } 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 }444 411 } else if (str_cmp(argv[1], "list-drv") == 0) { 445 412 rc = drv_list();
Note:
See TracChangeset
for help on using the changeset viewer.