2 * linux/fs/nfs/callback.h
4 * Copyright (C) 2004 Trond Myklebust
6 * NFSv4 callback definitions
8 #ifndef __LINUX_FS_NFS_CALLBACK_H
9 #define __LINUX_FS_NFS_CALLBACK_H
11 #define NFS4_CALLBACK 0x40000000
12 #define NFS4_CALLBACK_XDRSIZE 2048
13 #define NFS4_CALLBACK_BUFSIZE (1024 + NFS4_CALLBACK_XDRSIZE)
15 enum nfs4_callback_procnum {
20 enum nfs4_callback_opnum {
23 OP_CB_ILLEGAL = 10044,
26 struct cb_compound_hdr_arg {
29 unsigned int minorversion;
30 unsigned int callback_ident;
34 struct cb_compound_hdr_res {
41 struct cb_getattrargs {
42 struct sockaddr *addr;
47 struct cb_getattrres {
52 struct timespec ctime;
53 struct timespec mtime;
56 struct cb_recallargs {
57 struct sockaddr *addr;
63 extern __be32 nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res);
64 extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy);
67 extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt);
68 extern void nfs_callback_down(int minorversion);
69 #endif /* CONFIG_NFS_V4 */
72 * nfs41: Callbacks are expected to not cause substantial latency,
73 * so we limit their concurrency to 1 by setting up the maximum number
74 * of slots for the backchannel.
76 #define NFS41_BC_MIN_CALLBACKS 1
78 extern unsigned int nfs_callback_set_tcpport;
79 extern unsigned short nfs_callback_tcpport;
80 extern unsigned short nfs_callback_tcpport6;
82 #endif /* __LINUX_FS_NFS_CALLBACK_H */