dmaengine: sirf: add PM entries for sleep and runtime
[linux-2.6.git] / fs / nfs / dns_resolve.h
blob2e4f596d2923d5876b685fb9fb8bdc0ed13c2de6
1 /*
2 * Resolve DNS hostnames into valid ip addresses
3 */
4 #ifndef __LINUX_FS_NFS_DNS_RESOLVE_H
5 #define __LINUX_FS_NFS_DNS_RESOLVE_H
7 #define NFS_DNS_HOSTNAME_MAXLEN (128)
10 #ifdef CONFIG_NFS_USE_KERNEL_DNS
11 static inline int nfs_dns_resolver_init(void)
13 return 0;
16 static inline void nfs_dns_resolver_destroy(void)
19 static inline int nfs_dns_resolver_cache_init(struct net *net)
21 return 0;
24 static inline void nfs_dns_resolver_cache_destroy(struct net *net)
26 #else
27 extern int nfs_dns_resolver_init(void);
28 extern void nfs_dns_resolver_destroy(void);
29 extern int nfs_dns_resolver_cache_init(struct net *net);
30 extern void nfs_dns_resolver_cache_destroy(struct net *net);
31 #endif
33 extern ssize_t nfs_dns_resolve_name(struct net *net, char *name,
34 size_t namelen, struct sockaddr *sa, size_t salen);
36 #endif