blob: 5bf5500db83de4bfec412a2dd47bad2742c8737a [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
David Howells642fb4d2006-01-06 00:11:41 -08009#ifndef CONFIG_MMU
Nick Piggin4b19de62008-10-02 14:50:16 -070010extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
David Howells642fb4d2006-01-06 00:11:41 -080011extern unsigned long ramfs_nommu_get_unmapped_area(struct file *file,
12 unsigned long addr,
13 unsigned long len,
14 unsigned long pgoff,
15 unsigned long flags);
16
17extern int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma);
18#endif
19
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080020extern const struct file_operations ramfs_file_operations;
Alexey Dobriyanf0f37e22009-09-27 22:29:37 +040021extern const struct vm_operations_struct generic_file_vm_ops;
David Howells07f3f052006-09-30 20:52:18 +020022extern int __init init_rootfs(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Peter Korsgaardda5e4ef2010-03-16 21:55:21 +010024int ramfs_fill_super(struct super_block *sb, void *data, int silent);
25
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#endif