Changeset bcf23cf in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2007-09-27T12:38:31Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
37e7dc54
Parents:
5d4e90f0
Message:

VFS work.
Start support for the Patch Lookup Buffer.
Also add rootfs pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    r5d4e90f0 rbcf23cf  
    3737#include <libadt/list.h>
    3838#include <atomic.h>
    39 #include <types.h>
     39#include <sys/types.h>
    4040
    4141#define dprintf(...)    printf(__VA_ARGS__)
     
    4444
    4545#define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)       
    46 
    47 typedef int64_t off_t;
    4846
    4947typedef enum {
     
    126124} vfs_file_t;
    127125
    128 extern link_t fs_head;
     126extern link_t fs_head;          /**< List of registered file systems. */
    129127
    130 extern void vfs_register(ipc_callid_t rid, ipc_call_t *request);
     128extern vfs_node_t *rootfs;      /**< Root node of the root file system. */
     129
     130#define MAX_PATH_LEN            (64 * 1024)
     131
     132#define PLB_SIZE                (2 * MAX_PATH_LEN)
     133
     134/** Each instance of this type describes one path lookup in progress. */
     135typedef struct {
     136        link_t  plb_link;       /**< Active PLB entries list link. */
     137        unsigned index;         /**< Index of the first character in PLB. */
     138        size_t len;             /**< Number of characters in this PLB entry. */
     139} plb_entry_t;
     140
     141extern atomic_t plb_futex;      /**< Futex protecting plb and plb_head. */
     142extern uint8_t *plb;            /**< Path Lookup Buffer */
     143extern link_t plb_head;         /**< List of active PLB entries. */
     144
     145extern void vfs_register(ipc_callid_t, ipc_call_t *);
     146extern void vfs_lookup(ipc_callid_t, ipc_call_t *);
    131147
    132148#endif
Note: See TracChangeset for help on using the changeset viewer.