KVM_GETVFSBYNAME(3) BSD Programmer's Manual KVM_GETVFSBYNAME(3) NNAAMMEE kkvvmm__ggeettvvffssbbyynnaammee - get information about a filesystem SSYYNNOOPPSSIISS ##iinncclluuddee <> ##iinncclluuddee <> ##iinncclluuddee <> _i_n_t kkvvmm__ggeettvvffssbbyynnaammee(_c_o_n_s_t _c_h_a_r _*_n_a_m_e, _s_t_r_u_c_t _v_f_s_c_o_n_f _*_v_f_c); DDEESSCCRRIIPPTTIIOONN The kkvvmm__ggeettvvffssbbyynnaammee() function provides access to information about a filesystem module that is configured in the kernel. If successful, the requested filesystem _v_f_s_c_o_n_f is returned in the location pointed to by vvffcc. The fields in a ``struct vfsconf'' are defined as follows: vfc_name the name of the filesystem vfc_index the filesystem type number assigned by the kernel vfc_refcount the number of active mount points using the filesystem vfc_flags flag bits that are used to initialize a new mount point us- ing the filesystem RREETTUURRNN VVAALLUUEESS If the call to ggeettvvffssbbyynnaammee is successful, 0 is returned. Otherwise -1 is returned and _e_r_r_n_o is set appropriately. EERRRROORRSS The following errors may be reported: [EFAULT] The _v_f_c pointer contains an invalid address. [ENOENT] The _n_a_m_e specifies a filesystem that is unknown or not con- figured in the kernel. SSEEEE AALLSSOO sysctl(1), mount(2), sysctl(3), mount(8) HHIISSTTOORRYY A variant of the ggeettvvffssbbyynnaammee() function first appeared in FreeBSD 2.0. 4.4BSD April 3, 1995 1