diff options
Diffstat (limited to 'include/fs.h')
-rw-r--r-- | include/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index 04ec1329e1..5811199c01 100644 --- a/include/fs.h +++ b/include/fs.h @@ -61,6 +61,8 @@ struct fs_driver_d { loff_t offset); int (*protect)(struct device_d *dev, FILE *f, size_t count, loff_t offset, int prot); + int (*discard_range)(struct device_d *dev, FILE *f, loff_t count, + loff_t offset); int (*memmap)(struct device_d *dev, FILE *f, void **map, int flags); @@ -128,6 +130,7 @@ int umount_by_cdev(struct cdev *cdev); #define ERASE_SIZE_ALL ((loff_t) - 1) int erase(int fd, loff_t count, loff_t offset); int protect(int fd, size_t count, loff_t offset, int prot); +int discard_range(int fd, loff_t count, loff_t offset); int protect_file(const char *file, int prot); void *memmap(int fd, int flags); |