Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mman.h
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | |||||
#define _SIZE_T_DECLARED | #define _SIZE_T_DECLARED | ||||
#endif | #endif | ||||
#if defined(_KERNEL) || defined(_WANT_FILE) | #if defined(_KERNEL) || defined(_WANT_FILE) | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/rangelock.h> | #include <sys/rangelock.h> | ||||
#include <sys/sx.h> | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
struct file; | struct file; | ||||
struct shmfd { | struct shmfd { | ||||
size_t shm_size; | size_t shm_size; | ||||
vm_object_t shm_object; | vm_object_t shm_object; | ||||
int shm_refs; | int shm_refs; | ||||
Show All 12 Lines | struct shmfd { | ||||
struct timespec shm_birthtime; | struct timespec shm_birthtime; | ||||
ino_t shm_ino; | ino_t shm_ino; | ||||
struct label *shm_label; /* MAC label */ | struct label *shm_label; /* MAC label */ | ||||
const char *shm_path; | const char *shm_path; | ||||
struct rangelock shm_rl; | struct rangelock shm_rl; | ||||
struct mtx shm_mtx; | struct mtx shm_mtx; | ||||
int shm_seals; | |||||
struct sx shm_seal_sx; | |||||
}; | }; | ||||
#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); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |