Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mman.h
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
#endif | #endif | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
int shm_map(struct file *fp, size_t size, off_t offset, void **memp); | int shm_map(struct file *fp, size_t size, off_t offset, void **memp); | ||||
int shm_unmap(struct file *fp, void *mem, size_t size); | int shm_unmap(struct file *fp, void *mem, size_t size); | ||||
int shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags); | int shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags); | ||||
struct shmfd *shm_alloc(struct ucred *ucred, mode_t mode, bool largepage); | struct shmfd *shm_alloc(struct thread *td, mode_t mode, bool largepage); | ||||
struct shmfd *shm_hold(struct shmfd *shmfd); | struct shmfd *shm_hold(struct shmfd *shmfd); | ||||
void shm_drop(struct shmfd *shmfd); | void shm_drop(struct shmfd *shmfd); | ||||
int shm_dotruncate(struct shmfd *shmfd, off_t length); | int shm_dotruncate(struct thread *td, struct shmfd *shmfd, off_t length); | ||||
bool shm_largepage(struct shmfd *shmfd); | bool shm_largepage(struct shmfd *shmfd); | ||||
extern struct fileops shm_ops; | extern struct fileops shm_ops; | ||||
#define MAP_32BIT_MAX_ADDR ((vm_offset_t)1 << 31) | #define MAP_32BIT_MAX_ADDR ((vm_offset_t)1 << 31) | ||||
#else /* !_KERNEL */ | #else /* !_KERNEL */ | ||||
Show All 39 Lines |