Subversion Repositories HelenOS

Rev

Rev 4439 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4439 Rev 4537
Line 45... Line 45...
45
#include <stdlib.h>
45
#include <stdlib.h>
46
#include <string.h>
46
#include <string.h>
47
#include <stdio.h>
47
#include <stdio.h>
48
#include <assert.h>
48
#include <assert.h>
49
#include <sys/types.h>
49
#include <sys/types.h>
50
#include <libadt/hash_table.h>
50
#include <adt/hash_table.h>
51
#include <as.h>
51
#include <as.h>
52
#include <libfs.h>
52
#include <libfs.h>
53
 
53
 
54
#define min(a, b)       ((a) < (b) ? (a) : (b))
54
#define min(a, b)       ((a) < (b) ? (a) : (b))
55
#define max(a, b)       ((a) > (b) ? (a) : (b))
55
#define max(a, b)       ((a) > (b) ? (a) : (b))
Line 594... Line 594...
594
    nodep->size = size;
594
    nodep->size = size;
595
    nodep->data = newdata;
595
    nodep->data = newdata;
596
    ipc_answer_0(rid, EOK);
596
    ipc_answer_0(rid, EOK);
597
}
597
}
598
 
598
 
-
 
599
void tmpfs_close(ipc_callid_t rid, ipc_call_t *request)
-
 
600
{
-
 
601
    ipc_answer_0(rid, EOK);
-
 
602
}
-
 
603
 
599
void tmpfs_destroy(ipc_callid_t rid, ipc_call_t *request)
604
void tmpfs_destroy(ipc_callid_t rid, ipc_call_t *request)
600
{
605
{
601
    dev_handle_t dev_handle = (dev_handle_t)IPC_GET_ARG1(*request);
606
    dev_handle_t dev_handle = (dev_handle_t)IPC_GET_ARG1(*request);
602
    fs_index_t index = (fs_index_t)IPC_GET_ARG2(*request);
607
    fs_index_t index = (fs_index_t)IPC_GET_ARG2(*request);
603
    int rc;
608
    int rc;
Line 616... Line 621...
616
        nh_link);
621
        nh_link);
617
    rc = tmpfs_destroy_node(FS_NODE(nodep));
622
    rc = tmpfs_destroy_node(FS_NODE(nodep));
618
    ipc_answer_0(rid, rc);
623
    ipc_answer_0(rid, rc);
619
}
624
}
620
 
625
 
-
 
626
void tmpfs_open_node(ipc_callid_t rid, ipc_call_t *request)
-
 
627
{
-
 
628
    libfs_open_node(&tmpfs_libfs_ops, tmpfs_reg.fs_handle, rid, request);
-
 
629
}
-
 
630
 
-
 
631
void tmpfs_device(ipc_callid_t rid, ipc_call_t *request)
-
 
632
{
-
 
633
    ipc_answer_0(rid, ENOTSUP);
-
 
634
}
-
 
635
 
-
 
636
void tmpfs_sync(ipc_callid_t rid, ipc_call_t *request)
-
 
637
{
-
 
638
    /* Dummy implementation */
-
 
639
    ipc_answer_0(rid, EOK);
-
 
640
}
-
 
641
 
621
/**
642
/**
622
 * @}
643
 * @}
623
 */
644
 */