Changeset 519a97d in mainline


Ignore:
Timestamp:
2016-08-28T15:17:39Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6d351e6
Parents:
75b139f
Message:

Add pager interface and create VFS pager port

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ipc/interfaces.h

    r75b139f r519a97d  
    8181        INTERFACE_LOADER =
    8282            FOURCC_COMPACT('l', 'o', 'a', 'd') | IFACE_EXCHANGE_SERIALIZE,
     83        INTERFACE_PAGER =
     84            FOURCC_COMPACT('p', 'a', 'g', 'e') | IFACE_EXCHANGE_ATOMIC,
    8385        INTERFACE_LOGGER_WRITER =
    8486            FOURCC_COMPACT('l', 'o', 'g', 'w') | IFACE_EXCHANGE_SERIALIZE,
  • uspace/srv/vfs/vfs.c

    r75b139f r519a97d  
    5151#define NAME  "vfs"
    5252
     53static void vfs_pager(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     54{
     55        async_answer_0(iid, ENOTSUP);
     56}
     57
    5358static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    5459{
     
    150155int main(int argc, char **argv)
    151156{
     157        int rc;
     158
    152159        printf("%s: HelenOS VFS server\n", NAME);
    153160       
     
    179186
    180187        /*
     188         * Create a port for the pager.
     189         */
     190        port_id_t port;
     191        rc = async_create_port(INTERFACE_PAGER, vfs_pager, NULL, &port);
     192        if (rc != EOK)
     193                return rc;
     194               
     195        /*
    181196         * Set a connection handling function/fibril.
    182197         */
     
    192207         * Register at the naming service.
    193208         */
    194         int rc = service_register(SERVICE_VFS);
     209        rc = service_register(SERVICE_VFS);
    195210        if (rc != EOK) {
    196211                printf("%s: Cannot register VFS service\n", NAME);
Note: See TracChangeset for help on using the changeset viewer.