mmap: check if mapping a character device is actually possible

This commit is contained in:
Matheus
2024-09-03 18:41:26 -03:00
parent af92e8eb87
commit e75aab367d
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -171,6 +171,8 @@ typedef struct vops_t {
#define VOP_LOCK(v) (v)->ops->lock(v)
#define VOP_UNLOCK(v) (v)->ops->unlock(v)
#define VOP_MMAP_ADDRESS_MMAP_SUPPORTED (void *)-1
#define VOP_OPEN(v, f, c) (*v)->ops->open(v, f, c)
#define VOP_CLOSE(v, f, c) (v)->ops->close(v, f, c)
#define VOP_READ(v, b, s, o, f, r, c) (v)->ops->read(v, b, s, o, f, r, c)