Changeset f2ec8c8 in mainline for uspace/lib/libfs


Ignore:
Timestamp:
2008-03-11T20:33:53Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
923c39e
Parents:
8ad8e49
Message:

Introduce fs_handle_t, dev_handle_t and fs_index_t.

Location:
uspace/lib/libfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libfs/libfs.c

    r8ad8e49 rf2ec8c8  
    135135 * @param request       VFS_LOOKUP request data itself.
    136136 */
    137 void libfs_lookup(libfs_ops_t *ops, int fs_handle, ipc_callid_t rid,
     137void libfs_lookup(libfs_ops_t *ops, fs_handle_t fs_handle, ipc_callid_t rid,
    138138    ipc_call_t *request)
    139139{
    140140        unsigned next = IPC_GET_ARG1(*request);
    141141        unsigned last = IPC_GET_ARG2(*request);
    142         int dev_handle = IPC_GET_ARG3(*request);
     142        dev_handle_t dev_handle = IPC_GET_ARG3(*request);
    143143        int lflag = IPC_GET_ARG4(*request);
    144         int index = IPC_GET_ARG5(*request); /* when L_LINK specified */
     144        fs_index_t index = IPC_GET_ARG5(*request); /* when L_LINK specified */
    145145
    146146        if (last < next)
  • uspace/lib/libfs/libfs.h

    r8ad8e49 rf2ec8c8  
    4444typedef struct {
    4545        bool (* match)(void *, void *, const char *);
    46         void * (* node_get)(int, int, unsigned long);
     46        void * (* node_get)(fs_handle_t, dev_handle_t, fs_index_t);
    4747        void * (* create)(int);
    4848        void (* destroy)(void *);
    4949        bool (* link)(void *, void *, const char *);
    5050        int (* unlink)(void *, void *);
    51         unsigned long (* index_get)(void *);
    52         unsigned long (* size_get)(void *);
     51        fs_index_t (* index_get)(void *);
     52        size_t (* size_get)(void *);
    5353        unsigned (* lnkcnt_get)(void *);
    5454        void *(* child_get)(void *);
     
    7575extern bool node_is_mp(int, unsigned long);
    7676
    77 extern void libfs_lookup(libfs_ops_t *, int, ipc_callid_t, ipc_call_t *);
     77extern void libfs_lookup(libfs_ops_t *, fs_handle_t, ipc_callid_t, ipc_call_t *);
    7878
    7979#endif
Note: See TracChangeset for help on using the changeset viewer.