Changeset 504d103 in mainline


Ignore:
Timestamp:
2019-08-17T13:48:39Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
8fab3f6
Parents:
95d4280a
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-12-04 16:57:19)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:48:39)
Message:

sysman: Call starting by name appropriately
Conflicts:

uspace/srv/devman/driver.c

Location:
uspace
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/sysman.h

    r95d4280a r504d103  
    4545        SYSMAN_BROKER_EXP_REMOVED,
    4646        SYSMAN_CTL_UNIT_HANDLE,
    47         SYSMAN_CTL_UNIT_START,
     47        SYSMAN_CTL_UNIT_START_BY_NAME,
    4848        SYSMAN_CTL_UNIT_STOP,
    4949        SYSMAN_CTL_GET_UNITS,
  • uspace/lib/sysman/include/sysman/ctl.h

    r95d4280a r504d103  
    3535int sysman_unit_handle(const char *, unit_handle_t *);
    3636
    37 int sysman_unit_start(const char *, int);
     37int sysman_unit_start_by_name(const char *, int);
    3838int sysman_unit_stop(unit_handle_t, int);
    3939
  • uspace/lib/sysman/src/ctl.c

    r95d4280a r504d103  
    6464 * TODO convert to name->handle API
    6565 */
    66 int sysman_unit_start(const char *unit_name, int flags)
     66int sysman_unit_start_by_name(const char *unit_name, int flags)
    6767{
    6868        async_exch_t *exch = sysman_exchange_begin(SYSMAN_PORT_CTL);
    6969
    70         aid_t req = async_send_1(exch, SYSMAN_CTL_UNIT_START, flags, NULL);
     70        aid_t req = async_send_1(exch, SYSMAN_CTL_UNIT_START_BY_NAME, flags, NULL);
    7171        sysarg_t rc = async_data_write_start(exch, unit_name, str_size(unit_name));
    7272        sysman_exchange_end(exch);
  • uspace/srv/devman/driver.c

    r95d4280a r504d103  
    348348        /*
    349349         * Non-blocking asynchronous request to start a driver
    350          * FIXME See note about sysman_unit_start non-blocking (asynchronous)
     350         * FIXME See note about sysman_unit_start_by_name non-blocking (asynchronous)
    351351         *       API
    352352         */
    353353        int flags = 0;
    354         rc = sysman_unit_start(unit_name, flags);
     354        rc = sysman_unit_start_by_name(unit_name, flags);
    355355        free(unit_name);
    356356
  • uspace/srv/locsrv/locsrv.c

    r95d4280a r504d103  
    384384        }
    385385
    386         rc = sysman_unit_start(unit_name, IPC_FLAG_BLOCKING);
     386        rc = sysman_unit_start_by_name(unit_name, IPC_FLAG_BLOCKING);
    387387        free(unit_name);
    388388        return rc;
  • uspace/srv/sysman/connection_ctl.c

    r95d4280a r504d103  
    9191}
    9292
    93 static void sysman_unit_start(ipc_callid_t iid, ipc_call_t *icall)
     93static void sysman_unit_start_by_name(ipc_callid_t iid, ipc_call_t *icall)
    9494{
    9595        char *unit_name = NULL;
     
    286286                        sysman_unit_handle(callid, &call);
    287287                        break;
    288                 case SYSMAN_CTL_UNIT_START:
    289                         sysman_unit_start(callid, &call);
     288                case SYSMAN_CTL_UNIT_START_BY_NAME:
     289                        sysman_unit_start_by_name(callid, &call);
    290290                        break;
    291291                case SYSMAN_CTL_UNIT_STOP:
  • uspace/srv/vfs/vfs_ops.c

    r95d4280a r504d103  
    225225        }
    226226
    227         rc = sysman_unit_start(unit_name, IPC_FLAG_BLOCKING);
     227        rc = sysman_unit_start_by_name(unit_name, IPC_FLAG_BLOCKING);
    228228
    229229        free(unit_name);
Note: See TracChangeset for help on using the changeset viewer.