Linux Kernel
3.7.1
|
#include <linux/pagemap.h>
#include <linux/namei.h>
#include <linux/backing-dev.h>
#include <linux/capability.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/xattr.h>
#include <linux/security.h>
#include "sysfs.h"
Go to the source code of this file.
Functions | |
int __init | sysfs_inode_init (void) |
int | sysfs_sd_setattr (struct sysfs_dirent *sd, struct iattr *iattr) |
int | sysfs_setattr (struct dentry *dentry, struct iattr *iattr) |
int | sysfs_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags) |
int | sysfs_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) |
struct inode * | sysfs_get_inode (struct super_block *sb, struct sysfs_dirent *sd) |
void | sysfs_evict_inode (struct inode *inode) |
int | sysfs_hash_and_remove (struct sysfs_dirent *dir_sd, const void *ns, const char *name) |
int | sysfs_permission (struct inode *inode, int mask) |
Variables | |
struct super_block * | sysfs_sb |
|
read |
sysfs_get_inode - get inode for sysfs_dirent : super block : sysfs_dirent to allocate inode for
Get inode for . If such inode doesn't exist, a new inode is allocated and basics are initialized. New inode is returned locked.
LOCKING: Kernel thread context (may sleep).
RETURNS: Pointer to allocated inode on success, NULL on failure.
int sysfs_sd_setattr | ( | struct sysfs_dirent * | sd, |
struct iattr * | iattr | ||
) |
struct super_block* sysfs_sb |