diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2013-07-16 17:56:12 +0800 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2013-07-16 09:32:17 -0400 |
commit | 55708698c5f153f4e390175cdfc395333b2eafbd (patch) | |
tree | b1d915cae064e83af09b9e2001c25429e289ad6b /include/linux/anon_inodes.h | |
parent | 47188d39b5deeebf41f87a02af1b3935866364cf (diff) |
fs/anon_inode: Introduce a new lib function anon_inode_getfile_private()
Introduce a new lib function anon_inode_getfile_private(), it creates a new file
instance by hooking it up to an anonymous inode, and a dentry that describe the
"class" of the file, similar to anon_inode_getfile(), but each file holds a
single inode. Furthermore, anyone who wants to create a private anon file will
benefit from this change.
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'include/linux/anon_inodes.h')
-rw-r--r-- | include/linux/anon_inodes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/anon_inodes.h b/include/linux/anon_inodes.h index 8013a45242f..cf573c22b81 100644 --- a/include/linux/anon_inodes.h +++ b/include/linux/anon_inodes.h @@ -13,6 +13,9 @@ struct file_operations; struct file *anon_inode_getfile(const char *name, const struct file_operations *fops, void *priv, int flags); +struct file *anon_inode_getfile_private(const char *name, + const struct file_operations *fops, + void *priv, int flags); int anon_inode_getfd(const char *name, const struct file_operations *fops, void *priv, int flags); |