Root/
1 | /* RomFS internal definitions |
2 | * |
3 | * Copyright © 2007 Red Hat, Inc. All Rights Reserved. |
4 | * Written by David Howells (dhowells@redhat.com) |
5 | * |
6 | * This program is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU General Public License |
8 | * as published by the Free Software Foundation; either version |
9 | * 2 of the License, or (at your option) any later version. |
10 | */ |
11 | |
12 | #include <linux/romfs_fs.h> |
13 | |
14 | struct romfs_inode_info { |
15 | struct inode vfs_inode; |
16 | unsigned long i_metasize; /* size of non-data area */ |
17 | unsigned long i_dataoffset; /* from the start of fs */ |
18 | }; |
19 | |
20 | static inline size_t romfs_maxsize(struct super_block *sb) |
21 | { |
22 | return (size_t) (unsigned long) sb->s_fs_info; |
23 | } |
24 | |
25 | static inline struct romfs_inode_info *ROMFS_I(struct inode *inode) |
26 | { |
27 | return container_of(inode, struct romfs_inode_info, vfs_inode); |
28 | } |
29 | |
30 | /* |
31 | * mmap-nommu.c |
32 | */ |
33 | #if !defined(CONFIG_MMU) && defined(CONFIG_ROMFS_ON_MTD) |
34 | extern const struct file_operations romfs_ro_fops; |
35 | #else |
36 | #define romfs_ro_fops generic_ro_fops |
37 | #endif |
38 | |
39 | /* |
40 | * storage.c |
41 | */ |
42 | extern int romfs_dev_read(struct super_block *sb, unsigned long pos, |
43 | void *buf, size_t buflen); |
44 | extern ssize_t romfs_dev_strnlen(struct super_block *sb, |
45 | unsigned long pos, size_t maxlen); |
46 | extern int romfs_dev_strcmp(struct super_block *sb, unsigned long pos, |
47 | const char *str, size_t size); |
48 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9