2020-04-25 21:27:58 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2019-01-25 05:10:46 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Hammerspace Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NFS_SYSFS_H
|
|
|
|
#define __NFS_SYSFS_H
|
|
|
|
|
2019-01-30 10:40:10 +08:00
|
|
|
#define CONTAINER_ID_MAXLEN (64)
|
|
|
|
|
|
|
|
struct nfs_netns_client {
|
|
|
|
struct kobject kobject;
|
|
|
|
struct net *net;
|
2020-10-15 03:22:11 +08:00
|
|
|
const char __rcu *identifier;
|
2019-01-30 10:40:10 +08:00
|
|
|
};
|
2019-01-25 05:10:46 +08:00
|
|
|
|
|
|
|
extern struct kobject *nfs_client_kobj;
|
|
|
|
|
|
|
|
extern int nfs_sysfs_init(void);
|
|
|
|
extern void nfs_sysfs_exit(void);
|
|
|
|
|
2019-01-30 10:40:10 +08:00
|
|
|
void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net);
|
|
|
|
void nfs_netns_sysfs_destroy(struct nfs_net *netns);
|
|
|
|
|
2019-01-25 05:10:46 +08:00
|
|
|
#endif
|