Blame view
include/linux/coda_psdev.h
2.62 KB
1da177e4c
|
1 2 |
#ifndef __CODA_PSDEV_H #define __CODA_PSDEV_H |
33f60e964
|
3 |
#include <linux/backing-dev.h> |
da47c19e5
|
4 |
#include <linux/mutex.h> |
607ca46e9
|
5 |
#include <uapi/linux/coda_psdev.h> |
33f60e964
|
6 |
|
1da177e4c
|
7 |
struct kstatfs; |
1da177e4c
|
8 9 10 11 12 13 14 15 |
/* communication pending/processing queues */ struct venus_comm { u_long vc_seq; wait_queue_head_t vc_waitq; /* Venus wait queue */ struct list_head vc_pending; struct list_head vc_processing; int vc_inuse; struct super_block *vc_sb; |
5163d9007
|
16 |
struct backing_dev_info bdi; |
da47c19e5
|
17 |
struct mutex vc_mutex; |
1da177e4c
|
18 |
}; |
a1b0aa876
|
19 |
static inline struct venus_comm *coda_vcp(struct super_block *sb) |
1da177e4c
|
20 |
{ |
a1b0aa876
|
21 |
return (struct venus_comm *)((sb)->s_fs_info); |
1da177e4c
|
22 |
} |
1da177e4c
|
23 24 25 26 27 28 29 30 |
/* upcalls */ int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); int venus_getattr(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr); int venus_setattr(struct super_block *, struct CodaFid *, struct coda_vattr *); int venus_lookup(struct super_block *sb, struct CodaFid *fid, const char *name, int length, int *type, struct CodaFid *resfid); |
1da177e4c
|
31 |
int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, |
d83f5901b
|
32 |
kuid_t uid); |
1da177e4c
|
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, struct file **f); int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid, const char *name, int length, struct CodaFid *newfid, struct coda_vattr *attrs); int venus_create(struct super_block *sb, struct CodaFid *dirfid, const char *name, int length, int excl, int mode, struct CodaFid *newfid, struct coda_vattr *attrs) ; int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, const char *name, int length); int venus_remove(struct super_block *sb, struct CodaFid *dirfid, const char *name, int length); int venus_readlink(struct super_block *sb, struct CodaFid *fid, char *buffer, int *length); int venus_rename(struct super_block *, struct CodaFid *new_fid, struct CodaFid *old_fid, size_t old_length, size_t new_length, const char *old_name, const char *new_name); int venus_link(struct super_block *sb, struct CodaFid *fid, struct CodaFid *dirfid, const char *name, int len ); int venus_symlink(struct super_block *sb, struct CodaFid *fid, const char *name, int len, const char *symname, int symlen); int venus_access(struct super_block *sb, struct CodaFid *fid, int mask); int venus_pioctl(struct super_block *sb, struct CodaFid *fid, unsigned int cmd, struct PioctlData *data); |
f7cc02b87
|
58 |
int coda_downcall(struct venus_comm *vcp, int opcode, union outputArgs *out); |
1da177e4c
|
59 |
int venus_fsync(struct super_block *sb, struct CodaFid *fid); |
726c33422
|
60 |
int venus_statfs(struct dentry *dentry, struct kstatfs *sfs); |
1da177e4c
|
61 |
|
7e7f4eae2
|
62 63 64 65 66 |
/* * Statistics */ extern struct venus_comm coda_comms[]; |
1da177e4c
|
67 |
#endif |