#ifdef pr_fmt
#undef pr_fmt
#endif
#define pr_fmt(fmt) …
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/spinlock.h>
struct configfs_fragment { … };
void put_fragment(struct configfs_fragment *);
struct configfs_fragment *get_fragment(struct configfs_fragment *);
struct configfs_dirent { … };
#define CONFIGFS_ROOT …
#define CONFIGFS_DIR …
#define CONFIGFS_ITEM_ATTR …
#define CONFIGFS_ITEM_BIN_ATTR …
#define CONFIGFS_ITEM_LINK …
#define CONFIGFS_USET_DIR …
#define CONFIGFS_USET_DEFAULT …
#define CONFIGFS_USET_DROPPING …
#define CONFIGFS_USET_IN_MKDIR …
#define CONFIGFS_USET_CREATING …
#define CONFIGFS_NOT_PINNED …
extern struct mutex configfs_symlink_mutex;
extern spinlock_t configfs_dirent_lock;
extern struct kmem_cache *configfs_dir_cachep;
extern int configfs_is_root(struct config_item *item);
extern struct inode * configfs_new_inode(umode_t mode, struct configfs_dirent *, struct super_block *);
extern struct inode *configfs_create(struct dentry *, umode_t mode);
extern int configfs_create_file(struct config_item *, const struct configfs_attribute *);
extern int configfs_create_bin_file(struct config_item *,
const struct configfs_bin_attribute *);
extern int configfs_make_dirent(struct configfs_dirent *, struct dentry *,
void *, umode_t, int, struct configfs_fragment *);
extern int configfs_dirent_is_ready(struct configfs_dirent *);
extern void configfs_hash_and_remove(struct dentry * dir, const char * name);
extern const unsigned char * configfs_get_name(struct configfs_dirent *sd);
extern void configfs_drop_dentry(struct configfs_dirent *sd, struct dentry *parent);
extern int configfs_setattr(struct mnt_idmap *idmap,
struct dentry *dentry, struct iattr *iattr);
extern struct dentry *configfs_pin_fs(void);
extern void configfs_release_fs(void);
extern const struct file_operations configfs_dir_operations;
extern const struct file_operations configfs_file_operations;
extern const struct file_operations configfs_bin_file_operations;
extern const struct inode_operations configfs_dir_inode_operations;
extern const struct inode_operations configfs_root_inode_operations;
extern const struct inode_operations configfs_symlink_inode_operations;
extern const struct dentry_operations configfs_dentry_ops;
extern int configfs_symlink(struct mnt_idmap *idmap,
struct inode *dir, struct dentry *dentry,
const char *symname);
extern int configfs_unlink(struct inode *dir, struct dentry *dentry);
int configfs_create_link(struct configfs_dirent *target, struct dentry *parent,
struct dentry *dentry, char *body);
static inline struct config_item * to_item(struct dentry * dentry)
{ … }
static inline struct configfs_attribute * to_attr(struct dentry * dentry)
{ … }
static inline struct configfs_bin_attribute *to_bin_attr(struct dentry *dentry)
{ … }
static inline struct config_item *configfs_get_config_item(struct dentry *dentry)
{ … }
static inline void release_configfs_dirent(struct configfs_dirent * sd)
{ … }
static inline struct configfs_dirent * configfs_get(struct configfs_dirent * sd)
{ … }
static inline void configfs_put(struct configfs_dirent * sd)
{ … }