#include <linux/pagemap.h>
#include <linux/backing-dev.h>
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/xattr.h>
#include <linux/security.h>
#include "kernfs-internal.h"
static const struct inode_operations kernfs_iops = …;
static struct kernfs_iattrs *__kernfs_iattrs(struct kernfs_node *kn, int alloc)
{ … }
static struct kernfs_iattrs *kernfs_iattrs(struct kernfs_node *kn)
{ … }
static struct kernfs_iattrs *kernfs_iattrs_noalloc(struct kernfs_node *kn)
{ … }
int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr)
{ … }
int kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr)
{ … }
int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
struct iattr *iattr)
{ … }
ssize_t kernfs_iop_listxattr(struct dentry *dentry, char *buf, size_t size)
{ … }
static inline void set_default_inode_attr(struct inode *inode, umode_t mode)
{ … }
static inline void set_inode_attr(struct inode *inode,
struct kernfs_iattrs *attrs)
{ … }
static void kernfs_refresh_inode(struct kernfs_node *kn, struct inode *inode)
{ … }
int kernfs_iop_getattr(struct mnt_idmap *idmap,
const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int query_flags)
{ … }
static void kernfs_init_inode(struct kernfs_node *kn, struct inode *inode)
{ … }
struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn)
{ … }
void kernfs_evict_inode(struct inode *inode)
{ … }
int kernfs_iop_permission(struct mnt_idmap *idmap,
struct inode *inode, int mask)
{ … }
int kernfs_xattr_get(struct kernfs_node *kn, const char *name,
void *value, size_t size)
{ … }
int kernfs_xattr_set(struct kernfs_node *kn, const char *name,
const void *value, size_t size, int flags)
{ … }
static int kernfs_vfs_xattr_get(const struct xattr_handler *handler,
struct dentry *unused, struct inode *inode,
const char *suffix, void *value, size_t size)
{ … }
static int kernfs_vfs_xattr_set(const struct xattr_handler *handler,
struct mnt_idmap *idmap,
struct dentry *unused, struct inode *inode,
const char *suffix, const void *value,
size_t size, int flags)
{ … }
static int kernfs_vfs_user_xattr_add(struct kernfs_node *kn,
const char *full_name,
struct simple_xattrs *xattrs,
const void *value, size_t size, int flags)
{ … }
static int kernfs_vfs_user_xattr_rm(struct kernfs_node *kn,
const char *full_name,
struct simple_xattrs *xattrs,
const void *value, size_t size, int flags)
{ … }
static int kernfs_vfs_user_xattr_set(const struct xattr_handler *handler,
struct mnt_idmap *idmap,
struct dentry *unused, struct inode *inode,
const char *suffix, const void *value,
size_t size, int flags)
{ … }
static const struct xattr_handler kernfs_trusted_xattr_handler = …;
static const struct xattr_handler kernfs_security_xattr_handler = …;
static const struct xattr_handler kernfs_user_xattr_handler = …;
const struct xattr_handler * const kernfs_xattr_handlers[] = …;