Changeset 4224ef7 in mainline for uspace/lib


Ignore:
Timestamp:
2019-08-06T18:18:37Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
e55741e
Parents:
dd5c623
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-05-11 16:50:40)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-06 18:18:37)
Message:

sysman: Add VFS FS server autostart

  • VFS autostart instrumentation removes explicit dependency on FS servers.
  • Compositor service properly named, it's now resolved as implicit dependency.

Conflicts:

boot/Makefile.common
uspace/lib/gui/window.c
uspace/srv/locsrv/locsrv.c
uspace/srv/vfs/vfs.c
uspace/srv/vfs/vfs_ops.c

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    rdd5c623 r4224ef7  
    616616        win->surface = NULL;
    617617
     618        unsigned int ipc_flags = IPC_FLAG_AUTOSTART;
    618619        service_id_t reg_dsid;
    619         errno_t rc = loc_service_get_id(winreg, &reg_dsid, 0);
     620        errno_t rc = loc_service_get_id(winreg, &reg_dsid, ipc_flags);
    620621        if (rc != EOK) {
    621622                free(win);
     
    624625
    625626        async_sess_t *reg_sess =
    626             loc_service_connect(reg_dsid, INTERFACE_COMPOSITOR, 0);
     627            loc_service_connect(reg_dsid, INTERFACE_COMPOSITOR, ipc_flags);
     628
    627629        if (reg_sess == NULL) {
    628630                free(win);
     
    639641        }
    640642
    641         win->osess = loc_service_connect(out_dsid, INTERFACE_COMPOSITOR, 0);
     643
     644        win->osess = loc_service_connect(out_dsid, INTERFACE_COMPOSITOR, ipc_flags);
     645
    642646        if (win->osess == NULL) {
    643647                free(win);
     
    645649        }
    646650
    647         win->isess = loc_service_connect(in_dsid, INTERFACE_COMPOSITOR, 0);
     651        win->isess = loc_service_connect(in_dsid, INTERFACE_COMPOSITOR, ipc_flags);
     652
    648653        if (win->isess == NULL) {
    649654                async_hangup(win->osess);
  • uspace/lib/sysman/src/ctl.c

    rdd5c623 r4224ef7  
    3333#include <sysman/sysman.h>
    3434
     35/*
     36 * TODO
     37 * Non-blocking favor of this API is effectively incomplete as it doesn't
     38 * provide means how to obtain result of the start operation.
     39 * Probably devise individual API for brokers that could exploit the fact that
     40 * broker knows when appropriate exposee is created and the request succeeded.
     41 * Still though, it's necessary to centralize timeout into sysman.
     42 */
    3543int sysman_unit_start(const char *unit_name, int flags)
    3644{
Note: See TracChangeset for help on using the changeset viewer.