1 #ifndef _LINUX_SUNRPC_RPC_PIPE_FS_H
2 #define _LINUX_SUNRPC_RPC_PIPE_FS_H
15 ssize_t (*upcall
)(struct file
*, struct rpc_pipe_msg
*, char __user
*, size_t);
16 ssize_t (*downcall
)(struct file
*, const char __user
*, size_t);
17 void (*release_pipe
)(struct inode
*);
18 int (*open_pipe
)(struct inode
*);
19 void (*destroy_msg
)(struct rpc_pipe_msg
*);
23 struct inode vfs_inode
;
25 struct list_head pipe
;
26 struct list_head in_upcall
;
27 struct list_head in_downcall
;
31 int nkern_readwriters
;
32 wait_queue_head_t waitq
;
33 #define RPC_PIPE_WAIT_FOR_OPEN 1
35 struct delayed_work queue_timeout
;
36 const struct rpc_pipe_ops
*ops
;
39 static inline struct rpc_inode
*
40 RPC_I(struct inode
*inode
)
42 return container_of(inode
, struct rpc_inode
, vfs_inode
);
45 extern int rpc_queue_upcall(struct inode
*, struct rpc_pipe_msg
*);
48 extern struct dentry
*rpc_create_client_dir(struct dentry
*, struct qstr
*, struct rpc_clnt
*);
49 extern int rpc_remove_client_dir(struct dentry
*);
52 extern struct dentry
*rpc_create_cache_dir(struct dentry
*,
55 struct cache_detail
*);
56 extern void rpc_remove_cache_dir(struct dentry
*);
58 extern struct dentry
*rpc_mkpipe(struct dentry
*, const char *, void *,
59 const struct rpc_pipe_ops
*, int flags
);
60 extern int rpc_unlink(struct dentry
*);
61 extern struct vfsmount
*rpc_get_mount(void);
62 extern void rpc_put_mount(void);
63 extern int register_rpc_pipefs(void);
64 extern void unregister_rpc_pipefs(void);