Changeset 8d74fdd in mainline for uspace/lib


Ignore:
Timestamp:
2019-08-17T13:57:05Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
f92b315
Parents:
be07995
git-author:
Michal Koutný <xm.koutny+hos@…> (2016-01-27 00:01:13)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:57:05)
Message:

sysman: Shutdown operation as shutdown.tgt isolation

Since not all dependencies are captured by graph, sysman and taskman are
ignored when stopping servers, so that they can complete the shutdown
transition.

Conflicts:

boot/Makefile.common

Location:
uspace/lib
Files:
3 edited

Legend:

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

    rbe07995 r8d74fdd  
    5050        SYSMAN_CTL_GET_UNITS,
    5151        SYSMAN_CTL_UNIT_GET_NAME,
    52         SYSMAN_CTL_UNIT_GET_STATE
     52        SYSMAN_CTL_UNIT_GET_STATE,
     53        SYSMAN_CTL_SHUTDOWN
    5354} sysman_ipc_method_t;
    5455
  • uspace/lib/sysman/include/sysman/ctl.h

    rbe07995 r8d74fdd  
    4343int sysman_unit_get_name(unit_handle_t, char *, size_t);
    4444int sysman_unit_get_state(unit_handle_t, unit_state_t *);
     45
     46int sysman_shutdown(void);
    4547#endif
  • uspace/lib/sysman/src/ctl.c

    rbe07995 r8d74fdd  
    192192        return rc;
    193193}
     194
     195int sysman_shutdown(void)
     196{
     197        async_exch_t *exch = sysman_exchange_begin(SYSMAN_PORT_CTL);
     198        int rc = async_req_0_0(exch, SYSMAN_CTL_SHUTDOWN);
     199        sysman_exchange_end(exch);
     200
     201        return rc;
     202}
Note: See TracChangeset for help on using the changeset viewer.