blob: 69e37c2d1ea556fb990f5d1c8cebd9fee39f8ca7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_RAMFS_H
2#define _LINUX_RAMFS_H
3
Dmitry Monakhov454abaf2010-03-04 17:32:18 +03004struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
Al Viro632861f2011-07-26 03:16:55 -04005 umode_t mode, dev_t dev);
Al Viro3c26ff62010-07-25 11:46:36 +04006extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
7 int flags, const char *dev_name, void *data);
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Andrew Morton250297e2013-04-29 15:06:12 -07009#ifdef CONFIG_MMU
10static inline int
11ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
12{
13 return 0;
14}
15#else
Nick Piggin4b19de62008-10-02 14:50:16 -070016extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
David Howells642fb4d2006-01-06 00:11:41 -080017extern unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
18 unsigned long addr,
19 unsigned long len,
20 unsigned long pgoff,
21 unsigned long flags);
22
23extern int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
24#endif
25
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080026extern const struct file_operations ramfs_file_operations;
Alexey Dobriyanf0f37e22009-09-27 22:29:37 +040027extern const struct vm_operations_struct generic_file_vm_ops;
David Howells07f3f05c2006-09-30 20:52:18 +020028extern int __init init_rootfs(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Peter Korsgaardda5e4ef2010-03-16 21:55:21 +010030int ramfs_fill_super(struct super_block *sb, void *data, int silent);
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#endif