-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.h,v
204 lines (167 loc) · 2.53 KB
/
header.h,v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
head 1.10;
access;
symbols;
locks
root:1.10; strict;
comment @ * @;
1.10
date 2014.06.30.17.51.39; author root; state Exp;
branches;
next 1.9;
1.9
date 2014.06.30.17.23.35; author root; state Exp;
branches;
next 1.8;
1.8
date 2014.06.30.08.26.42; author root; state Exp;
branches;
next 1.7;
1.7
date 2014.06.30.06.22.11; author root; state Exp;
branches;
next 1.6;
1.6
date 2014.06.29.09.18.27; author root; state Exp;
branches;
next 1.5;
1.5
date 2014.05.22.18.00.57; author root; state Exp;
branches;
next 1.4;
1.4
date 2014.05.22.17.11.35; author root; state Exp;
branches;
next 1.3;
1.3
date 2014.05.21.22.09.48; author root; state Exp;
branches;
next 1.2;
1.2
date 2014.05.18.22.48.57; author root; state Exp;
branches;
next 1.1;
1.1
date 2014.05.12.11.03.20; author root; state Exp;
branches;
next ;
desc
@@@gave various header files.
@
1.10
log
@entered declaration for scull_read function.
@
text
@#include<linux/init.h>
#include<asm-generic/uaccess.h>
#include<linux/decompress/mm.h>
#include<linux/module.h>
#include<linux/kernel.h>
#include<linux/moduleparam.h>
#include<linux/kernel.h>
#include<linux/fs.h>
#include<linux/cdev.h>
#include<linux/slab.h>
#include<linux/string.h>
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Module for Character Driver");
MODULE_AUTHOR("GURPARTAP_SINGH");
struct sculldev
{
struct cdev c_dev;
struct scullqset *scullqset;
int quantum_size;
int qsetsize;
int device_size;
int data_size;
};
struct scullqset
{
struct scullqset *next;
int **data;
};
int scull_open(struct inode *,struct file *);
ssize_t scull_write(struct file *,const char __user *,size_t,loff_t *);
ssize_t scull_read(struct file *, char __user *,size_t,loff_t *);
int scull_release(struct inode *,struct file *);
@
1.9
log
@*** empty log message ***
@
text
@d31 1
@
1.8
log
@*** empty log message ***
@
text
@a30 1
ssize_t scull_read(struct file *, char __user *,size_t,loff_t *);
d32 1
a32 1
int scull_trim(struct sculldev *);
@
1.7
log
@*** empty log message ***
@
text
@d31 1
@
1.6
log
@*** empty log message ***
@
text
@d32 1
a32 1
@
1.5
log
@change void **data to int **data.
/
@
text
@d33 1
@
1.4
log
@entered declarattions of quantum_size,qsetsize.
scullqset declarations.
@
text
@d27 1
a27 1
void **data;
@
1.3
log
@declared structure scullqset and its variables.
@
text
@d18 1
d23 5
@
1.2
log
@included declaration of structure sculldev from declarations.h
gave prototypes of various functions.
@
text
@d18 4
@
1.1
log
@Initial revision
@
text
@d2 2
d11 1
d13 1
a13 1
MODULE_DESCRIPTION("Module for Character Driver\n");
d15 7
a21 1
@