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


Ignore:
Timestamp:
2007-09-15T08:54:35Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ec91b2f
Parents:
183b4a0
Message:

VFS work.

Now, each VFS connection fibril will accept requests in a loop. The idea is that
each connection will be potentially reused for multiple requests before it is
closed by the server.

More VFS_REGISTER bits. Make use of the IPC_M_DATA_SEND wrappers introduced in
the previous commit.

Add enum members for more VFS operations.

File:
1 edited

Legend:

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

    r183b4a0 rd79dcdb  
    3434#define VFS_VFS_H_
    3535
     36#include <ipc/ipc.h>
     37
     38#define VFS_FIRST       FIRST_USER_METHOD
     39
    3640typedef enum {
    37         VFS_REGISTER = 0,
     41        VFS_REGISTER = VFS_FIRST,
    3842        VFS_MOUNT,
    3943        VFS_UNMOUNT,
    4044        VFS_OPEN,
     45        VFS_CREATE,
     46        VFS_CLOSE,
     47        VFS_READ,
     48        VFS_WRITE,
     49        VFS_SEEK,
    4150        VFS_LAST,               /* keep this the last member of the enum */
    4251} vfs_request_t;
     
    4958 */
    5059typedef enum {
    51         VFS_OP_NOTSUP = 0,
     60        VFS_OP_NULL = 0,
    5261        VFS_OP_DEFAULT,
    5362        VFS_OP_DEFINED
     
    6372 */
    6473typedef struct {
    65         char fs_name[FS_NAME_MAXLEN];   /**< Unique identifier of the fs. */
    66         vfs_op_t ops[VFS_LAST];         /**< Operations. */
     74        /** Unique identifier of the fs. */
     75        char fs_name[FS_NAME_MAXLEN];
     76       
     77        /** Operations. */
     78        vfs_op_t ops[VFS_LAST - VFS_FIRST];
    6779} vfs_info_t;
    6880
     
    7183/**
    7284 * @}
    73  */ 
     85 */
Note: See TracChangeset for help on using the changeset viewer.