vcnt
int i, err, vcnt;
vcnt = d->pvchancount;
vcnt = d->rvchancount;
if (newcnt > vcnt) {
(num >= 0 && num < SND_MAXVCHANS && (newcnt - 1) == vcnt),
num, newcnt, vcnt));
((c->flags & CHN_F_HAS_VCHAN) || (vcnt == 0 &&
while (err == 0 && newcnt > vcnt) {
vcnt++;
else if (err == E2BIG && newcnt > vcnt)
if (vcnt == 0)
} else if (newcnt < vcnt) {
if (vcnt == 1 && c->refcount > 0) {
vcnt--;
if (vcnt == newcnt)
0, VMMETEROFF(v_swtch), vcnt, "IU", "Context switches");
0, VMMETEROFF(v_intrans_coll), vcnt, "IU", "Intransit map collisions (total)");
0, VMMETEROFF(v_intrans_wait), vcnt, "IU", "Intransit map collisions which blocked");
0, VMMETEROFF(v_forwarded_ints), vcnt, "IU", "Forwarded interrupts due to MP lock");
0, VMMETEROFF(v_forwarded_hits), vcnt, "IU", "Forwarded hits due to MP lock");
0, VMMETEROFF(v_forwarded_misses), vcnt, "IU", "Forwarded misses due to MP lock");
0, VMMETEROFF(v_trap), vcnt, "IU", "Traps");
0, VMMETEROFF(v_syscall), vcnt, "IU", "Syscalls");
0, VMMETEROFF(v_ipi), vcnt, "IU", "Inter-processor interrupts");
0, VMMETEROFF(v_timer), vcnt, "IU", "LAPIC timer interrupts");
0, VMMETEROFF(v_soft), vcnt, "IU", "Software interrupts");
0, VMMETEROFF(v_vm_faults), vcnt, "IU", "VM faults");
0, VMMETEROFF(v_cow_faults), vcnt, "IU", "COW faults");
0, VMMETEROFF(v_cow_optim), vcnt, "IU", "Optimized COW faults");
0, VMMETEROFF(v_zfod), vcnt, "IU", "Zero fill");
0, VMMETEROFF(v_ozfod), vcnt, "IU", "Optimized zero fill");
0, VMMETEROFF(v_swapin), vcnt, "IU", "Swapin operations");
0, VMMETEROFF(v_swapout), vcnt, "IU", "Swapout operations");
0, VMMETEROFF(v_swappgsin), vcnt, "IU", "Swapin pages");
0, VMMETEROFF(v_swappgsout), vcnt, "IU", "Swapout pages");
0, VMMETEROFF(v_vnodein), vcnt, "IU", "Vnodein operations");
0, VMMETEROFF(v_vnodeout), vcnt, "IU", "Vnodeout operations");
0, VMMETEROFF(v_vnodepgsin), vcnt, "IU", "Vnodein pages");
0, VMMETEROFF(v_vnodepgsout), vcnt, "IU", "Vnodeout pages");
0, VMMETEROFF(v_intrans), vcnt, "IU", "In transit page blocking");
0, VMMETEROFF(v_reactivated), vcnt, "IU", "Reactivated pages");
0, VMMETEROFF(v_pdwakeups), vcnt, "IU", "Pagedaemon wakeups");
0, VMMETEROFF(v_ppwakeups), vcnt, "IU", "vm_wait wakeups");
0, VMMETEROFF(v_pdpages), vcnt, "IU", "Pagedaemon page scans");
0, VMMETEROFF(v_dfree), vcnt, "IU", "Pages freed by daemon");
0, VMMETEROFF(v_pfree), vcnt, "IU", "Pages freed by exiting processes");
0, VMMETEROFF(v_tfree), vcnt, "IU", "Total pages freed");
0, VMMETEROFF(v_forks), vcnt, "IU", "Number of fork() calls");
0, VMMETEROFF(v_vforks), vcnt, "IU", "Number of vfork() calls");
0, VMMETEROFF(v_rforks), vcnt, "IU", "Number of rfork() calls");
0, VMMETEROFF(v_kthreads), vcnt, "IU", "Number of fork() calls by kernel");
0, VMMETEROFF(v_forkpages), vcnt, "IU", "VM pages affected by fork()");
0, VMMETEROFF(v_vforkpages), vcnt, "IU", "VM pages affected by vfork()");
0, VMMETEROFF(v_rforkpages), vcnt, "IU", "VM pages affected by rfork()");
0, VMMETEROFF(v_kthreadpages), vcnt, "IU", "VM pages affected by fork() by kernel");