Changeset 0a8f070 in mainline for uspace/lib/c/generic/loader.c


Ignore:
Timestamp:
2019-08-07T02:33:03Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
fe86d9d
Parents:
103939e
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-08-16 16:04:14)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 02:33:03)
Message:

Create taskman server (extracts task-related operations from naming service)

  • Exploits initial phones connected to spawn parent instead of NS.
  • session_ns changed to session_primary (setup during taskman-loader handshake).
  • Task creation moved from NS to taskman (no clonable services anymore).
  • Other task-related operations implementation is to come (task_retval is temporarily dummy).
  • Async framework: implicit connections — create fibrils for calls that arrived through initial phone.

Conflicts:

abi/include/abi/ipc/methods.h
boot/Makefile.common
uspace/Makefile
uspace/app/trace/ipcp.c
uspace/lib/c/generic/async.c
uspace/lib/c/generic/libc.c
uspace/lib/c/generic/loader.c
uspace/lib/c/generic/ns.c
uspace/lib/c/generic/private/async.h
uspace/lib/c/generic/private/ns.h
uspace/lib/c/generic/task.c
uspace/lib/c/include/async.h
uspace/lib/c/include/ipc/services.h
uspace/lib/c/include/ipc/taskman.h
uspace/lib/c/include/loader/pcb.h
uspace/lib/c/include/ns.h
uspace/srv/loader/main.c
uspace/srv/ns/clonable.c
uspace/srv/ns/ns.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/loader.c

    r103939e r0a8f070  
    3333 */
    3434
     35#include <async.h>
     36#include <errno.h>
    3537#include <ipc/loader.h>
    3638#include <ipc/services.h>
     39#include <ipc/taskman.h>
     40#include <libc.h>
     41#include <loader/loader.h>
    3742#include <ns.h>
    38 #include <libc.h>
     43#include <stdlib.h>
     44#include <str.h>
    3945#include <task.h>
    40 #include <str.h>
    41 #include <stdlib.h>
    42 #include <async.h>
    43 #include <errno.h>
    4446#include <vfs/vfs.h>
    45 #include <loader/loader.h>
    4647#include "private/loader.h"
    4748
     
    6768
    6869        async_sess_t *sess =
    69             service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0);
     70            service_connect_blocking(SERVICE_TASKMAN, TASKMAN_CONNECT_TO_LOADER, 0);
    7071        if (sess == NULL) {
    7172                free(ldr);
Note: See TracChangeset for help on using the changeset viewer.