We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 422f387 + 0f9c726 commit 760df73Copy full SHA for 760df73
examples/sleep.c
@@ -169,13 +169,15 @@ static const struct proc_ops file_ops_4_our_proc_file = {
169
.proc_write = module_input, /* "write" to the file */
170
.proc_open = module_open, /* called when the /proc file is opened */
171
.proc_release = module_close, /* called when it's closed */
172
+ .proc_lseek = noop_llseek, /* return file->f_pos */
173
};
174
#else
175
static const struct file_operations file_ops_4_our_proc_file = {
176
.read = module_output,
177
.write = module_input,
178
.open = module_open,
179
.release = module_close,
180
+ .llseek = noop_llseek,
181
182
#endif
183
0 commit comments