cprover
Loading...
Searching...
No Matches
kdev_t.h
Go to the documentation of this file.
1#ifndef __KDEV_T_H__
2#define __KDEV_T_H__
3
4#define MINORBITS 8
5
6typedef unsigned short kdev_t;
7
8#define MAJOR(dev) ((dev) >> MINORBITS)
9#define MINOR(dev) ((dev) % 256)
10#define NODEV 0
11
12typedef unsigned int mode_t;
13typedef unsigned int loff_t;
14
15struct inode {
17};
18
19struct file {
22};
23
24struct data {
25 int size;
26 char *content;
27};
28
29#endif
unsigned short kdev_t
Definition: kdev_t.h:6
unsigned int loff_t
Definition: kdev_t.h:13
unsigned int mode_t
Definition: kdev_t.h:12
Definition: kdev_t.h:24
char * content
Definition: kdev_t.h:26
int size
Definition: kdev_t.h:25
Definition: kdev_t.h:19
loff_t f_pos
Definition: kdev_t.h:21
mode_t f_mode
Definition: kdev_t.h:20
Definition: kdev_t.h:15
kdev_t i_rdev
Definition: kdev_t.h:16