Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/virstor/g_virstor.h
Show All 35 Lines | |||||
#define VIRSTOR_MAP_ALLOCATED 1 | #define VIRSTOR_MAP_ALLOCATED 1 | ||||
struct virstor_map_entry { | struct virstor_map_entry { | ||||
uint16_t flags; | uint16_t flags; | ||||
uint16_t provider_no; | uint16_t provider_no; | ||||
uint32_t provider_chunk; | uint32_t provider_chunk; | ||||
}; | }; | ||||
#define VIRSTOR_MAP_ENTRY_SIZE (sizeof(struct virstor_map_entry)) | #define VIRSTOR_MAP_ENTRY_SIZE (sizeof(struct virstor_map_entry)) | ||||
#define VIRSTOR_MAP_BLOCK_ENTRIES (MAXPHYS / VIRSTOR_MAP_ENTRY_SIZE) | #define VIRSTOR_MAP_BLOCK_ENTRIES (maxphys / VIRSTOR_MAP_ENTRY_SIZE) | ||||
/* Struct size is guarded by CTASSERT in main source */ | /* Struct size is guarded by MPASS in main source */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define LOG_MSG(lvl, ...) \ | #define LOG_MSG(lvl, ...) \ | ||||
_GEOM_DEBUG("GEOM_VIRSTOR", g_virstor_debug, (lvl), NULL, __VA_ARGS__) | _GEOM_DEBUG("GEOM_VIRSTOR", g_virstor_debug, (lvl), NULL, __VA_ARGS__) | ||||
#define LOG_MESSAGE LOG_MSG | #define LOG_MESSAGE LOG_MSG | ||||
#define LOG_REQ(lvl, bp, ...) \ | #define LOG_REQ(lvl, bp, ...) \ | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |