#include <linux/lockdep.h>
#include <linux/kobject_ns.h>
#include <linux/fs.h>
#include <linux/rbtree.h>
Go to the source code of this file.
|
struct dentry * | sysfs_get_dentry (struct sysfs_dirent *sd) |
|
struct sysfs_dirent * | sysfs_get_active (struct sysfs_dirent *sd) |
|
void | sysfs_put_active (struct sysfs_dirent *sd) |
|
void | sysfs_addrm_start (struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *parent_sd) |
|
int | __sysfs_add_one (struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) |
|
int | sysfs_add_one (struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) |
|
void | sysfs_remove_one (struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) |
|
void | sysfs_addrm_finish (struct sysfs_addrm_cxt *acxt) |
|
struct sysfs_dirent * | sysfs_find_dirent (struct sysfs_dirent *parent_sd, const void *ns, const unsigned char *name) |
|
struct sysfs_dirent * | sysfs_get_dirent (struct sysfs_dirent *parent_sd, const void *ns, const unsigned char *name) |
|
struct sysfs_dirent * | sysfs_new_dirent (const char *name, umode_t mode, int type) |
|
void | release_sysfs_dirent (struct sysfs_dirent *sd) |
|
int | sysfs_create_subdir (struct kobject *kobj, const char *name, struct sysfs_dirent **p_sd) |
|
void | sysfs_remove_subdir (struct sysfs_dirent *sd) |
|
int | sysfs_rename (struct sysfs_dirent *sd, struct sysfs_dirent *new_parent_sd, const void *ns, const char *new_name) |
|
struct inode * | sysfs_get_inode (struct super_block *sb, struct sysfs_dirent *sd) |
|
void | sysfs_evict_inode (struct inode *inode) |
|
int | sysfs_sd_setattr (struct sysfs_dirent *sd, struct iattr *iattr) |
|
int | sysfs_permission (struct inode *inode, int mask) |
|
int | sysfs_setattr (struct dentry *dentry, struct iattr *iattr) |
|
int | sysfs_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) |
|
int | sysfs_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags) |
|
int | sysfs_hash_and_remove (struct sysfs_dirent *dir_sd, const void *ns, const char *name) |
|
int | sysfs_inode_init (void) |
|
int | sysfs_add_file (struct sysfs_dirent *dir_sd, const struct attribute *attr, int type) |
|
int | sysfs_add_file_mode (struct sysfs_dirent *dir_sd, const struct attribute *attr, int type, umode_t amode) |
|
void | unmap_bin_file (struct sysfs_dirent *attr_sd) |
|
#define SD_DEACTIVATED_BIAS INT_MIN |
#define sysfs_dirent_init_lockdep |
( |
|
sd | ) |
do {} while(0) |
#define SYSFS_FLAG_REMOVED 0x02000 |
#define sysfs_get |
( |
|
sd | ) |
__sysfs_get(sd) |
#define SYSFS_KOBJ_ATTR 0x0002 |
#define SYSFS_KOBJ_BIN_ATTR 0x0004 |
#define SYSFS_KOBJ_LINK 0x0008 |
#define SYSFS_NS_TYPE_MASK 0xf00 |
#define SYSFS_NS_TYPE_SHIFT 8 |
#define sysfs_put |
( |
|
sd | ) |
__sysfs_put(sd) |
#define SYSFS_TYPE_MASK 0x00ff |
sysfs_addrm_finish - finish up sysfs_dirent add/remove : addrm context to finish up
Finish up sysfs_dirent add/remove. Resources acquired by sysfs_addrm_start() are released and removed sysfs_dirents are cleaned up.
LOCKING: sysfs_mutex is released.
Definition at line 589 of file dir.c.
sysfs_addrm_start - prepare for sysfs_dirent add/remove : pointer to sysfs_addrm_cxt to be used : parent sysfs_dirent
This function is called when the caller is about to add or remove sysfs_dirent under . This function acquires sysfs_mutex. is used to keep and pass context to other addrm functions.
LOCKING: Kernel thread context (may sleep). sysfs_mutex is locked on return.
Definition at line 427 of file dir.c.
sysfs_get_active - get an active reference to sysfs_dirent : sysfs_dirent to get an active reference to
Get an active reference of . This function is noop if is NULL.
RETURNS: Pointer to on success, NULL on failure.
Definition at line 163 of file dir.c.
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.
sysfs_put_active - put an active reference to sysfs_dirent : sysfs_dirent to put an active reference to
Put an active reference to . This function is noop if is NULL.
Definition at line 196 of file dir.c.