/*ARGSUSED*/ int nwfs_init(struct vfsconf *vfsp) { #ifndef SMP if (ncpus > 1) kprintf("warning: nwfs module compiled without SMP support."); #endif nwfs_hash_init(); nwfs_pbuf_freecnt = nswbuf / 2 + 1; NCPVODEBUG("always happy to load!\n"); return (0); }
/*ARGSUSED*/ int nwfs_init(struct vfsconf *vfsp) { #ifndef SMP int name[2]; int ncpu, error; size_t olen, plen; name[0] = CTL_HW; name[1] = HW_NCPU; error = kernel_sysctl(name, 2, &ncpu, &olen, NULL, 0, &plen); if (error == 0 && ncpu > 1) kprintf("warning: nwfs module compiled without SMP support."); #endif nwfs_hash_init(); nwfs_pbuf_freecnt = nswbuf / 2 + 1; NCPVODEBUG("always happy to load!\n"); return (0); }