diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-13 15:27:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:09:08 -0400 |
commit | f0b0af4792d751106e2003f96af76fa95e10c68d (patch) | |
tree | 09483c5b34009cc815897d885f310d0704d0c396 /fs/sysfs/sysfs.h | |
parent | 380e6fbb729a55b73d5d8409551474884e0d93fc (diff) |
sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
Implement sysfs_find_dirent() and sysfs_get_dirent().
sysfs_dirent_exist() is replaced by sysfs_find_dirent(). These will
be used to make directory entries reclamiable.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 06b5085804a1..f1629b4520aa 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -59,7 +59,10 @@ extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd); | |||
59 | extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); | 59 | extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); |
60 | 60 | ||
61 | extern void release_sysfs_dirent(struct sysfs_dirent * sd); | 61 | extern void release_sysfs_dirent(struct sysfs_dirent * sd); |
62 | extern int sysfs_dirent_exist(struct sysfs_dirent *, const unsigned char *); | 62 | extern struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd, |
63 | const unsigned char *name); | ||
64 | extern struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, | ||
65 | const unsigned char *name); | ||
63 | extern struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, | 66 | extern struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, |
64 | int type); | 67 | int type); |
65 | extern void sysfs_attach_dirent(struct sysfs_dirent *sd, | 68 | extern void sysfs_attach_dirent(struct sysfs_dirent *sd, |