Changeset 519a97d in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2016-08-28T15:17:39Z (9 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.