devobj: allow read only device file mappings (OFED 3.3 support)

This commit is contained in:
Balazs Gerofi
2016-06-21 06:57:47 +09:00
parent d90900b6e6
commit a83ad620c8
4 changed files with 11 additions and 6 deletions

View File

@@ -141,6 +141,7 @@ int fileobj_create(int fd, struct memobj **objp, int *maxprotp);
struct shmid_ds;
int shmobj_create(struct shmid_ds *ds, struct memobj **objp);
int zeroobj_create(struct memobj **objp);
int devobj_create(int fd, size_t len, off_t off, struct memobj **objp, int *maxprotp);
int devobj_create(int fd, size_t len, off_t off, struct memobj **objp, int *maxprotp,
int prot);
#endif /* HEADER_MEMOBJ_H */