aboutsummaryrefslogtreecommitdiff
path: root/driver/fopdrv.h
blob: f2ca18c14eb6f55d1e588430bab09046768579be (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <linux/fs.h>
#include <linux/types.h>

// declarations copied from linux/fs.h
ssize_t fop_read(struct file *, char __user *, size_t, loff_t *);
ssize_t fop_write(struct file *, const char __user *, size_t, loff_t *);
int fop_open(struct inode *, struct file *);
int fop_release(struct inode *, struct file *);