11f9b0f3aSNishad Kamdar /* SPDX-License-Identifier: GPL-2.0 */ 2996bc4f4STrond Myklebust /* 3996bc4f4STrond Myklebust * Copyright (c) 2019 Hammerspace Inc 4996bc4f4STrond Myklebust */ 5996bc4f4STrond Myklebust 6996bc4f4STrond Myklebust #ifndef __NFS_SYSFS_H 7996bc4f4STrond Myklebust #define __NFS_SYSFS_H 8996bc4f4STrond Myklebust 9bf11fbdbSTrond Myklebust #define CONTAINER_ID_MAXLEN (64) 10bf11fbdbSTrond Myklebust 11bf11fbdbSTrond Myklebust struct nfs_netns_client { 12bf11fbdbSTrond Myklebust struct kobject kobject; 13bf11fbdbSTrond Myklebust struct net *net; 14094eca37STrond Myklebust const char __rcu *identifier; 15bf11fbdbSTrond Myklebust }; 16996bc4f4STrond Myklebust 17*d5082aceSBenjamin Coddington extern struct kobject *nfs_net_kobj; 18996bc4f4STrond Myklebust 19996bc4f4STrond Myklebust extern int nfs_sysfs_init(void); 20996bc4f4STrond Myklebust extern void nfs_sysfs_exit(void); 21996bc4f4STrond Myklebust 22bf11fbdbSTrond Myklebust void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net); 23bf11fbdbSTrond Myklebust void nfs_netns_sysfs_destroy(struct nfs_net *netns); 24bf11fbdbSTrond Myklebust 25996bc4f4STrond Myklebust #endif 26