Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
inode.c File Reference
#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 inodesysfs_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_blocksysfs_sb
 

Function Documentation

void sysfs_evict_inode ( struct inode inode)

Definition at line 308 of file inode.c.

struct inode* sysfs_get_inode ( struct super_block sb,
struct sysfs_dirent sd 
)
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.

Definition at line 290 of file inode.c.

int sysfs_getattr ( struct vfsmount mnt,
struct dentry dentry,
struct kstat stat 
)

Definition at line 225 of file inode.c.

int sysfs_hash_and_remove ( struct sysfs_dirent dir_sd,
const void ns,
const char name 
)

Definition at line 317 of file inode.c.

int __init sysfs_inode_init ( void  )

Definition at line 48 of file inode.c.

int sysfs_permission ( struct inode inode,
int  mask 
)

Definition at line 342 of file inode.c.

int sysfs_sd_setattr ( struct sysfs_dirent sd,
struct iattr iattr 
)

Definition at line 72 of file inode.c.

int sysfs_setattr ( struct dentry dentry,
struct iattr iattr 
)

Definition at line 107 of file inode.c.

int sysfs_setxattr ( struct dentry dentry,
const char name,
const void value,
size_t  size,
int  flags 
)

Definition at line 157 of file inode.c.

Variable Documentation

struct super_block* sysfs_sb