| /freebsd/sys/vm/ |
| H A D | vm_pageout.c | 126 static void vm_pageout_mightbe_oom(struct vm_domain *vmd, int page_shortage, 230 static int vm_pageout_launder(struct vm_domain *vmd, int launder, 717 vm_pageout_launder(struct vm_domain *vmd, int launder, bool in_shortfall) in vm_pageout_launder() argument 747 marker = &vmd->vmd_markers[queue]; in vm_pageout_launder() 748 pq = &vmd->vmd_pagequeues[queue]; in vm_pageout_launder() 984 struct vm_domain *vmd; in vm_pageout_laundry_worker() local 991 vmd = VM_DOMAIN(domain); in vm_pageout_laundry_worker() 992 pq = &vmd->vmd_pagequeues[PQ_LAUNDRY]; in vm_pageout_laundry_worker() 993 KASSERT(vmd->vmd_segs != 0, ("domain without segments")); in vm_pageout_laundry_worker() 1004 (void)EVENTHANDLER_REGISTER(swapon, vm_pageout_swapon, vmd, in vm_pageout_laundry_worker() [all …]
|
| H A D | vm_pagequeue.h | 388 void vm_domain_set(struct vm_domain *vmd); 389 void vm_domain_clear(struct vm_domain *vmd); 390 int vm_domain_allocate(struct vm_domain *vmd, int req, int npages); 409 vm_paging_target(struct vm_domain *vmd) in vm_paging_target() argument 412 return (vmd->vmd_free_target - vmd->vmd_free_count); in vm_paging_target() 419 vm_paging_needed(struct vm_domain *vmd, u_int free_count) in vm_paging_needed() argument 422 return (free_count < vmd->vmd_pageout_wakeup_thresh); in vm_paging_needed() 429 vm_paging_min(struct vm_domain *vmd) in vm_paging_min() argument 432 return (vmd->vmd_free_min > vmd->vmd_free_count); in vm_paging_min() 439 vm_paging_severe(struct vm_domain *vmd) in vm_paging_severe() argument [all …]
|
| H A D | vm_page.c | 191 static int vm_domain_alloc_fail(struct vm_domain *vmd, vm_object_t object, 220 struct vm_domain *vmd; in vm_page_init_cache_zones() local 227 vmd = VM_DOMAIN(domain); in vm_page_init_cache_zones() 233 pgcache = &vmd->vmd_pgcache[pool]; in vm_page_init_cache_zones() 246 vmd->vmd_page_count / 1000; in vm_page_init_cache_zones() 341 struct vm_domain *vmd; in vm_page_blacklist_add() local 349 vmd = VM_DOMAIN(vm_phys_domain(pa)); in vm_page_blacklist_add() 350 vm_domain_free_lock(vmd); in vm_page_blacklist_add() 352 vm_domain_free_unlock(vmd); in vm_page_blacklist_add() 354 vm_domain_freecnt_inc(vmd, -1); in vm_page_blacklist_add() [all …]
|
| H A D | vm_meter.c | 484 struct vm_domain *vmd; in sysctl_vm_laundry_pages() local 487 vmd = arg1; in sysctl_vm_laundry_pages() 488 ret = vmd->vmd_pagequeues[PQ_LAUNDRY].pq_cnt + in sysctl_vm_laundry_pages() 489 vmd->vmd_pagequeues[PQ_UNSWAPPABLE].pq_cnt; in sysctl_vm_laundry_pages() 494 vm_domain_stats_init(struct vm_domain *vmd, struct sysctl_oid *parent) in vm_domain_stats_init() argument 498 vmd->vmd_oid = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(parent), OID_AUTO, in vm_domain_stats_init() 499 vmd->vmd_name, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, ""); in vm_domain_stats_init() 500 oid = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(vmd->vmd_oid), OID_AUTO, in vm_domain_stats_init() 503 "free_count", CTLFLAG_RD, &vmd->vmd_free_count, 0, in vm_domain_stats_init() 506 "active", CTLFLAG_RD, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_cnt, 0, in vm_domain_stats_init() [all …]
|
| H A D | vm_reserv.c | 437 struct vm_domain *vmd; in vm_reserv_depopulate() local 479 vmd = VM_DOMAIN(rv->domain); in vm_reserv_depopulate() 482 vm_domain_free_lock(vmd); in vm_reserv_depopulate() 485 vm_domain_free_unlock(vmd); in vm_reserv_depopulate() 488 vm_domain_freecnt_inc(vmd, 1); in vm_reserv_depopulate() 692 struct vm_domain *vmd; in vm_reserv_alloc_contig() local 737 vmd = VM_DOMAIN(domain); in vm_reserv_alloc_contig() 750 if (!vm_domain_allocate(vmd, req, npages)) in vm_reserv_alloc_contig() 779 vmd = VM_DOMAIN(domain); in vm_reserv_alloc_contig() 780 if (vm_domain_allocate(vmd, req, npages)) { in vm_reserv_alloc_contig() [all …]
|
| H A D | vm_kern.c | 948 struct vm_domain *vmd; in kmem_bootstrap_free() local 960 vmd = vm_pagequeue_domain(m); in kmem_bootstrap_free() 961 vm_domain_free_lock(vmd); in kmem_bootstrap_free() 963 vm_domain_free_unlock(vmd); in kmem_bootstrap_free() 965 vm_domain_freecnt_inc(vmd, 1); in kmem_bootstrap_free()
|
| H A D | vm_phys.c | 1283 struct vm_domain *vmd; in vm_phys_lazy_init_domain() local 1292 vmd = VM_DOMAIN(domain); in vm_phys_lazy_init_domain() 1294 vm_domain_free_assert_locked(vmd); in vm_phys_lazy_init_domain() 1296 vm_domain_free_lock(vmd); in vm_phys_lazy_init_domain() 1317 unlocked = vm_domain_allocate(vmd, in vm_phys_lazy_init_domain() 1320 vm_domain_free_unlock(vmd); in vm_phys_lazy_init_domain() 1323 vm_domain_freecnt_inc(vmd, 1 << oind); in vm_phys_lazy_init_domain() 1324 vm_domain_free_lock(vmd); in vm_phys_lazy_init_domain() 1334 vm_domain_free_unlock(vmd); in vm_phys_lazy_init_domain()
|
| /freebsd/sys/modules/vmd/ |
| H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/vmd 3 KMOD= vmd 6 vmd.c \
|
| /freebsd/lib/libvmmapi/ |
| H A D | vmmapi.c | 205 struct vmmctl_vm_destroy vmd; in vm_destroy() local 207 memset(&vmd, 0, sizeof(vmd)); in vm_destroy() 208 (void)strlcpy(vmd.name, vm->name, sizeof(vmd.name)); in vm_destroy() 209 if (ioctl(vm->ctlfd, VMMCTL_VM_DESTROY, &vmd) != 0) in vm_destroy()
|
| /freebsd/sys/dev/vmm/ |
| H A D | vmm_dev.c | 1143 struct vmmctl_vm_destroy *vmd; in vmmctl_ioctl() local 1145 vmd = (struct vmmctl_vm_destroy *)data; in vmmctl_ioctl() 1146 vmd->name[VM_MAX_NAMELEN] = '\0'; in vmmctl_ioctl() 1147 for (size_t i = 0; i < nitems(vmd->reserved); i++) { in vmmctl_ioctl() 1148 if (vmd->reserved[i] != 0) { in vmmctl_ioctl() 1154 error = vmmdev_lookup_and_destroy(vmd->name, td->td_ucred); in vmmctl_ioctl()
|
| /freebsd/sys/dev/vmd/ |
| H A D | vmd.c | 77 SYSCTL_NODE(_hw, OID_AUTO, vmd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 749 DRIVER_MODULE(vmd, pci, vmd_pci_driver, NULL, NULL); 750 MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, vmd,
|
| /freebsd/sys/conf/ |
| H A D | files.x86 | 327 dev/vmd/vmd.c optional vmd | vmd_bus
|
| /freebsd/sys/modules/ |
| H A D | Makefile | 842 _vmd= vmd
|
| /freebsd/share/man/man4/ |
| H A D | Makefile | 911 _vmd.4= vmd.4
|
| /freebsd/sys/amd64/conf/ |
| H A D | GENERIC | 192 device vmd
|
| /freebsd/sys/x86/conf/ |
| H A D | NOTES | 384 device vmd
|
| /freebsd/contrib/ncurses/misc/ |
| H A D | terminfo.src | 21511 # https://web.archive.org/web/20030914201935/http://www.minix-vmd.org/pub/Minix-vmd/1.7.0/wwwman/ma…
|