Nishad Kamdar | 1f9b0f3 | 2020-04-25 18:57:58 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Trond Myklebust | 996bc4f | 2019-01-24 16:10:46 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2019 Hammerspace Inc |
| 4 | */ |
| 5 | |
| 6 | #ifndef __NFS_SYSFS_H |
| 7 | #define __NFS_SYSFS_H |
| 8 | |
Trond Myklebust | bf11fbd | 2019-01-29 21:40:10 -0500 | [diff] [blame] | 9 | #define CONTAINER_ID_MAXLEN (64) |
| 10 | |
| 11 | struct nfs_netns_client { |
| 12 | struct kobject kobject; |
| 13 | struct net *net; |
| 14 | const char *identifier; |
| 15 | }; |
Trond Myklebust | 996bc4f | 2019-01-24 16:10:46 -0500 | [diff] [blame] | 16 | |
| 17 | extern struct kobject *nfs_client_kobj; |
| 18 | |
| 19 | extern int nfs_sysfs_init(void); |
| 20 | extern void nfs_sysfs_exit(void); |
| 21 | |
Trond Myklebust | bf11fbd | 2019-01-29 21:40:10 -0500 | [diff] [blame] | 22 | void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net); |
| 23 | void nfs_netns_sysfs_destroy(struct nfs_net *netns); |
| 24 | |
Trond Myklebust | 996bc4f | 2019-01-24 16:10:46 -0500 | [diff] [blame] | 25 | #endif |