add shmobj for shared anonymous mappings

This commit is contained in:
NAKAMURA Gou
2014-07-03 13:55:26 +09:00
parent 9057268f0e
commit 380fcbda73
5 changed files with 359 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
#include <ihk/lock.h>
#include <errno.h>
#include <list.h>
#include <shm.h>
enum {
/* for memobj.flags */
@@ -101,5 +102,6 @@ static inline int memobj_has_pager(struct memobj *obj)
}
int fileobj_create(int fd, struct memobj **objp, int *maxprotp);
int shmobj_create(struct shmid_ds *ds, struct memobj **objp);
#endif /* HEADER_MEMOBJ_H */