Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
05f75fd3
Commit
05f75fd3
authored
May 04, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include <linux/types.h> and use __uXX types in <linux/cramfs_fs.h>
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
cb8c1fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
include/linux/cramfs_fs.h
include/linux/cramfs_fs.h
+14
-20
No files found.
include/linux/cramfs_fs.h
View file @
05f75fd3
#ifndef __CRAMFS_H
#define __CRAMFS_H
#ifndef __KERNEL__
typedef
unsigned
char
u8
;
typedef
unsigned
short
u16
;
typedef
unsigned
int
u32
;
#endif
#include <linux/types.h>
#define CRAMFS_MAGIC 0x28cd3d45
/* some random number */
#define CRAMFS_SIGNATURE "Compressed ROMFS"
...
...
@@ -33,9 +27,9 @@ typedef unsigned int u32;
* Reasonably terse representation of the inode data.
*/
struct
cramfs_inode
{
u32
mode
:
CRAMFS_MODE_WIDTH
,
uid
:
CRAMFS_UID_WIDTH
;
__
u32
mode
:
CRAMFS_MODE_WIDTH
,
uid
:
CRAMFS_UID_WIDTH
;
/* SIZE for device files is i_rdev */
u32
size
:
CRAMFS_SIZE_WIDTH
,
gid
:
CRAMFS_GID_WIDTH
;
__
u32
size
:
CRAMFS_SIZE_WIDTH
,
gid
:
CRAMFS_GID_WIDTH
;
/* NAMELEN is the length of the file name, divided by 4 and
rounded up. (cramfs doesn't support hard links.) */
/* OFFSET: For symlinks and non-empty regular files, this
...
...
@@ -44,27 +38,27 @@ struct cramfs_inode {
see README). For non-empty directories it is the offset
(divided by 4) of the inode of the first file in that
directory. For anything else, offset is zero. */
u32
namelen
:
CRAMFS_NAMELEN_WIDTH
,
offset
:
CRAMFS_OFFSET_WIDTH
;
__
u32
namelen
:
CRAMFS_NAMELEN_WIDTH
,
offset
:
CRAMFS_OFFSET_WIDTH
;
};
struct
cramfs_info
{
u32
crc
;
u32
edition
;
u32
blocks
;
u32
files
;
__
u32
crc
;
__
u32
edition
;
__
u32
blocks
;
__
u32
files
;
};
/*
* Superblock information at the beginning of the FS.
*/
struct
cramfs_super
{
u32
magic
;
/* 0x28cd3d45 - random number */
u32
size
;
/* length in bytes */
u32
flags
;
/* feature flags */
u32
future
;
/* reserved for future use */
u8
signature
[
16
];
/* "Compressed ROMFS" */
__
u32
magic
;
/* 0x28cd3d45 - random number */
__
u32
size
;
/* length in bytes */
__
u32
flags
;
/* feature flags */
__
u32
future
;
/* reserved for future use */
__
u8
signature
[
16
];
/* "Compressed ROMFS" */
struct
cramfs_info
fsid
;
/* unique filesystem info */
u8
name
[
16
];
/* user-defined name */
__
u8
name
[
16
];
/* user-defined name */
struct
cramfs_inode
root
;
/* root inode data */
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment