Lines Matching refs:vfc

388 vfs_register(struct vfsconf *vfc)  in vfs_register()  argument
402 if (vfc->vfc_version != VFS_VERSION) { in vfs_register()
404 vfc->vfc_name, vfc->vfc_version); in vfs_register()
408 if (vfs_byname_locked(vfc->vfc_name) != NULL) { in vfs_register()
420 hashval = fnv_32_str(vfc->vfc_name, FNV1_32_INIT); in vfs_register()
436 vfc->vfc_typenum = hashval; in vfs_register()
437 if (vfc->vfc_typenum >= maxvfsconf) in vfs_register()
438 maxvfsconf = vfc->vfc_typenum + 1; in vfs_register()
440 vfc->vfc_typenum = maxvfsconf++; in vfs_register()
441 TAILQ_INSERT_TAIL(&vfsconf, vfc, vfc_list); in vfs_register()
449 KASSERT(vfc->vfc_vfsops != NULL, in vfs_register()
450 ("Filesystem %s has no vfsops", vfc->vfc_name)); in vfs_register()
454 vfsops = vfc->vfc_vfsops; in vfs_register()
456 ("Filesystem %s has no mount op", vfc->vfc_name)); in vfs_register()
458 ("Filesystem %s has no unmount op", vfc->vfc_name)); in vfs_register()
500 if ((vfc->vfc_flags & VFCF_SBDRY) != 0) { in vfs_register()
501 vfc->vfc_vfsops_sd = vfc->vfc_vfsops; in vfs_register()
502 vfc->vfc_vfsops = &vfsops_sigdefer; in vfs_register()
505 if (vfc->vfc_flags & VFCF_JAIL) in vfs_register()
506 prison_add_vfs(vfc); in vfs_register()
511 if ((vfc->vfc_flags & VFCF_SBDRY) != 0) in vfs_register()
512 vfc->vfc_vfsops_sd->vfs_init(vfc); in vfs_register()
514 vfc->vfc_vfsops->vfs_init(vfc); in vfs_register()
529 if (strcmp(oidp->oid_name, vfc->vfc_name) == 0) { in vfs_register()
531 oidp->oid_number = vfc->vfc_typenum; in vfs_register()
543 vfs_unregister(struct vfsconf *vfc) in vfs_unregister() argument
549 vfsp = vfs_byname_locked(vfc->vfc_name); in vfs_unregister()
559 if ((vfc->vfc_flags & VFCF_SBDRY) != 0) { in vfs_unregister()
560 if (vfc->vfc_vfsops_sd->vfs_uninit != NULL) in vfs_unregister()
561 error = vfc->vfc_vfsops_sd->vfs_uninit(vfsp); in vfs_unregister()
563 if (vfc->vfc_vfsops->vfs_uninit != NULL) in vfs_unregister()
564 error = vfc->vfc_vfsops->vfs_uninit(vfsp); in vfs_unregister()
587 struct vfsconf *vfc; in vfs_modevent() local
590 vfc = (struct vfsconf *)data; in vfs_modevent()
594 if (vfc) in vfs_modevent()
595 error = vfs_register(vfc); in vfs_modevent()
599 if (vfc) in vfs_modevent()
600 error = vfs_unregister(vfc); in vfs_modevent()