Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/devctl/devctl.c

    r8300c72 r1433ecda  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    198198}
    199199
    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 
    222200static errno_t drv_list(void)
    223201{
     
    431409                        return 2;
    432410                }
    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                 }
    444411        } else if (str_cmp(argv[1], "list-drv") == 0) {
    445412                rc = drv_list();
Note: See TracChangeset for help on using the changeset viewer.