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 void (*destroy_msg
)(struct rpc_pipe_msg
*);
22 struct inode vfs_inode
;
24 struct list_head pipe
;
25 struct list_head in_upcall
;
26 struct list_head in_downcall
;
30 wait_queue_head_t waitq
;
31 #define RPC_PIPE_WAIT_FOR_OPEN 1
33 struct rpc_pipe_ops
*ops
;
34 struct delayed_work queue_timeout
;
37 static inline struct rpc_inode
*
38 RPC_I(struct inode
*inode
)
40 return container_of(inode
, struct rpc_inode
, vfs_inode
);
43 extern int rpc_queue_upcall(struct inode
*, struct rpc_pipe_msg
*);
45 extern struct dentry
*rpc_mkdir(char *, struct rpc_clnt
*);
46 extern int rpc_rmdir(struct dentry
*);
47 extern struct dentry
*rpc_mkpipe(struct dentry
*, const char *, void *, struct rpc_pipe_ops
*, int flags
);
48 extern int rpc_unlink(struct dentry
*);
49 extern struct vfsmount
*rpc_get_mount(void);
50 extern void rpc_put_mount(void);
51 extern int register_rpc_pipefs(void);
52 extern void unregister_rpc_pipefs(void);