.\" Copyright (c) 1995 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#) kvm_getvfsbyname. 3 8.3 (Berkeley) 5/4/95 .\" %FreeBSD: src/lib/libc/gen/getvfsbyname. 3, v 1.7. 2.5 2001/12/14 18:33:51 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/getvfsbyname. 3, v 1.3 2002/11/03 06:38:28 horikawa Exp $ .Dd May 4, 1995 .Dt GETVFSBYNAME 3 .Os .Sh ¸íĪ .Nm getvfsbyname .Nd ÆÄÀÏ ½Ã½ºÅÛ¿¡ ´ëÇÑ Á¤º¸¸¦ Ãëµæ .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc .Sh ¼­½Ä .In sys/param.h .In sys/mount.h .Ft int .Fn getvfsbyname "const char *name" "struct vfsconf *vfc" .Sh ÇØ¼³ .Fn getvfsbyname ÇÔ¼ö´Â, Ä¿³Î¿¡ ±¸¼ºµÇ¾î ÀÖ´Â ÆÄÀÏ ½Ã½ºÅÛ ¸ðµâ ¿¡ °üÇÑ Á¤º¸¿¡ÀÇ ¾×¼¼½º¸¦ Á¦°øÇÕ´Ï´Ù. ¼º°øÇßÀ» °æ¿ì´Â, ¿ä±¸µÈ ÆÄÀÏ ½Ã½ºÅÛ .Fa vfsconf (À»)¸¦, .Fa vfc (ÀÌ)°¡ °¡¸®Å°´Â À§Ä¡¿¡ µ¹·ÁÁÝ´Ï´Ù. ±¸Á¶Ã¼ .Dq Li struct vfsconf ÀÇ Çʵå´Â, ´ÙÀ½°ú °°ÀÌ Á¤Àǵ˴ϴÙ. .Pp .Bl -tag -compact -width vfc_refcount .It vfc_name ÆÄÀÏ ½Ã½ºÅÛÀÇ À̸§ .It vfc_typenum Ä¿³Î¿¡ ÀÇÇØ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø ÆÄÀÏ ½Ã½ºÅÛÀÇ Å¸ÀÔ ¹øÈ£ .It vfc_refcount ÆÄÀÏ ½Ã½ºÅÛÀ» »ç¿ëÇÏ´Â ¾×ƼºêÇÑ Æ÷ÀÎÆ®ÀÇ ¹øÈ£ .It vfc_flags .Xr getvfsent 3 ¿¡ ±â¼úµÇ´Â flag bit .El .Sh ¹Ýȯ°ª .Rv -std getvfsbyname .Sh ¿¡·¯ ´ÙÀ½ÀÇ ¿¡·¯°¡ º¸°íµÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. .Bl -tag -width Er .It Bq Er EFAULT .Fa vfc Æ÷ÀÎÅÍ¿¡ ¹«È¿ÀÎ ÁÖ¼Ò°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. .It Bq Er ENOENT ÆÄÀÏ ½Ã½ºÅÛÀ» ÁöÁ¤ÇÑ´Ù .Fa name ÇÏÁö¸¸ ¹ÌÁöÀΰ¡, ¶Ç´Â Ä¿³Î¿¡ ±¸¼ºµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù. .El .Sh °ü·Ã Ç׸ñ .Xr mount 2 , .Xr getvfsent 3 , .Xr sysctl 3 , .Xr mount 8 , .Xr sysctl 8 .Sh ¿ª»ç .Fn getvfsbyname ÇÔ¼ö´Â, .Fx 2.0 ±×¸®°í óÀ½ µîÀåÇß½À´Ï´Ù.