Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/cuse/cuse_ioctl.h
Show All 29 Lines | |||||
#include <sys/ioccom.h> | #include <sys/ioccom.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#define CUSE_BUFFER_MAX PAGE_SIZE | #define CUSE_BUFFER_MAX PAGE_SIZE | ||||
#define CUSE_DEVICES_MAX 64 /* units */ | #define CUSE_DEVICES_MAX 64 /* units */ | ||||
#define CUSE_BUF_MIN_PTR 0x10000UL | #define CUSE_BUF_MIN_PTR 0x10000UL | ||||
#define CUSE_BUF_MAX_PTR 0x20000UL | #define CUSE_BUF_MAX_PTR 0x20000UL | ||||
#define CUSE_ALLOC_UNIT_MAX 128 /* units */ | #define CUSE_ALLOC_UNIT_MAX 128 /* units */ | ||||
/* All memory allocations must be less than the following limit */ | |||||
#define CUSE_ALLOC_PAGES_MAX (((16UL * 1024UL * 1024UL) + PAGE_SIZE - 1) / PAGE_SIZE) | #define CUSE_ALLOC_PAGES_MAX (((16UL * 1024UL * 1024UL) + PAGE_SIZE - 1) / PAGE_SIZE) | ||||
struct cuse_dev; | struct cuse_dev; | ||||
struct cuse_data_chunk { | struct cuse_data_chunk { | ||||
uintptr_t local_ptr; | uintptr_t local_ptr; | ||||
uintptr_t peer_ptr; | uintptr_t peer_ptr; | ||||
unsigned long length; | unsigned long length; | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |