__read_mostly
pt_entry_t vtoptem __read_mostly = ((1ul << (NPTEPGSHIFT + NPDEPGSHIFT +
vm_offset_t PTmap __read_mostly = (vm_offset_t)P4Tmap;
pd_entry_t vtopdem __read_mostly = ((1ul << (NPDEPGSHIFT + NPDPEPGSHIFT +
vm_offset_t PDmap __read_mostly = (vm_offset_t)P4Dmap;
__read_mostly static struct pmap_large_md_page *pv_table;
__read_mostly vm_paddr_t pmap_last_pa;
} pt_info __read_mostly;
static bool __read_mostly enable_wfxt = false;
uintptr_t socdev_va __read_mostly;
pt_entry_t __read_mostly pmap_gp_attr;
static bool __read_mostly pmap_multiple_tlbi = false;
__read_mostly static struct pmap_large_md_page *pv_table;
bool pmap_lpa_enabled __read_mostly = false;
pt_entry_t pmap_sh_attr __read_mostly = ATTR_SH(ATTR_SH_IS);
static bool pmap_l1_supported __read_mostly = false;
__read_mostly static bool pmap_bti_support = false;
static uint64_t __read_mostly ttbr_flags;
static bool __read_mostly enable_ptrauth = false;
static u_int __read_mostly cam_num_doneqs;
uint32_t __read_mostly cam_dflags = CAM_DEBUG_FLAGS;
struct lkpi_hash_head name[1UL << (bits)] __read_mostly
static int edid_fixup __read_mostly = 6;
static bool arm64_64bit_events __read_mostly = false;
uint64_t __read_mostly fxrng_root_generation;
static struct fxrng_bits __read_mostly fxrng_seen;
static uint8_t __read_mostly fxrng_reseed_seen[ENTROPYSOURCE];
static unsigned __read_mostly fxent_nactpools = 1;
static int __read_mostly fxent_timer_ready;
extern uint64_t __read_mostly fxrng_root_generation;
static __read_mostly bool epoch_inited;
static __read_mostly epoch_t rs_epoch;
uma_zone_t __read_mostly null_node_zone;
static volatile u_int __read_mostly pace;
static uma_zone_t __read_mostly biozone;
struct thread __read_mostly *g_up_td;
struct thread __read_mostly *g_down_td;
static struct thread __read_mostly *g_event_td;
int __read_mostly g_debugflags;
int __read_mostly g_collectstats = G_STATS_PROVIDERS;
bool __read_mostly boottrace_enabled = false;
struct domainset __read_mostly domainset_firsttouch;
struct domainset __read_mostly domainset_fixed[MAXMEMDOM];
struct domainset __read_mostly domainset_interleave;
struct domainset __read_mostly domainset_prefer[MAXMEMDOM];
struct domainset __read_mostly domainset_roundrobin;
__read_mostly uma_zone_t pwd_zone;
static __read_mostly uma_zone_t file_zone;
static __read_mostly uma_zone_t filedesc0_zone;
static __read_mostly bool lk_adaptive = true;
dtrace_malloc_probe_func_t __read_mostly dtrace_malloc_probe;
u_long __read_mostly pagesizes[MAXPAGESIZES] = { PAGE_SIZE };
struct mtx_pool __read_mostly *mtxpool_sleep;
__read_mostly struct pmc_domain_buffer_header *pmc_dom_hdrs[MAXMEMDOM];
int __read_mostly (*pmc_hook)(struct thread *td, int function, void *arg) = NULL;
int __read_mostly (*pmc_intr)(struct trapframe *tf) = NULL;
void __read_mostly (*hwt_hook)(struct thread *td, int func, void *arg) = NULL;
int __read_mostly (*hwt_intr)(struct trapframe *tf) = NULL;
const char *panicstr __read_mostly;
int dumping __read_mostly; /* system is dumping */
int rebooting __read_mostly; /* system is rebooting */
bool dumped_core __read_mostly; /* system successfully dumped core */
static __read_mostly bool nanosleep_precise = true;
static u_int __read_mostly callwheelsize;
static u_int __read_mostly callwheelmask;
static int __read_mostly cc_default_cpu;
int __read_mostly dtrace_vtime_active;
struct cpu_group __read_mostly *cpu_top; /* CPU topology */
static u_int __read_mostly sched_interact = SCHED_INTERACT_THRESH;
static int __read_mostly tickincr = 8 << SCHED_TICK_SHIFT;
static int __read_mostly realstathz = 127; /* reset during boot. */
static int __read_mostly sched_slice = 10; /* reset during boot. */
static int __read_mostly sched_slice_min = 1; /* reset during boot. */
static int __read_mostly preempt_thresh = PRI_MAX_IDLE;
static int __read_mostly preempt_thresh = PRI_MIN_KERN;
static int __read_mostly preempt_thresh = 0;
static int __read_mostly static_boost = PRI_MIN_BATCH;
static int __read_mostly sched_idlespins = 10000;
static int __read_mostly sched_idlespinthresh = -1;
static int __read_mostly affinity;
static int __read_mostly steal_idle = 1;
static int __read_mostly steal_thresh = 2;
static int __read_mostly always_steal = 0;
static int __read_mostly trysteal_limit = 2;
static struct tdq __read_mostly *balance_tdq;
static bool kasan_disabled __read_mostly = true;
static bool kcsan_enabled __read_mostly;
static __read_mostly int inited;
__read_mostly epoch_t global_epoch;
__read_mostly epoch_t global_epoch_preempt;
volatile int __read_mostly lock_prof_enable;
int __read_mostly lock_contested_only;
static bool kmsan_disabled __read_mostly = true;
static struct ast_entry ast_entries[TDA_MAX] __read_mostly = {
caddr_t __read_mostly unmapped_buf;
static int __read_mostly buf_domains;
static u_int __read_mostly ncsize; /* the size as computed on creation or resizing */
static u_long __read_mostly ncnegfactor = 5; /* ratio of negative entries */
static u_int __read_mostly neg_min; /* the above recomputed against ncsize */
static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
static u_long __read_mostly nchash; /* size of hash table */
static u_int __read_mostly ncbuckethash;
static struct mtx_padalign __read_mostly *bucketlocks;
static u_int __read_mostly ncvnodehash;
static struct mtx __read_mostly *vnodelocks;
static int __read_mostly doingcache = 1; /* 1 => enable the cache */
static uma_zone_t __read_mostly cache_zone_small;
static uma_zone_t __read_mostly cache_zone_small_ts;
static uma_zone_t __read_mostly cache_zone_large;
static uma_zone_t __read_mostly cache_zone_large_ts;
static __read_mostly bool vnode_can_skip_requeue;
__read_mostly epoch_t net_epoch_preempt;
static uma_zone_t __read_mostly ipsec_key_lft_zone;
bool __read_mostly mac_##f##_fp_flag
extern caddr_t __read_mostly unmapped_buf; /* Data address for unmapped
counter_u64_t __read_mostly c = EARLY_COUNTER; \
static bool __read_mostly __gone_in_ ## __LINE__ = true; \
static bool __read_mostly __gone_in_ ## __LINE__ = true; \
int vm_overcommit __read_mostly = 0;
struct vmmeter __read_mostly vm_cnt = {
const struct pagerops *pagertab[16] __read_mostly = {
extern const struct pagerops *pagertab[] __read_mostly;
static int __read_mostly vm_nfreelists;
static int __read_mostly vm_freelist_to_flind[VM_NFREELIST];
static int __read_mostly vm_default_freepool;
struct mem_affinity __read_mostly *mem_affinity;
int __read_mostly *mem_locality;
int __read_mostly vm_ndomains = 1;
domainset_t __read_mostly all_domains = DOMAINSET_T_INITIALIZER(0x1);
struct vm_phys_seg __read_mostly vm_phys_segs[VM_PHYSSEG_MAX];
int __read_mostly vm_phys_nsegs;
static int __read_mostly lapic_ds_idle_timeout = 1000000;