blob: ebcbdc40483b4c2582e07cf0ab25d18e492afb96 [file] [log] [blame]
Nishad Kamdar1f9b0f32020-04-25 18:57:58 +05301/* SPDX-License-Identifier: GPL-2.0 */
Trond Myklebust996bc4f2019-01-24 16:10:46 -05002/*
3 * Copyright (c) 2019 Hammerspace Inc
4 */
5
6#ifndef __NFS_SYSFS_H
7#define __NFS_SYSFS_H
8
Trond Myklebustbf11fbd2019-01-29 21:40:10 -05009#define CONTAINER_ID_MAXLEN (64)
10
11struct nfs_netns_client {
12 struct kobject kobject;
13 struct net *net;
14 const char *identifier;
15};
Trond Myklebust996bc4f2019-01-24 16:10:46 -050016
17extern struct kobject *nfs_client_kobj;
18
19extern int nfs_sysfs_init(void);
20extern void nfs_sysfs_exit(void);
21
Trond Myklebustbf11fbd2019-01-29 21:40:10 -050022void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net);
23void nfs_netns_sysfs_destroy(struct nfs_net *netns);
24
Trond Myklebust996bc4f2019-01-24 16:10:46 -050025#endif