diff --git a/ja_JP.eucJP/man/man9/at_exit.9 b/ja_JP.eucJP/man/man9/at_exit.9 index 374514d8b7..b844214178 100644 --- a/ja_JP.eucJP/man/man9/at_exit.9 +++ b/ja_JP.eucJP/man/man9/at_exit.9 @@ -1,76 +1,76 @@ .\" .\" Copyright (c) 1996 Julian Elischer .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/at_exit.9,v 1.10.2.7 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/at_exit.9,v 1.18 2001/10/01 16:09:24 ru Exp % .\" " .\" $FreeBSD$ .Dd August 15, 1996 .Os .Dt AT_EXIT 9 .Sh ̾¾Î .Nm at_exit , .Nm rm_at_exit .Nd exit »þ¤Ë¼Â¹Ô¤µ¤ì¤ë´Ø¿ô¤ÎÌä¹ç¤» .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft typedef\ void ( exitlist_fn ) ( struct\ proc\ * ) ; .Pp .Ft int .Fn at_exit "exitlist_fn func" .Ft int .Fn rm_at_exit "exitlist_fn func" .Sh ²òÀâ .Nm ¤Î»ÅÁȤߤϡ¢¤¢¤é¤æ¤ë¥×¥í¥»¥¹¤Î exit »þ¤Ë¡¢ ¤½¤Î¤³¤È¤¬¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤ËÄÌÃΤµ¤ì¤ë¤³¤È¤òÊݾڤ·¤Þ¤¹¡£ ´Ø¿ô .Fa func ¤Ï¡¢exit ¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î proc ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤ò°ú¿ô¤È¤·¤Æ ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ .Pp ÄÌÃΤËÂФ¹¤ëɬÍ×¾ò·ï¤¬¼è¤ê½ü¤«¤ì¤¿¾ì¹ç¡¢ .Fn at_exit ¤Î¸Æ¤Ó½Ð¤·¤ÈÀµ³Î¤Ë°ìÃפ¹¤ë°ú¿ô .Fa func ¤òȼ¤Ã¤Æ´Ø¿ô .Fn rm_at_exit ¤ò¸Æ¤Ó½Ð¤µ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ .Sh Ìá¤êÃÍ .Fa at_exit ´Ø¿ô¤Ï errno ¤òÊÖ¤·¡¢0 ¤ÏÀ®¸ù¤ò°ÕÌ£¤·¤Þ¤¹¡£ .Fn rm_at_exit ´Ø¿ô¤Ï¡¢ºï½ü¤µ¤ì¤¿¹àÌܤθĿô (0 ¤Þ¤¿¤Ï 1 ¤Ç¤¢¤ë¤Ù¤­¤Ç¤¹) ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr _exit 2 .Sh Îò»Ë .Fn at_exit ´Ø¿ô¤Ï .Fx 2.2 ¤ÇÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô ¤³¤Î´Ø¿ô¤Ï .An Julian Elischer Aq julian@FreeBSD.org ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/at_fork.9 b/ja_JP.eucJP/man/man9/at_fork.9 index fade5f5cfd..b365a03827 100644 --- a/ja_JP.eucJP/man/man9/at_fork.9 +++ b/ja_JP.eucJP/man/man9/at_fork.9 @@ -1,79 +1,79 @@ .\" .\" Copyright (c) 1996 Julian Elischer .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/at_fork.9,v 1.9.2.7 2002/01/10 09:36:27 ru Exp % +.\" %FreeBSD: src/share/man/man9/at_fork.9,v 1.18 2002/01/10 09:34:33 ru Exp % .\" " .\" $FreeBSD$ .Dd August 15, 1996 .Os .Dt AT_FORK 9 .Sh ̾¾Î .Nm at_fork , .Nm rm_at_fork .Nd fork »þ¤Ë¼Â¹Ô¤µ¤ì¤ë´Ø¿ô¤ÎÌä¹ç¤» .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft "typedef void" .Fn \*[lp]*forklist_fn\*[rp] "struct proc *" "struct proc *" int .Pp .Ft int .Fn at_fork "forklist_fn func" .Ft int .Fn rm_at_fork "forklist_fn func" .Sh ²òÀâ .Nm ¤Î»ÅÁȤߤϡ¢¤¢¤é¤æ¤ë¥×¥í¥»¥¹¤Î fork »þ¤Ë¡¢ ¤½¤Î¤³¤È¤¬¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤ËÄÌÃΤµ¤ì¤ë¤³¤È¤òÊݾڤ·¤Þ¤¹¡£ ´Ø¿ô .Fa func ¤Ï¡¢fork ¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Î proc ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¡¢ »Ò¥×¥í¥»¥¹¤Î¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤ª¤è¤Ó .Xr rfork 2 ¤Ç»ÈÍѤµ¤ì¤ë fork ¤Î·¿¤ò¼¨¤¹¥Õ¥é¥°¤ò°ú¿ô¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ .Pp ÄÌÃΤËÂФ¹¤ëɬÍ×¾ò·ï¤¬¼è¤ê½ü¤«¤ì¤¿¾ì¹ç¡¢ .Fn at_fork ¤Î¸Æ¤Ó½Ð¤·¤ÈÀµ³Î¤Ë°ìÃ×°ú¿ô .Fa func ¤ò¤È¤Ã¤Æ´Ø¿ô .Fn rm_at_fork ¤ò¸Æ¤Ó½Ð¤µ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ .Sh Ìá¤êÃÍ .Fn at_fork ¤Ï errno ¤òÊÖ¤·¡¢0 ¤ÏÀ®¸ù¤ò°ÕÌ£¤·¤Þ¤¹¡£ .Fn rm_at_fork ¤Ï´Ø¿ô¤Ï¡¢ºï½ü¤µ¤ì¤¿¹àÌܤθĿô (0 ¤Þ¤¿¤Ï 1 ¤Ç¤¢¤ë¤Ù¤­¤Ç¤¹) ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr fork 2 .Sh Îò»Ë .Fn at_fork ´Ø¿ô¤Ï .Fx 2.2 ¤ÇÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô ¤³¤Î´Ø¿ô¤Ï .An Julian Elischer Aq julian@FreeBSD.org ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bios.9 b/ja_JP.eucJP/man/man9/bios.9 index 822b8feb7a..5e93cb0e21 100644 --- a/ja_JP.eucJP/man/man9/bios.9 +++ b/ja_JP.eucJP/man/man9/bios.9 @@ -1,123 +1,127 @@ -.\" %FreeBSD: src/share/man/man9/bios.9,v 1.4.2.6 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bios.9,v 1.12 2001/12/26 23:14:04 davidc Exp % .\" .\" Copyright (c) 1997 Michael Smith .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" .\" $FreeBSD$ .Dd Aug 1, 1997 .Dt BIOS 9 .Os .Sh ̾¾Î .Nm bios_sigsearch , .Nm bios32_SDlookup , .Nm bios32 .Nd PC BIOS ¤È¤ÎÁê¸ßºîÍÑ .Sh ½ñ¼° -.In sys/types.h +.In sys/param.h +.In vm/vm.h +.In vm/pmap.h +.In machine/param.h +.In machine/pmap.h .In machine/pc/bios.h .Ft u_int32_t .Fn bios_sigsearch "u_int32_t start" "u_char *sig" "int siglen" "int paralen" "int sigofs" .Ft int .Fn bios32_SDlookup "struct bios32_SDentry *ent" -.Ft void -.Fn bios32 "caddr_t entry" "struct bios32_args *args" +.Ft int +.Fn bios32 "struct bios_regs *br" "u_int offset" "u_short segment" .Fn BIOS_PADDRTOVADDR "addr" .Fn BIOS_VADDRTOPADDR "addr" .Vt extern struct bios32_SDentry PCIbios ; .Vt extern struct SMBIOS_table SMBIOStable ; .Vt extern struct DMI_table DMItable ; .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢BIOS ´Ø¿ô¤È x86 PC ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¥·¥¹¥Æ¥à¤Ç½Ð²ñ¤¦¥Ç¡¼¥¿¤ò ¼è¤ê°·¤¦¤¿¤á¤Î¡¢ÈÆÍÑ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£ .Bl -tag -width 20n .It Fn bios_sigsearch ¥µ¡¼¥Ó¥¹¥·¥°¥Í¥Á¥ã¤Î BIOS ¥¢¥É¥ì¥¹¶õ´Ö¤ò¸¡º÷¤·¤Þ¤¹¡£ ¥µ¡¼¥Ó¥¹¥·¥°¥Í¥Á¥ã¤Ï¡¢ ÂçÄñ¤Ï¥¢¥ó¥À¥¹¥³¥¢¤Ç°Ï¤Þ¤ì¤Æ¤¤¤ëÂçʸ»ú¤Î ASCII ʸ»úÎó¤Ç¤¹¡£ ¸¡º÷¤Ï¡¢ .Fa start ¤«¤é¡¢¤Þ¤¿¤Ï .Fa start ¤¬ 0 ¤Î¾ì¹ç¤Ë¤Ï BIOS ¤ÎºÇ½é¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£ .Fa siglen ¥Ð¥¤¥È¤Î BIOS ¥¤¥á¡¼¥¸¤È .Fa sig ¤È¤¬¡¢¸½ºß°ÌÃÖ¤«¤é .Fa sigofs ¥Ð¥¤¥È¤Î¥ª¥Õ¥»¥Ã¥È¤Ë¤ª¤¤¤ÆÈæ³Ó¤µ¤ì¤Þ¤¹¡£ ¥Þ¥Ã¥Á¤·¤Ê¤¤¤³¤È¤¬Ê¬¤«¤ë¤È¡¢¸½ºß°ÌÃÖ¤¬ .Fa paralen ¥Ð¥¤¥ÈÁý²Ã¤µ¤ì¤Æ¸¡º÷¤¬·«¤êÊÖ¤µ¤ì¤Þ¤¹¡£ ¥·¥°¥Í¥Á¥ã¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¼Â¸úʪÍý¥¢¥É¥ì¥¹¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ ¥·¥°¥Í¥Á¥ã¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢0 ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .It Fn BIOS_VADDRTOPADDR ¥«¡¼¥Í¥ë²¾ÁÛ¥¢¥É¥ì¥¹ .Fa addr ¤ËÂбþ¤¹¤ë¼Â¸úʪÍý¥¢¥É¥ì¥¹¤òÊÖ¤·¤Þ¤¹¡£ .It Fn BIOS_VADDRTOPADDR ¼Â¸úʪÍý¥¢¥É¥ì¥¹ .Fa addr ¤ËÂбþ¤¹¤ë¥«¡¼¥Í¥ë²¾ÁÛ¥¢¥É¥ì¥¹¤òÊÖ¤·¤Þ¤¹¡£ .It SMBIOStable NULL ¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë ¥·¥¹¥Æ¥à¥Þ¥Í¡¼¥¸¥á¥ó¥È BIOS (System Management BIOS; SMBIOS) ¥Æ¡¼¥Ö¥ë ¤«¤éÆÉ¤ß¹þ¤Þ¤ì¤¿¾ðÊó¤ò´Þ¤ó¤Ç¤¤¤ë .Ft struct SMBIOS_table ¹½Â¤ÂΤò»Ø¤·¤Þ¤¹¡£ .It DMItable NULL ¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë ¥Ç¥¹¥¯¥È¥Ã¥×¥Þ¥Í¡¼¥¸¥á¥ó¥È¥¤¥ó¥¿¥Õ¥§¡¼¥¹ (Desktop Management Interface; DMI) ¥Ñ¥é¥á¡¼¥¿¥Æ¡¼¥Ö¥ë ¤«¤éÆÉ¤ß¹þ¤Þ¤ì¤¿¾ðÊó¤ò´Þ¤ó¤Ç¤¤¤ë .Ft struct DMI_table ¹½Â¤ÂΤò»Ø¤·¤Þ¤¹¡£ .El .Sh BIOS32 ¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë¡¢BIOS32 ¥µ¡¼¥Ó¥¹¥Ç¥£¥ì¥¯¥È¥ê (PCI »ÅÍͤΰìÉô) ¤Î ¤¿¤á¤Ë BIOS ¤¬¥¹¥­¥ã¥ó¤µ¤ì¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¸ºß¤¬µ­Ï¿¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï¸å¤Ç¡¢Â¾¤Î¥µ¡¼¥Ó¥¹¤Î¾ì½ê¤òÆÃÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤǤ­¤Þ¤¹¡£ .Bl -tag -width 20n .It Fn bios32_SDlookup °ú¿ô .Fa ent ¤Î .Fa ident ¥Õ¥£¡¼¥ë¥É¤ÇÅϤµ¤ì¤ë 4 ¥Ð¥¤¥È¤Î¼±Ê̻Ҥ˥ޥåÁ¤¹¤ë BIOS32 ¥µ¡¼¥Ó¥¹ ¤Î¾ì½ê¤òÆÃÄꤷ¤è¤¦¤È»î¤ß¤Þ¤¹¡£ .It Fn bios32 bios32 ´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ ¤³¤ì¤Ï´Ø¿ô¤¬¡¢¥«¡¼¥Í¥ë¥»¥°¥á¥ó¥ÈÆâ¤Çưºî¤Ç¤­¤ë¤³¤È¤ò ²¾Äꤷ¤Æ¤¤¤Þ¤¹ (Ä̾ï¤Î¾ì¹ç)¡£ ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤Î²¾ÁÛ¥¢¥É¥ì¥¹¤Ï .Fa entry ¤ÇÍ¿¤¨¤é¤ì¡¢ ´Ø¿ô¤Ø¤Î¥ì¥¸¥¹¥¿°ú¿ô¤Ï .Fa args ¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£ .It PCIbios NULL ¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢¥·¥¹¥Æ¥àµ¯Æ°»þ¤Ë¸«¤Ä¤«¤Ã¤¿ PCI BIOS ¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤òµ­½Ò¤¹¤ë .Ft struct bios32_SDentry ¹½Â¤ÂΤò»Ø¤·¤Þ¤¹¡£ .El diff --git a/ja_JP.eucJP/man/man9/boot.9 b/ja_JP.eucJP/man/man9/boot.9 index 7d7bbc0897..cb4978aa01 100644 --- a/ja_JP.eucJP/man/man9/boot.9 +++ b/ja_JP.eucJP/man/man9/boot.9 @@ -1,107 +1,104 @@ .\" %NetBSD: boot.9,v 1.2 1996/09/24 07:01:26 ghudson Exp % .\" .\" Copyright (c) 1997 .\" Mike Pritchard. All rights reserved. .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" 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 Christopher G. Demetriou .\" for the NetBSD Project. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/boot.9,v 1.4.2.2 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/boot.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd February 14, 1997 .Dt BOOT 9 .Os .Sh ̾¾Î .Nm boot .Nd ¥·¥¹¥Æ¥à¤ÎÄä»ß¤Þ¤¿¤ÏºÆµ¯Æ° .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .In sys/reboot.h .Ft void .Fn boot "int howto" .Sh ²òÀâ .Fn boot ´Ø¿ô¤Ï¡¢¥·¥¹¥Æ¥à¤ÎºÇ½ªÅª¤Ê¥·¥¹¥Æ¥à¥·¥ã¥Ã¥È¥À¥¦¥ó¤È¡¢ Ää»ß¤Þ¤¿¤ÏºÆµ¯Æ°¤ò¼è¤ê°·¤¤¤Þ¤¹¡£ ¹Ô¤Ê¤ï¤ì¤ëÀµ³Î¤Êưºî¤Ï¡¢ .Fa howto ¤ÇÅϤµ¤ì¤ë¥Õ¥é¥°¤È¡¢ ¥·¥¹¥Æ¥à¤¬¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤ò´û¤Ë½ª¤¨¤Æ¤¤¤ë¤«¤É¤¦¤«¡¢ ¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤Þ¤¹¡£ .Pp ¥·¥¹¥Æ¥à¤¬¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤ò´û¤Ë½ª¤¨¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ .Fn boot ¤Ï¼¡¤Îưºî¤ò¤·¤Þ¤¹¡£ .Bl -enum -offset indent .It ¤³¤ì¤¬ºÇ½é¤Î .Fn boot ¤Î¼Â»Ü¤Î¾ì¹ç¤Ç¡¢ .Fa howto ¤Ë .Dv RB_NOSYNC ¥Õ¥é¥°¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢ .Xr vfs_unmountall 9 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ë¤è¤ê¡¢¥Ç¥£¥¹¥¯¤ÎƱ´ü¤È¥¢¥ó¥Þ¥¦¥ó¥È¤ò¹Ô¤Ê¤¤¤Þ¤¹¡£ .It ³ä¤ê¹þ¤ß¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£ .It ¥¯¥é¥Ã¥·¥å¤Î¸å¤ÎºÆµ¯Æ°¤Î¾ì¹ç (Î㤨¤Ð¡¢ .Fa howto ¤Ë .Dv RB_DUMP ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤¬ .Dv RB_HALT ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤) ¤Ï¡¢ ¥·¥¹¥Æ¥à¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤òÊݸ¤·¤Þ¤¹¡£ .It -.Xr at_shutdown 9 -¤Ë¤è¤Ã¤Æ°ÊÁ°¤ËÀßÄꤵ¤ì¤¿¤¢¤é¤æ¤ë¥·¥ã¥Ã¥È¥À¥¦¥ó¥Õ¥Ã¥¯¤ò¼Â¹Ô¤·¤Þ¤¹¡£ +°ÊÁ°¤ËÅÐÏ¿¤µ¤ì¤¿¤¢¤é¤æ¤ë¥·¥ã¥Ã¥È¥À¥¦¥ó¥Õ¥Ã¥¯¤ò¼Â¹Ô¤·¤Þ¤¹¡£ .It ¥·¥¹¥Æ¥à¤¬Ää»ß¤µ¤»¤é¤ì¤Æ¤¤¤ë¤Î¤«¡¢ ºÆµ¯Æ°¤µ¤»¤é¤ì¤Æ¤¤¤ë¤Î¤«¤ò¼¨¤¹¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¤Þ¤¹¡£ .It .Fa howto ¤Ë .Dv RB_HALT ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥·¥¹¥Æ¥à¤òÄä»ß¤·¤Þ¤¹¡£ ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¡¢¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·¤Þ¤¹¡£ .El .Pp ¥·¥¹¥Æ¥à¤¬¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤ò¤Þ¤À½ª¤¨¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ .Fn boot ¤Ï -.Xr at_shutdown 9 -¤Ë¤è¤Ã¤Æ°ÊÁ°¤ËÀßÄꤵ¤ì¤¿¤¢¤é¤æ¤ë¥·¥ã¥Ã¥È¥À¥¦¥ó¥Õ¥Ã¥¯¤ò¼Â¹Ô¤·¡¢ +°ÊÁ°¤ËÅÐÏ¿¤µ¤ì¤¿¤¢¤é¤æ¤ë¥·¥ã¥Ã¥È¥À¥¦¥ó¥Õ¥Ã¥¯¤ò¼Â¹Ô¤·¡¢ ¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¡¢¥·¥¹¥Æ¥à¤òÄä»ß¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ -.Xr at_shutdown 9 , .Xr vfs_unmountall 9 diff --git a/ja_JP.eucJP/man/man9/bus_alloc_resource.9 b/ja_JP.eucJP/man/man9/bus_alloc_resource.9 index f47811ec24..9a985dc1de 100644 --- a/ja_JP.eucJP/man/man9/bus_alloc_resource.9 +++ b/ja_JP.eucJP/man/man9/bus_alloc_resource.9 @@ -1,160 +1,160 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 2000 Alexander Langer .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_alloc_resource.9,v 1.2.2.9 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_alloc_resource.9,v 1.12 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd May 18, 2000 .Dt BUS_ALLOC_RESOURCE 9 .Os .Sh ̾¾Î .Nm bus_alloc_resource .Nd ¥Ð¥¹¾å¤Î»ñ¸»¤Î³ä¤êÅö¤Æ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Pp .In machine/bus.h .In sys/rman.h .In machine/resource.h .Ft struct resource * .Fn bus_alloc_resource "device_t dev" "int type" "int *rid" "u_long start" "u_long end" "u_long count" "u_int flags" .Sh ²òÀâ ¤³¤ì¤Ï»ñ¸»´ÉÍý´Ø¿ô·²¤Ø¤Î´Êñ¤Ê¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤¹¡£ ¿Æ¤Î¥á¥½¥Ã¥É¥Æ¡¼¥Ö¥ë¤òÄ̤ë´ÖÀÜŪ¤ÊÊýË¡¤ò±£Êä·¤Þ¤¹¡£ ¤³¤Î´Ø¿ô¤Ï¡¢°ìÈÌŪ¤Ë¥¢¥¿¥Ã¥Á»þ¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¤¬¡¢ (¶¥¹ç¾õÂ֤ξì¹ç¤ò½ü¤¤¤Æ) ·è¤·¤Æ¤½¤ÎÁ°¤Ë¸Æ¤Ó½Ð¤·¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ .Pp °ú¿ô¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£ .Bl -item .It .Fa dev ¤Ï¡¢»ñ¸»¤Î½êÍ­¤òÍ׵᤹¤ë¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ ³ä¤êÅö¤ÆÁ°¤Ï¡¢»ñ¸»¤Ï¿Æ¤Î¥Ð¥¹¤Ë¤è¤Ã¤Æ½êÍ­¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .It .Fa type ¤Ï¡¢³ä¤êÅö¤Æ¤¿¤¤»ñ¸»¤Î·¿¤Ç¤¹¡£ °Ê²¼¤ÎÆâ¤Î 1 ¤Ä¤Ç¤¹¡£ .Bl -tag -width SYS_RES_MEMORY .It Dv SYS_RES_IRQ IRQ ÍÑ¡£ .It Dv SYS_RES_DRQ ISA DMA ¥é¥¤¥óÍÑ¡£ .It Dv SYS_RES_IOPORT Æþ½ÐÎϥݡ¼¥ÈÍÑ¡£ .It Dv SYS_RES_MEMORY Æþ½ÐÎÏ¥á¥â¥êÍÑ¡£ .El .It .Fa rid ¤Ï¡¢³ä¤êÅö¤Æ¤Æ¤¤¤ë»ñ¸»¤ò¼±Ê̤¹¤ë¡¢¥Ð¥¹¸ÇÍ­¤Î¥Ï¥ó¥É¥ë¤ò»Ø¤·¤Þ¤¹¡£ ISA ¤Ç¤Ï¡¢PnP ¤Î»ÅÁȤߤޤ¿¤Ï hints ¤Î»ÅÁȤߤòÄ̤·¤Æ¡¢¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Ë ¥»¥Ã¥È¥¢¥Ã¥×¤µ¤ì¤Æ¤¤¤ë»ñ¸»¤ÎÇÛÎó¤Ø¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤Ç¤¹¡£ PCCARD ¤Ç¤Ï¡¢¤³¤Îʸ¾Ï¤ò½ñ¤¤¤Æ¤¤¤ë¸½»þÅÀ¤Ç¤ÏƱÍͤǤ¹¤¬¡¢ ¾­Íè¤Î newcard ¤Ç¤ÏÊѤï¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ PCI ¤Ç¤Ï¡¢pci ¥³¥ó¥Õ¥£¥°¶õ´Ö¤Ë¤ª¤¤¤Æ¡¢ »ñ¸»¤òµ­½Ò¤¹¤ë¥ï¡¼¥É¤Ø¤Î¥ª¥Õ¥»¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥Ð¥¹¤Î¥á¥½¥Ã¥É¤Ï¡¢°ú¿ô¤È¤·¤ÆÍ¿¤¨¤é¤ì¤Æ¤¤¤ë RID ¤ò̵À©¸Â¤ËÊѹ¹¤·¤Þ¤¹¡£ °ÊÁ°¤ËÍ¿¤¨¤¿»þ¤ÎÃͤ˰͸¤·¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ .It .Fa start ¤ª¤è¤Ó .Fa end ¤Ï»ñ¸»¤Î³«»Ï/½ªÎ»¥¢¥É¥ì¥¹¤Ç¤¹¡£ start ¤Ë .Dv 0 ¤ÎÃͤò end ¤Ë .Dv ~0 ¤ÎÃͤò»ØÄꤷ¤¿¾ì¹ç¤Ë¤Ï¡¢¥Ð¥¹¤Î¤¿¤á¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤ¬·×»»¤µ¤ì¤Þ¤¹¡£ .It .Fa count ¤Ï»ñ¸»¤ÎÂ礭¤µ¤Ç¡¢Î㤨¤Ð¡¢Æþ½ÐÎϥݡ¼¥È¤ÎÂ礭¤µ¤Ç¤¹ (¤³¤ì¤ÏÂçÄñ¡¢PCI ¾å¤Ç¤Ï .Dv 1 ¤Ç¡¢ISA ¤ª¤è¤Ó PCCARD ¾å¤Ç¤Ï¥Ç¥Ð¥¤¥¹°Í¸¤Ç¤¹)¡£ .Fa start ¤ª¤è¤Ó .Fa end ¤Ë¥Ç¥Õ¥©¥ë¥ÈÃͤò»ØÄꤷ¤¿¾ì¹ç¡¢ .Fa count ¤¬¥Ç¥Õ¥©¥ë¥ÈÃͤè¤ê¤â¾®¤µ¤¤¤Ê¤é¤Ð¥Ç¥Õ¥©¥ë¥ÈÃͤ¬»ÈÍѤµ¤ì¡¢ .Fa count ¤¬¥Ç¥Õ¥©¥ë¥ÈÃͰʾå¤Ê¤é¤Ð count ¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ .It .Fa flags ¤Ï»ñ¸»¤Î¤¿¤á¤Î¥Õ¥é¥°¤òÀßÄꤷ¤Þ¤¹¡£ °Ê²¼¤Î¥Õ¥é¥°¤ò 1 ¤Ä°Ê¾åÀßÄê¤Ç¤­¤Þ¤¹¡£ .Bl -tag -width RF_SHAREABLE .It Dv RF_ALLOCATED »ñ¸»¤Ï´û¤ËͽÌó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ »ñ¸»¤Ï°ú³¤­ .Xr rman_activate_resource 9 ¤Ç³èÀ­²½¤µ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ .It Dv RF_ACTIVE ÉÔ²Äʬ¤Ë¡¢»ñ¸»¤ò³èÀ­²½¤·¤Þ¤¹¡£ .It Dv RF_SHAREABLE »ñ¸»¤ÏƱ»þ¶¦Í­¤òµö²Ä¤·¤Þ¤¹¡£ ¤½¤Î»ñ¸»¤¬¶¦Í­ÉԲĤǤ¢¤ë¤³¤È¤òÃΤé¤Ê¤¤¾ì¹ç¡¢¾ï¤ËÀßÄꤵ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ ¥Ð¥¹¤¬¶¦Í­¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ ¤³¤Î¥Õ¥é¥°¤ò¼è¤ê½ü¤¯¤Î¤Ï¥Ð¥¹¤Î¥³¡¼¥É¤Î»Å»ö¤Ç¤¹¡£¤³¤ÎÎã¤È¤·¤Æ¡¢ pccard/cardbus ¤Ç¤Ï¥Ç¥Ð¥¤¥¹¤ò¶¦Í­¤Ç¤­¤ë¤«¤Ç¤­¤Ê¤¤¤«¤Ï¡¢¥Ð¥¹¤Ë°Í¸¤·¤Þ¤¹¡£ .It Dv RF_TIMESHARE »ñ¸»¤Ï»þʬ³ä¶¦Í­¤òµö²Ä¤·¤Þ¤¹¡£ .El .El .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï .Va struct resource ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¥Ì¥ë¥Ý¥¤¥ó¥¿¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh »ÈÍÑÎã ¤³¤ì¤Ï¤¢¤ë¥µ¥ó¥×¥ë¤Î¥³¡¼¥É¤Ç¤¹¡£ .Va portid ¤ª¤è¤Ó .Va irqid ¤ÎÃͤϤ³¤ì¤é¤Î¸Æ¤Ó½Ð¤·¤Î¸å¤Ç¡¢¥Ç¥Ð¥¤¥¹¤Î softc ¤ÎÃæ¤ËÊݸ¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¡£ .Bd -literal struct resource *portres, irqres; int portid, irqid; portid = 0; irqid = 0; portres = bus_alloc_resource(dev, SYS_RES_IOPORT, &portid, 0ul, ~0ul, 32, RF_ACTIVE); irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid, 0ul, ~0ul, 1, RF_ACTIVE | RF_SHAREABLE); .Ed .Sh ´ØÏ¢¹àÌÜ .Xr bus_release_resource 9 , .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Alexander Langer Aq alex@big.endian.de ¤¬½ñ¤­¡¢ÉôʬŪ¤Ë .An Warner Losh Aq imp@FreeBSD.ORG ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_generic_attach.9 b/ja_JP.eucJP/man/man9/bus_generic_attach.9 index 71e2fcb590..bfae9cc5f1 100644 --- a/ja_JP.eucJP/man/man9/bus_generic_attach.9 +++ b/ja_JP.eucJP/man/man9/bus_generic_attach.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_generic_attach.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_generic_attach.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt BUS_GENERIC_ATTACH 9 .Os .Sh ̾¾Î .Nm bus_generic_attach .Nd ¥Ð¥¹¤Î¤¿¤á¤Î .Dv DEVICE_ATTACH ¤Î°ìÈÌŪ¤Ê¼ÂÁõ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn bus_generic_attach "device_t dev" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¤Û¤È¤ó¤É¤Î¥Ð¥¹¤Î¥³¡¼¥É¤Ç»ÈÍѤµ¤ì¤ë¤³¤È¤¬¤Ç¤­¤ë .Xr DEVICE_ATTACH 9 ¥á¥½¥Ã¥É¤Î 1 ¤Ä¤Î¼ÂÁõ¤òÄ󶡤·¤Þ¤¹¡£ ñ½ã¤Ë¡¢¥Ð¥¹¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¤½¤ì¤¾¤ì¤Î»Ò¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ .Xr device_probe_and_attach 9 ¤ò¸Æ¤Ó¤Þ¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ï 0 ¤ò¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_generic_detach.9 b/ja_JP.eucJP/man/man9/bus_generic_detach.9 index 3243b06b9c..d4223750b3 100644 --- a/ja_JP.eucJP/man/man9/bus_generic_detach.9 +++ b/ja_JP.eucJP/man/man9/bus_generic_detach.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_generic_detach.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_generic_detach.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt BUS_GENERIC_DETACH 9 .Os .Sh ̾¾Î .Nm bus_generic_detach .Nd ¥Ð¥¹¤Î¤¿¤á¤Î .Dv DEVICE_DETACH ¤Î°ìÈÌŪ¤Ê¼ÂÁõ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn bus_generic_detach "device_t dev" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¤Û¤È¤ó¤É¤Î¥Ð¥¹¤Î¥³¡¼¥É¤Ç»ÈÍѤµ¤ì¤ë¤³¤È¤¬²Äǽ¤Ê .Xr DEVICE_DETACH 9 ¥á¥½¥Ã¥É¤Î 1 ¤Ä¤Î¼ÂÁõ¤òÄ󶡤·¤Þ¤¹¡£ ¤³¤ì¤Ïñ½ã¤Ë¥Ð¥¹¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë³Æ¡¹¤Î»Ò¥Ç¥Ð¥¤¥¹¤Î .Xr DEVICE_DETACH 9 ¤ò¸Æ¤Ó¤Þ¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ï 0 ¤ò¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_generic_print_child.9 b/ja_JP.eucJP/man/man9/bus_generic_print_child.9 index 07c51a000f..1c4442eb70 100644 --- a/ja_JP.eucJP/man/man9/bus_generic_print_child.9 +++ b/ja_JP.eucJP/man/man9/bus_generic_print_child.9 @@ -1,70 +1,70 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_generic_print_child.9,v 1.5.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_generic_print_child.9,v 1.9 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt BUS_GENERIC_PRINT_CHILD 9 .Os .Sh ̾¾Î .Nm bus_generic_print_child .Nd ¥Ð¥¹¤Î¤¿¤á¤Î .Dv DEVICE_PRINT_CHILD ¤Î°ìÈÌŪ¤Ê¼ÂÁõ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn bus_generic_print_child "device_t dev" "device_t child" .Sh ²òÀâ ¤³¤Î¼ÂÁõ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥Ð¥¤¥¹¥¢¥Ê¥¦¥ó¥¹¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤Þ¤¹¡£ Í¿¤¨¤é¤ì¤¿ 'bar0' ¥Ð¥¹¾å¤Î 'foo0' ¥Ç¥Ð¥¤¥¹¤¬¡¢"FooCard 1234" ¤È¤¤¤¦Ì¾Á°¤Ç¤¢¤ë¤Ê¤é¤Ð¡¢ ²¼µ­¤Î¤è¤¦¤Ë½ÐÎϤµ¤ì¤ë¤Ç¤·¤ç¤¦¡£ .Pp foo0: on bar0 .Pp bus_generic_print_child ¼«¿È¤Ï .Fn bus_print_child_header ¤È .Fn bus_print_child_footer ¤Î 2 ¤Ä¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Ï¤½¤ì¤¾¤ì "foo0: " ¤È "on bar0" ¤Îʸ»ú¤ò½ÐÎϤ·¤Þ¤¹¡£ ¤â¤· .Fn bus_generic_print_child ¤¬¤¢¤Ê¤¿¤ÎÍ×µá¤Ë´°Á´¤Ë¤Ï¹ç¤ï¤Ê¤¤¾ì¹ç¤Ç¤â¡¢ ²Äǽ¤Ç¤¢¤ì¤Ð¤¢¤Ê¤¿¤ÎÆÈ¼«¤Î¥³¡¼¥É¤Ç¤³¤ì¤é¤Î¥ë¡¼¥Á¥ó¤ò»ÈÍѤ¹¤ë¤Ù¤­¤Ç¤¹ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh Ìá¤êÃÍ ½ÐÎϤ·¤¿Ê¸»ú¿ô¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_generic_read_ivar.9 b/ja_JP.eucJP/man/man9/bus_generic_read_ivar.9 index 1335ee1831..0db1e4be73 100644 --- a/ja_JP.eucJP/man/man9/bus_generic_read_ivar.9 +++ b/ja_JP.eucJP/man/man9/bus_generic_read_ivar.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_generic_read_ivar.9,v 1.4.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_generic_read_ivar.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt BUS_GENERIC_READ_IVAR 9 .Os .Sh ̾¾Î .Nm bus_generic_read_ivar , .Nm bus_generic_write_ivar .Nd ¥Ð¥¹¤Î¤¿¤á¤Î .Dv BUS_READ_IVAR ¤ª¤è¤Ó .Dv BUS_WRITE_IVAR ¤Î°ìÈÌŪ¤Ê¼ÂÁõ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn bus_generic_read_ivar "device_t dev" "device_t child" "int index" "uintptr_t *result" .Ft int .Fn bus_generic_write_ivar "device_t dev" "device_t child" "int index" "uintptr_t value" .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤Ïñ½ã¤Ë .Er ENOENT ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_generic_shutdown.9 b/ja_JP.eucJP/man/man9/bus_generic_shutdown.9 index 0266ea3e6c..c13b496bb8 100644 --- a/ja_JP.eucJP/man/man9/bus_generic_shutdown.9 +++ b/ja_JP.eucJP/man/man9/bus_generic_shutdown.9 @@ -1,61 +1,61 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_generic_shutdown.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_generic_shutdown.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt BUS_GENERIC_SHUTDOWN 9 .Os .Sh ̾¾Î .Nm bus_generic_shutdown .Nd ¥Ð¥¹¤Î¤¿¤á¤Î .Dv DEVICE_SHUTDOWN ¤Î°ìÈÌŪ¤Ê¼ÂÁõ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn bus_generic_shutdown "device_t dev" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¡¢¤Û¤È¤ó¤É¤Î¥Ð¥¹¤Î¥³¡¼¥É¤Ç»ÈÍѤµ¤ì¤ë¤³¤È¤¬¤Ç¤­¤ë .Xr DEVICE_SHUTDOWN 9 ¤Î¼ÂÁõ¤òÄ󶡤·¤Þ¤¹¡£ ¤³¤ì¤Ïñ½ã¤Ë¡¢ ¥Ð¥¹¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¤Î»Ò¥Ç¥Ð¥¤¥¹¤½¤ì¤¾¤ì¤Î .Xr DEVICE_SHUTDOWN 9 ¥á¥½¥Ã¥É¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/bus_release_resource.9 b/ja_JP.eucJP/man/man9/bus_release_resource.9 index 06a02f3ed0..69cb5e5a32 100644 --- a/ja_JP.eucJP/man/man9/bus_release_resource.9 +++ b/ja_JP.eucJP/man/man9/bus_release_resource.9 @@ -1,110 +1,110 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 2000 Alexander Langer .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/bus_release_resource.9,v 1.2.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/bus_release_resource.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd May 18, 2000 .Dt BUS_RELEASE_RESOURCE 9 .Os .Sh ̾¾Î .Nm bus_release_resource .Nd ¥Ð¥¹¾å¤Î»ñ¸»¤Î²òÊü .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Pp .In machine/bus.h .In sys/rman.h .In machine/resource.h .Fd #include .Ft int .Fn bus_release_resource "device_t dev" "int type" "int rid" "struct resource *r" .Sh ²òÀâ .Xr bus_alloc_resource 9 ¤Ë¤è¤Ã¤Æ³ä¤êÅö¤Æ¤é¤ì¤¿»ñ¸»¤ò²òÊü¤·¤Þ¤¹¡£ ¤½¤Î»ñ¸»¤Ï²òÊü»þ¤Ë»ÈÍÑÃæ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£ ¤¹¤Ê¤ï¤Á¡¢Å¬Àڤʴؿô (IRQ ¤Î¤¿¤á¤Î .Xr bus_teardown_intr 9 ¤Ê¤É) ¤ò»öÁ°¤Ë¸Æ¤Ó½Ð¤·¤Æ¤¯¤À¤µ¤¤¡£ .Bl -item .It .Fa dev ¤Ï¡¢»ñ¸»¤ò½êÍ­¤·¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ .It .Fa type ¤Ï¡¢²òÊü¤µ¤ì¤ë»ñ¸»¤Î·¿¤Ç¤¹¡£ °ÊÁ°¤Ë³ä¤êÅö¤Æ¤¿»þ¤ÈƱ°ì¤Î·¿¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ Í­¸ú¤Ê·¿¤Ë¤Ä¤¤¤Æ¤Ï .Xr bus_alloc_resource 9 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It .Fa rid ¤Ï¡¢»ñ¸»¤Î»ñ¸»¼±Ê̻ҤǤ¹¡£ .Fa rid ¤Ï .Xr bus_alloc_resource 9 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤¿¼±ÊÌ»Ò¤ÈÆ±°ì¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ .It .Fa r ¤Ï .Va struct resource ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤Ç¡¢¤¹¤Ê¤ï¤Á .Xr bus_alloc_resource 9 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤¿»ñ¸»¤½¤Î¤â¤Î¤Ç¤¹¡£ .El .Sh Ìá¤êÃÍ ¥Ç¥Ð¥¤¥¹ .Fa dev ¤¬¿Æ¤ò»ý¤¿¤Ê¤¤¾ì¹ç¤Ë¤Ï .Er EINVAL ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï .Dv 0 ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ »ñ¸»¤ò²òÊü¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥«¡¼¥Í¥ë¤Ï¥Ñ¥Ë¥Ã¥¯¤¹¤ë¤Ç¤·¤ç¤¦¡£ .Sh »ÈÍÑÎã .Bd -literal /* IRQ ¤ÎÉÔ³èÀ­²½ */ bus_teardown_intr(dev, foosoftc->irqres, foosoftc->irqid); /* IRQ »ñ¸»¤Î²òÊü */ bus_release_resource(dev, SYS_RES_IRQ, foosoftc->irqid, foosoftc->irqres); /* Æþ½ÐÎϥݡ¼¥È¤Î»ñ¸»¤Î²òÊü */ bus_release_resource(dev, SYS_RES_IOPORT, foosoftc->portid, foosoftc->portres); .Ed .Sh ´ØÏ¢¹àÌÜ .Xr bus_alloc_resource 9 , .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Alexander Langer Aq alex@big.endian.de ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/cd.9 b/ja_JP.eucJP/man/man9/cd.9 index 2af97e72a8..3a302d4036 100644 --- a/ja_JP.eucJP/man/man9/cd.9 +++ b/ja_JP.eucJP/man/man9/cd.9 @@ -1,105 +1,105 @@ .\" Copyright (c) 1997 .\" John-Mark Gurney. 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. Neither the name of the author nor the names of any co-contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY John-Mark Gurney 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/cd.9,v 1.11.2.3 2002/04/15 06:06:40 trhodes Exp % +.\" %FreeBSD: src/share/man/man9/cd.9,v 1.17 2002/04/15 06:02:58 trhodes Exp % .\" .\" $FreeBSD$ .Dd October 10, 1998 .Dt CD 9 .Os .Sh ̾¾Î .Nm cd .Nd CAM SCSI ¥µ¥Ö¥·¥¹¥Æ¥à¤Î¤¿¤á¤Î CD-ROM ¥É¥é¥¤¥Ð .Sh ²òÀâ .Nm ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ï CD-ROM ¥É¥é¥¤¥Ö .Tn ( SCSI type 5) ¤ª¤è¤Ó CD-ROM ¥¿¥¤¥×¤Î¥³¥Þ¥ó¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë WORM ¥É¥é¥¤¥Ö .Tn ( SCSI type 4) ¤Î¤¿¤á¤ÎÆÉ¤ß¹þ¤ßÀìÍÑ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£ ´ö¤Ä¤«¤Î¥É¥é¥¤¥Ö¤Ï¡¢¥É¥é¥¤¥Ð¤¬´üÂÔ¤·¤¿¤è¤¦¤Ë¤Ï¿¶Éñ¤¤¤Þ¤»¤ó¡£ »ÈÍѲÄǽ¤Ê¥Õ¥é¥°¤Î¾ðÊó¤Ï¡¢ÊʤξϤò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .Sh ÊÊ ¤½¤ì¤¾¤ì¤Î .Tn CD-ROM ¥Ç¥Ð¥¤¥¹¤Ï¡¢ .Tn SCSI »ÅÍͤò°Û¤Ê¤Ã¤¿¤è¤¦¤Ë²ò¼á¤·ÆÀ¤Þ¤¹¡£ ¤³¤ì¤Ë¤è¤ê¡¢¥É¥é¥¤¥ÐÃæ¤Ç¥É¥é¥¤¥Ö¤òÆÃḚ̂·¤¤¤¹¤ëɬÍ×À­¤¬È¯À¸¤·¤Þ¤¹¡£ ²¼µ­¤Ï¥É¥é¥¤¥Ð¤¬Ç§¼±¤¹¤ëÊʤΥꥹ¥È¤Ç¤¹¡£ .Bl -tag -width CD_Q_BCD_TRACKS .It Dv CD_Q_NO_TOUCH ¤³¤Î¥Õ¥é¥°¤Ï¡¢ ¥Ç¥£¥¹¥¯¤¬¥É¥é¥¤¥Ö¤ÎÃæ¤Ë¤¢¤ë¤«¤È¥µ¥¤¥º¤òÄ´ºº¤¹¤ë¤¿¤á¤Ë¡¢ ¥¢¥¿¥Ã¥Á»þ¤Ë¥×¥í¡¼¥Ö¤·¤Ê¤¤¤è¤¦¥É¥é¥¤¥Ð¤ËÄÌÃΤ·¤Þ¤¹¡£ ¸½ºß¤³¤Î¥Õ¥é¥°¤Ï¡¢CAM ¤Î .Nm ¥É¥é¥¤¥Ð¤Ç¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ .It Dv CD_Q_BCD_TRACKS ¤³¤Î¥Õ¥é¥°¤Ï¡¢Àµ¤·¤¤ 10 ¿Ê¿ô¤Ç¤Ï¤Ê¤¯¥Ñ¥Ã¥¯¤µ¤ì¤¿ BCD ¤Ç¥È¥é¥Ã¥¯ÈÖ¹æ¤òÊÖ¤¹¡¢ ²õ¤ì¤¿¥É¥é¥¤¥ÖÍѤǤ¹¡£ ¥É¥é¥¤¥Ö¤¬¥È¥é¥Ã¥¯¤òÈô¤Ð¤·¤Æ¤¤¤ë (¥È¥é¥Ã¥¯ 10-15 ¤¬Èô¤Ð¤µ¤ì¤ë) ¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¡¢ ¤¢¤Ê¤¿¤Ï¤³¤Î¥Õ¥é¥°¤¬É¬Íפʥɥ饤¥Ö¤ò½êÍ­¤·¤Æ¤¤¤Þ¤¹¡£ .It Dv CD_Q_NO_CHANGER ¤³¤Î¥Õ¥é¥°¤Ï¡¢Åö³º¥É¥é¥¤¥Ö¤¬¥Á¥§¥ó¥¸¥ã¤Ç¤Ï¤Ê¤¤¤³¤È¤ò¡¢¥É¥é¥¤¥Ð¤ËÄÌÃΤ·¤Þ¤¹¡£ ¤³¤ì¤Ï¥Á¥§¥ó¥¸¥ã¤Î°ìÉô¤Ç¤Ï¤Ê¤¤¤¬Ê£¿ô¤Î LUN ¤ò»ý¤Ä CD-ROM ¥Ç¥Ð¥¤¥¹ ¤Ë¤À¤±É¬ÍפǤ¹¡£ .It Dv CD_Q_CHANGER ¤³¤Î¥Õ¥é¥°¤Ï¡¢Í¿¤¨¤é¤ì¤¿¥Ç¥Ð¥¤¥¹¤¬Ê£¿ô¤Î LUN ¤ò»ý¤Ä¥Á¥§¥ó¥¸¥ã¤Ç¤¢¤ë¤³¤È¤ò¡¢ ¥É¥é¥¤¥Ð¤ËÄÌÃΤ·¤Þ¤¹¡£ °ìÈÌŪ¤Ë¤Ï¡¢LUN ¤¬ 0 ¤è¤ê¤âÂ礭¤¤»þ¤Ë¤Ï¡¢¥É¥é¥¤¥Ð¤Ï¤³¤ì¤ò¼«Æ°Åª¤ËÍý²ò¤·¤Þ¤¹¡£ ¤³¤Î¥Õ¥é¥°¤òÀßÄꤹ¤ëÍ£°ì¤Î¸ú²Ì¤Ï¡¢¥Á¥§¥ó¥¸¥ã¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¥³¡¼¥É¤òÄ̤·¤Æ¡¢ ¥Á¥§¥ó¥¸¥ã¤Î LUN 0 ¤ËÂФ·¤Æ½é´ü¤ÎÍÆÎÌÆÉ¤ß¼è¤ê¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤ò¡¢ ¥É¥é¥¤¥Ð¤ËÄÌÃΤ¹¤ë¤³¤È¤Ç¤¹¡£ .El .Sh ´ØÏ¢¥Õ¥¡¥¤¥ë .Bl -tag -width /sys/cam/scsi/scsi_cd.c -compact .It Pa /sys/cam/scsi/scsi_cd.c ¥É¥é¥¤¥Ð¤Î¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Ç¤¹¡£ .El .Sh ´ØÏ¢¹àÌÜ .Xr cd 4 , .Xr scsi 4 .Sh Îò»Ë .Nm ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .Fx 2.2 ¤Ç½é¤á¤ÆÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .An -nosplit ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An John-Mark Gurney Aq gurney_j@efn.org ¤¬½ñ¤­¤Þ¤·¤¿¡£ CAM ¤È .Fx 3.0 ¤Î¤¿¤á¤Ë .An Kenneth Merry Aq ken@FreeBSD.org ¤¬¹¹¿·¤·¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/copy.9 b/ja_JP.eucJP/man/man9/copy.9 index c861ca7536..e35a269c4d 100644 --- a/ja_JP.eucJP/man/man9/copy.9 +++ b/ja_JP.eucJP/man/man9/copy.9 @@ -1,143 +1,143 @@ .\" %NetBSD: copy.9,v 1.2 1996/01/09 03:23:04 thorpej Exp % .\" .\" Copyright (c) 1996 Jason R. Thorpe. .\" All rights reserved. .\" .\" This code is derived from software contributed by Kenneth Stailey. .\" .\" 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 for the NetBSD Project .\" by Jason R. Thorpe. .\" 4. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/copy.9,v 1.6.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/copy.9,v 1.11 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd January 7, 1996 .Dt COPY 9 .Os .Sh ̾¾Î .Nm copy , .Nm copyin , .Nm copyout , .Nm copystr , .Nm copyinstr .\" .Nm copyinstr , .\" .Nm copyoutstr .Nd ¥«¡¼¥Í¥ë¥³¥Ô¡¼´Ø¿ô .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft int .Fn copyin "const void *uaddr" "void *kaddr" "size_t len" .Ft int .Fn copyout "const void *kaddr" "void *uaddr" "size_t len" .Ft int .Fn copystr "const void *kfaddr" "void *kdaddr" "size_t len" "size_t *done" .Ft int .Fn copyinstr "const void *uaddr" "void *kaddr" "size_t len" "size_t *done" .\" .Ft int .\" .Fn copyoutstr "const void *kaddr" "void *uaddr" "size_t len" "size_t *done" .Sh ²òÀâ .Nm ´Ø¿ô·²¤ÏϢ³¤·¤¿¥Ç¡¼¥¿¤ò¤¢¤ë¥¢¥É¥ì¥¹¤«¤é Ê̤Υ¢¥É¥ì¥¹¤Ø¥³¥Ô¡¼¤¹¤ë¤è¤¦¥Ç¥¶¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Fn copystr °Ê³°¤Î´Ø¿ô¤Ï¡¢¥æ¡¼¥¶¡¼¶õ´Ö¤«¤é¥«¡¼¥Í¥ë¶õ´Ö¤Ø¡¢ ¤¢¤ë¤¤¤ÏÈ¿Âиþ¤­¤Ë¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .Pp .Nm ´Ø¿ô·²¤Ï°Ê²¼¤Îµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£ .Bl -tag -width "copyoutstr()" .It Fn copyin ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa uaddr ¤«¤é¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa kaddr ¤Ø .Pa len ¥Ð¥¤¥È¤Î¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .It Fn copyout ¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa kaddr ¤«¤é¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa uaddr ¤Ø .Pa len ¥Ð¥¤¥È¤Î¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .It Fn copystr ¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa kfaddr ¤«¤é¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa kdaddr ¤Ø¥Ì¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿ºÇÂç .Pa len ʸ»ú¤Îʸ»úÎó¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ ËöÈø¤Î¥Ì¥ëʸ»ú¤ò´Þ¤à¼ÂºÝ¤Ë¥³¥Ô¡¼¤µ¤ì¤¿Ê¸»ú¿ô¤¬ .Pa *done ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£ .It Fn copyinstr ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa uaddr ¤«¤é¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa kaddr ¤Ø¥Ì¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿ºÇÂç .Pa len ʸ»ú¤Îʸ»úÎó¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ ËöÈø¤Î¥Ì¥ëʸ»ú¤ò´Þ¤à¼ÂºÝ¤Ë¥³¥Ô¡¼¤µ¤ì¤¿Ê¸»ú¿ô¤¬ .Pa *done ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£ .\" .It Fn copyoutstr .\" ¥«¡¼¥Í¥ë¶õ´Ö¤Î¥¢¥É¥ì¥¹ .\" .Pa kaddr .\" ¤«¤é¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .\" .Pa uaddr .\" ¤Ø¥Ì¥ëʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿ºÇÂç .\" .Pa len .\" ʸ»ú¤Îʸ»úÎó¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .\" ËöÈø¤Î¥Ì¥ëʸ»ú¤ò´Þ¤à¼ÂºÝ¤Ë¥³¥Ô¡¼¤µ¤ì¤¿Ê¸»ú¿ô¤¬ .\" .Pa *done .\" ¤ËÊÖ¤µ¤ì¤Þ¤¹¡£ .El .Sh Ìá¤êÃÍ ¤½¤ì¤¾¤ì¤Î .Nm ´Ø¿ô¤ÏÀ®¸ù¤·¤¿»þ¤Ë 0 ¤ò¡¢ÉÔÀµ¤Ê¥¢¥É¥ì¥¹¤ËÁø¶ø¤·¤¿»þ¤Ë .Er EFAULT ¤òÊÖ¤·¤Þ¤¹¡£ ¤µ¤é¤Ë¡¢ .Fn copystr ¤ª¤è¤Ó .Fn copyinstr .\"¡¢ .\" .Fn copyoutstr ´Ø¿ô¤Ïʸ»úÎó¤¬ .Pa len ¥Ð¥¤¥È¤è¤ê¤âŤ¤»þ¤Ë .Er ENAMETOOLONG ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr fetch 9 , .Xr store 9 diff --git a/ja_JP.eucJP/man/man9/devclass.9 b/ja_JP.eucJP/man/man9/devclass.9 index a7e9eed4dd..dc400bfdaf 100644 --- a/ja_JP.eucJP/man/man9/devclass.9 +++ b/ja_JP.eucJP/man/man9/devclass.9 @@ -1,66 +1,70 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass.9,v 1.4.2.3 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass.9,v 1.8 2001/07/10 15:30:56 ru Exp % .\" -.\" $FreeBSD: doc/ja_JP.eucJP/man/man9/devclass.9,v 1.4 2001/07/29 05:15:42 horikawa Exp $ +.\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS 9 .Os .Sh ̾¾Î .Nm devclass .Nd ¥Ç¥Ð¥¤¥¹¤Î¥¯¥é¥¹¤òɽ¸½¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È .Sh ½ñ¼° .Vt typedef struct devclass *devclass_t ; .Sh ²òÀâ .Dv devclass ¥ª¥Ö¥¸¥§¥¯¥È¤Ï¥·¥¹¥Æ¥à¤Ë 2 ¤Ä¤Î¼ç¤Ê´Ø¿ô¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ 1 ¤ÄÌܤϥǥХ¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Î¥æ¥Ë¥Ã¥ÈÈÖ¹æ³ä¤êÅö¤Æ¤ò´ÉÍý¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¡¢ 2 ¤ÄÌܤϳơ¹¤Î¥Ð¥¹¥¿¥¤¥×¤Î¤¿¤á¤Î¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Î¥ê¥¹¥È¤ò ÊÝ»ý¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹¡£ ¤½¤ì¤¾¤ì¤Î .Dv devclass ¤Ï̾Á°¤ò»ý¤Ã¤Æ¤¤¤Æ¡¢Æ±¤¸Ì¾Á°¤ò»ý¤Ä 2 ¤Ä¤Î devclass ¤Ï¸ºß¤Ç¤­¤Þ¤»¤ó¡£ ¤³¤ì¤Ï°ì°Õ¤Ê¥æ¥Ë¥Ã¥ÈÈֹ椬 ¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¤³¤È¤òÊݾڤ·¤Þ¤¹¡£ +.Pp +¤³¤ì¤Ï¡¢°Û¤Ê¤ë¥Ð¥¹¤ËƱ¤¸¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤òÀܳ¤¹¤ë¤¿¤á¤Ë¡¢ +.Dv devclass +¤¬Æ±¤¸¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤¹¤ë¤³¤È¤Ë¡¢µ¤¤òÉÕ¤±¤Æ¤¯¤À¤µ¤¤¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass_add_driver 9 , .Xr devclass_delete_driver 9 , .Xr devclass_find 9 , .Xr devclass_find_driver 9 , .Xr devclass_get_device 9 , .Xr devclass_get_devices 9 , .Xr devclass_get_maxunit 9 , .Xr devclass_get_name 9 , .Xr devclass_get_softc 9 , .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_add_driver.9 b/ja_JP.eucJP/man/man9/devclass_add_driver.9 index 4aeb6063ff..674d9b25b8 100644 --- a/ja_JP.eucJP/man/man9/devclass_add_driver.9 +++ b/ja_JP.eucJP/man/man9/devclass_add_driver.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_add_driver.9,v 1.3.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_add_driver.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_ADD_DRIVER 9 .Os .Sh ̾¾Î .Nm devclass_add_driver , .Nm devclass_delete_driver , .Nm devclass_find_driver .Nd devclass ¤ÎÃæ¤Î¥É¥é¥¤¥Ð¤ÎÁàºî .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn devclass_add_driver "devclass_t dc" "driver_t *driver" .Ft int .Fn devclass_delete_driver "devclass_t dc" "driver_t *driver" .Ft driver_t * .Fn devclass_find_driver "devclass_t dc" "const char *name" .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¥·¥¹¥Æ¥à¤Ë¿·¤·¤¤¥É¥é¥¤¥Ð¤òÄɲ乤뤿¤á¡¢ ¸Å¤¤¥É¥é¥¤¥Ð¤òºï½ü¤¹¤ë¤¿¤á¡¢ ¤ª¤è¤Ó¸ºß¤·¤Æ¤¤¤ë¥É¥é¥¤¥Ð¤òõ¤¹¤¿¤á¡¢»ÈÍѲÄǽ¤Ç¤¹¡£ Ä̾¥É¥é¥¤¥Ð¤Ï¥·¥¹¥Æ¥à½é´ü²½»þ¤Ë¼«Æ°Åª¤ËÄɲ䵤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_find.9 b/ja_JP.eucJP/man/man9/devclass_find.9 index 9edf9c124a..2a781b4534 100644 --- a/ja_JP.eucJP/man/man9/devclass_find.9 +++ b/ja_JP.eucJP/man/man9/devclass_find.9 @@ -1,57 +1,57 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_find.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_find.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_FIND 9 .Os .Sh ̾¾Î .Nm devclass_find .Nd devclass ¤Î¸¡º÷ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft devclass_t .Fn devclass_find "const char *classname" .Sh ²òÀâ »ØÄꤵ¤ì¤¿Ì¾Á°¤Î .Dv devclass ¤ò¸¡º÷¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ .Dv devclass ¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¤½¤Î devclass ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï .Dv NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_get_device.9 b/ja_JP.eucJP/man/man9/devclass_get_device.9 index 31375dd853..a2c92e42de 100644 --- a/ja_JP.eucJP/man/man9/devclass_get_device.9 +++ b/ja_JP.eucJP/man/man9/devclass_get_device.9 @@ -1,55 +1,55 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_get_device.9,v 1.4.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_get_device.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_GET_DEVICE 9 .Os .Sh ̾¾Î .Nm devclass_get_device .Nd ¥æ¥Ë¥Ã¥ÈÈֹ椫¤é¥Ç¥Ð¥¤¥¹¤Ø¤ÎÊÑ´¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft device_t .Fn devclass_get_device "devclass_t dc" "int unit" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¡¢»ØÄꤵ¤ì¤¿¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Î¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤ò¼è¤ê½Ð¤·¡¢ ¤½¤ì¤òÊÖ¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ ¥Ç¥Ð¥¤¥¹¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤¬ÊÖ¤µ¤ì¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_get_devices.9 b/ja_JP.eucJP/man/man9/devclass_get_devices.9 index 90da099f57..e7c2001f3a 100644 --- a/ja_JP.eucJP/man/man9/devclass_get_devices.9 +++ b/ja_JP.eucJP/man/man9/devclass_get_devices.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_get_devices.9,v 1.4.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_get_devices.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_GET_DEVICES 9 .Os .Sh ̾¾Î .Nm devclass_get_devices .Nd devclass ¤ÎÃæ¤Î¥Ç¥Ð¥¤¥¹¤Î¥ê¥¹¥È¤Î¼è¤ê½Ð¤· .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn devclass_get_devices "devclass_t dc" "device_t **devlistp" "int *devcountp" .Sh ²òÀâ ¸½ºß devclass ¤ÎÃæ¤Ë¤¢¤ëÁ´¤Æ¤Î¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Î¥ê¥¹¥È¤ò¼è¤ê½Ð¤·¡¢ .Fa *devlistp ¤Ë¤½¤Î¥ê¥¹¥È¤ò .Fa *devcountp ¤Ë¤½¤Î¸Ä¿ô¤òÊÖ¤·¤Þ¤¹¡£ ¥ê¥¹¥È¤Î¤¿¤á¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤Ï¡¢ .Fn free "*devlistp" "M_TEMP" ¤òÍѤ¤¤Æ²òÊü¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_get_maxunit.9 b/ja_JP.eucJP/man/man9/devclass_get_maxunit.9 index eff2bc0f54..bb82fc3397 100644 --- a/ja_JP.eucJP/man/man9/devclass_get_maxunit.9 +++ b/ja_JP.eucJP/man/man9/devclass_get_maxunit.9 @@ -1,53 +1,53 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_get_maxunit.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_get_maxunit.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_GET_MAXUNIT 9 .Os .Sh ̾¾Î .Nm devclass_get_maxunit .Nd ¥¯¥é¥¹¤ÎÃæ¤ÎºÇÂç¤Î¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤ò¸¡º÷ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn devclass_get_maxunit "devclass_t dc" .Sh ²òÀâ »ØÄꤵ¤ì¤¿ .Dv devclass ¤ÎÃæ¤Î¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¡¢ºÇÂç¤Î¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_get_name.9 b/ja_JP.eucJP/man/man9/devclass_get_name.9 index c94c16a6f7..15eb56a2aa 100644 --- a/ja_JP.eucJP/man/man9/devclass_get_name.9 +++ b/ja_JP.eucJP/man/man9/devclass_get_name.9 @@ -1,51 +1,51 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_get_name.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_get_name.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_GET_NAME 9 .Os .Sh ̾¾Î .Nm devclass_get_name .Nd devclass ¤Î̾Á°¤ÎÆþ¼ê .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft const char * .Fn devclass_get_name "devclass_t dc" .Sh ²òÀâ devclass ¤Î̾Á°¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devclass_get_softc.9 b/ja_JP.eucJP/man/man9/devclass_get_softc.9 index 4cc2c938e7..338b6b345f 100644 --- a/ja_JP.eucJP/man/man9/devclass_get_softc.9 +++ b/ja_JP.eucJP/man/man9/devclass_get_softc.9 @@ -1,56 +1,56 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/devclass_get_softc.9,v 1.4.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devclass_get_softc.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVCLASS_GET_SOFTC 9 .Os .Sh ̾¾Î .Nm devclass_get_softc .Nd ¥æ¥Ë¥Ã¥ÈÈֹ椫¤é¥É¥é¥¤¥Ð¤Î»äŪ¹½Â¤ÂΤؤÎÊÑ´¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void * .Fn devclass_get_softc "devclass_t dc" "int unit" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¡¢»ØÄꤵ¤ì¤¿¥æ¥Ë¥Ã¥ÈÈֹ椫¤é¡¢ ¤½¤Î¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Î¥É¥é¥¤¥Ð¤Î»äŪ¤Ê¥¤¥ó¥¹¥¿¥ó¥¹ÊÑ¿ô¤ò¼è¤ê½Ð¤·¡¢ ¤½¤ì¤òÊÖ¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ ¤½¤Î¥Ç¥Ð¥¤¥¹¤¬Â¸ºß¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ¤½¤Î¥Ç¥Ð¥¤¥¹¤Î¥É¥é¥¤¥Ð¤Î»äŪ¤ÊÊÑ¿ô¤¬ÊÖ¤µ¤ì¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device.9 b/ja_JP.eucJP/man/man9/device.9 index e449eee4e0..43ec31c53e 100644 --- a/ja_JP.eucJP/man/man9/device.9 +++ b/ja_JP.eucJP/man/man9/device.9 @@ -1,114 +1,114 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device.9,v 1.7.2.4 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/device.9,v 1.13 2002/01/09 11:43:47 mpp Exp % .\" -.\" $FreeBSD: doc/ja_JP.eucJP/man/man9/device.9,v 1.4 2001/07/29 05:15:42 horikawa Exp $ +.\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE 9 .Os .Sh ̾¾Î .Nm device .Nd ¥Ç¥Ð¥¤¥¹¤ÎÃê¾Ýɽ¸½ .Sh ½ñ¼° .Vt typedef struct device *device_t ; .Sh ²òÀ⠥ǥХ¤¥¹¥ª¥Ö¥¸¥§¥¯¥È¤Ï³ÈÄ¥¥«¡¼¥É¡¢¥«¡¼¥É¤¬ÁÞ¤µ¤ì¤ë¥Ð¥¹¡¢³ÈÄ¥¥«¡¼¥É¤ËÀܳ¤µ¤ì¤ë ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤Ê¤É¤Î¥·¥¹¥Æ¥à¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤¿¥Ï¡¼¥É¥¦¥§¥¢¤Î°ìÉô¤òɽ¸½¤·¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤Ï 1 ¤Ä¤Î¥Ç¥Ð¥¤¥¹ .Dv root_bus ¤òÄêµÁ¤·¡¢ ¾¤ÎÁ´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤Ï¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤Î´Ö¤ËưŪ¤ËÀ¸À®¤µ¤ì¤Þ¤¹¡£ Ä̾¥·¥¹¥Æ¥à (ISA, PCI ¤Ê¤É) ¤ÎÃæ¤Î¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥Ð¥¹¤òɽ¸½¤¹¤ë¥Ç¥Ð¥¤¥¹¤Ï¡¢ .Dv root_bus ¤ËľÀÜ¥¢¥¿¥Ã¥Á¤µ¤ì¡¢Â¾¤Î¥Ç¥Ð¥¤¥¹¤Ï¤½¤ì¤é¤ÎŬÀڤʥХ¹¤Î»Ò¤È¤·¤ÆÄɲ䵤ì¤Þ¤¹¡£ .Pp ¥·¥¹¥Æ¥à¤ÎÃæ¤Î¥Ç¥Ð¥¤¥¹¤ÏÌÚ¹½Â¤¤ò·ÁÀ®¤·¤Þ¤¹¡£ .Dv root_bus ¤ò½ü¤¯Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤Ï¿Æ ( .Xr device_get_parent 9 ¤ò»²¾È) ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ²Ã¤¨¤Æ¡¢Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤Ï¤½¤ì¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤ë»Ò ( .Xr device_add_child 9 , .Xr device_add_child_ordered 9 , .Xr device_find_child 9 , .Xr device_get_children 9 , .Xr device_delete_child 9 ¤ò»²¾È) ¤ò»ý¤Ä¤³¤È¤¬²Äǽ¤Ç¤¹¡£ .Pp ¥×¥í¡¼¥Ö¤ËÀ®¸ù¤·¤Æ¥·¥¹¥Æ¥à¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Ï ¥É¥é¥¤¥Ð ( .Xr device_get_driver 9 ¤È .Xr driver 9 ¤ò»²¾È) ¤ª¤è¤Ó¥Ç¥Ð¥¤¥¹¥¯¥é¥¹ ( .Xr device_get_devclass 9 ¤È .Xr devclass 9 ¤ò»²¾È) ¤â»ý¤Á¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ÎÍÍ¡¹¤Ê¾¤Î°À­¤Ï¡¢¥æ¥Ë¥Ã¥ÈÈÖ¹æ ( .Xr device_get_unit 9 ¤ò»²¾È)¡¢ (Ä̾ï¥É¥é¥¤¥Ð¤Ë¤è¤Ã¤Æ¶¡µë¤µ¤ì¤ë) ¾éĹ¤Êµ­½Ò ( .Xr device_set_desc 9 ¤È .Xr device_get_desc 9 ¤ò»²¾È)¡¢ ¥Ð¥¹¸ÇÍ­¤ÎÊÑ¿ô¤ÎÁÈ ( .Xr device_get_ivars 9 ¤ò»²¾È)¡¢ ¤ª¤è¤Ó driver ¸ÇÍ­¤ÎÊÑ¿ô¤ÎÁÈ ( .Xr device_get_softc 9 ¤ò»²¾È) ¤ò´Þ¤ß¤Þ¤¹¡£ .Pp ¥Ç¥Ð¥¤¥¹¤Ï°Ê²¼¤Î´ö¤Ä¤«¤Î¾õÂÖ¤ÎÆâ¤Î 1 ¤Ä¤ò¤È¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£ .Bl -tag -width DS_NOTPRESENT .It Ar DS_NOTPRESENT ¥Ç¥Ð¥¤¥¹¤Ï¸ºß³Îǧ¤Î¥×¥í¡¼¥Ö¤¬¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¡¢¼ºÇÔ¤·¤Þ¤·¤¿¡£ .It Ar DS_ALIVE ¥Ç¥Ð¥¤¥¹¤Î¥×¥í¡¼¥Ö¤Ë¤ÏÀ®¸ù¤·¤Þ¤·¤¿¤¬¡¢¤Þ¤À¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ .It Ar DS_ATTACHED ¥Ç¥Ð¥¤¥¹¤Î¥¢¥¿¥Ã¥Á¤¬À®¸ù¤·¤Þ¤·¤¿¡£ .It Ar DS_BUSY ¥Ç¥Ð¥¤¥¹¤Ï¸½ºß¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .El .Pp ¥Ç¥Ð¥¤¥¹¤Î¸½ºß¤Î¾õÂ֤ϡ¢ .Xr device_get_state 9 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤ê·èÄꤹ¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_add_child.9 b/ja_JP.eucJP/man/man9/device_add_child.9 index 461f9b0974..b1bf1b057b 100644 --- a/ja_JP.eucJP/man/man9/device_add_child.9 +++ b/ja_JP.eucJP/man/man9/device_add_child.9 @@ -1,99 +1,99 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_add_child.9,v 1.8.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_add_child.9,v 1.13 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_ADD_CHILD 9 .Os .Sh ̾¾Î .Nm device_add_child , .Nm device_add_child_ordered .Nd ¸ºß¤·¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Î»Ò¤È¤·¤Æ¿·¤·¤¤¥Ç¥Ð¥¤¥¹¤òÄɲà .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft device_t .Fn device_add_child "device_t dev" "const char *name" "int unit" .Ft device_t .Fn device_add_child_ordered "device_t dev" "int order" "const char *name" "int unit" .Sh ²òÀâ .Fa dev ¤Î¿·¤·¤¤»Ò¥Ç¥Ð¥¤¥¹¤òÄɲä·¤Þ¤¹¡£ .Fa name ¤ª¤è¤Ó .Fa unit °ú¿ô¤Ï¥Ç¥Ð¥¤¥¹¤Î̾Á°¤È¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤ò»ØÄꤷ¤Þ¤¹¡£ ̾Á°¤¬ÉÔÌÀ¤Î¾ì¹ç¤Ë¤Ï¡¢¸Æ¤Ó½Ð¤·Â¦¤Ï .Dv NULL ¤òÅϤ¹¤Ù¤­¤Ç¤¹¡£ ¥æ¥Ë¥Ã¥ÈÈֹ椬ÉÔÌÀ¤Î¾ì¹ç¤Ë¤Ï¡¢¸Æ¤Ó½Ð¤·Â¦¤Ï .Dv -1 ¤òÅϤ¹¤Ù¤­¤Ç¡¢¥·¥¹¥Æ¥à¤Ï¼¡¤Î»ÈÍѲÄǽ¤Ê¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤òÁªÂò¤¹¤ë¤Ç¤·¤ç¤¦¡£ .Pp ¥Ç¥Ð¥¤¥¹¤Î̾Á°¤Ï¡¢¤É¤Î¥É¥é¥¤¥Ð¤¬¤½¤Î¥Ç¥Ð¥¤¥¹¤ËŬÀڤǤ¢¤ë¤«¤ò ·èÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ ̾Á°¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Î̾Á°¤Î¥É¥é¥¤¥Ð¤Î¤ß¤¬¥×¥í¡¼¥Ö¤µ¤ì¤Þ¤¹¡£ ̾Á°¤¬Í¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢ ǧ¼±¤·¤Æ¤¤¤ë¥Ð¥¹¤ÎÁ´¤Æ¤Î¥É¥é¥¤¥Ð¤¬¥×¥í¡¼¥Ö¤µ¤ì¤Þ¤¹¡£ .Pp ¤³¤ì¤Ï¡¢¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤òÆÈ¼«¤Ë¼±Ê̤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¥Ð¥¹ (PCI Åù) ¤¬¡¢ ¸Ä¡¹¤Î¥É¥é¥¤¥Ð¤¬¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤ËŬ¹ç¤·¤Æ¤¤¤ë¤« ¥Á¥§¥Ã¥¯²Äǽ¤Ë¤·¤Þ¤¹¡£ ¶¡µë¤µ¤ì¤¿¥×¥í¡¼¥Ö¥Ò¥ó¥È¤Ë°Í¸¤·¤Æ¡¢ ¤¿¤Ã¤¿ 1 ¤Ä¤Î¥É¥é¥¤¥Ð¤¬¥Ç¥Ð¥¤¥¹¤ò¥×¥í¡¼¥Ö²Äǽ¤Ê¥Ð¥¹¤Ç¤Ï¡¢ ¥É¥é¥¤¥Ð¤Î̾Á°¤Ï¥Ç¥Ð¥¤¥¹¤Î̾Á°¤È¤·¤Æ»ØÄꤵ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Pp Ä̾¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ï¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ»þưŪ¤ËÁªÂò¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ï .Dv -1 ¤¬Í¿¤¨¤é¤ì¤ë¤Ù¤­¤Ç¤¹¡£ »ØÄê¤Î¥æ¥Ë¥Ã¥ÈÈֹ椬´õ˾¤µ¤ì¤¿»þ¤Ë (Î㤨¤Ð¡¢¥Ï¡¼¥É¥¦¥§¥¢¤Î°ìÉôʬ¤ò ¤¢¤é¤«¤¸¤áÀßÄꤵ¤ì¤¿¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ë·ë¤Ó¤Ä¤±¤ë¤¿¤á)¡¢unit ¤ÏÅϤµ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ »ØÄꤵ¤ì¤¿¥æ¥Ë¥Ã¥ÈÈֹ椬´û¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¤Ï¡¢¿·¤·¤¤¥æ¥Ë¥Ã¥ÈÈֹ椬 ³ä¤êÅö¤Æ¤é¤ì¡¢¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ .Pp »ØÄê¤Î½ç½ø¤Ç¥×¥í¡¼¥Ö¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¥Ð¥¹ (Î㤨¤Ð¡¢ISA ¥Ð¥¹ÍѤδö¤Ä¤«¤Î ¥Ç¥Ð¥¤¥¹¤Ï´ØÏ¢¤Î̵¤¤¥É¥é¥¤¥Ð¤Î¥×¥í¡¼¥Ö¤Î»î¤ß¤Î¼ºÇÔ¤ËÉÒ´¶¤Ç¡¢¤½¤ì¤æ¤¨ ºÇ½é¤Ë¥×¥í¡¼¥Ö¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤) ¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Î¾ì¹ç¤Ë¤Ï¡¢ .Xr device_add_child_ordered 9 ¤Î .Fa order °ú¿ô¤¬È¾½ç½ø¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ ¿·¤·¤¤¥Ç¥Ð¥¤¥¹¤Ï¡¢ ´û¸¤Î¤è¤êÂ礭¤¤½ç½ø¤ò»ý¤Ä¤¹¤Ù¤Æ¤Î¥Ç¥Ð¥¤¥¹¤ÎÁ°¤ËÄɲ䵤ì¤Þ¤¹¡£ .Xr device_add_child 9 ¤¬»ÈÍѤµ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢½ç½ø¤¬ 0 ¤Ç¤¢¤ë¤È¤·¤Æ¿·¤·¤¤»Ò¤¬Äɲ䵤ì¤Þ¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï¿·¤·¤¤¥Ç¥Ð¥¤¥¹¤¬¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_delete_child.9 b/ja_JP.eucJP/man/man9/device_delete_child.9 index 91e08840a1..9874d83cdc 100644 --- a/ja_JP.eucJP/man/man9/device_delete_child.9 +++ b/ja_JP.eucJP/man/man9/device_delete_child.9 @@ -1,60 +1,60 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_delete_child.9,v 1.3.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_delete_child.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_DELETE_CHILD 9 .Os .Sh ̾¾Î .Nm device_delete_child .Nd ¥Ç¥Ð¥¤¥¹¤«¤é»Ò¤òºï½ü .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn device_delete_child "device_t dev" "device_t child" .Sh ²òÀâ »ØÄꤵ¤ì¤¿¥Ç¥Ð¥¤¥¹¤ò .Fa dev ¤«¤é¼è¤ê½ü¤­ºï½ü¤·¤Þ¤¹¡£ ¤½¤Î¥Ç¥Ð¥¤¥¹¤¬¸½ºß¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢Àè¤Ë¥Ç¥¿¥Ã¥Á ( .Xr DEVICE_ATTACH 9 ¤ª¤è¤Ó .Xr DEVICE_DETACH 9 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤) ¤µ¤ì¤Þ¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¥¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device_add_child 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_enable.9 b/ja_JP.eucJP/man/man9/device_enable.9 index f429f2b1e4..f523bb3674 100644 --- a/ja_JP.eucJP/man/man9/device_enable.9 +++ b/ja_JP.eucJP/man/man9/device_enable.9 @@ -1,65 +1,65 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_enable.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_enable.9,v 1.7 2002/01/09 11:43:47 mpp Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_ENABLE 9 .Os .Sh ̾¾Î .Nm device_enable , .Nm device_disable , .Nm device_is_enabled .Nd ¥Ç¥Ð¥¤¥¹¤ÎÍ­¸ú¥Õ¥é¥°¤ÎÁàºî .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void .Fn device_enable "device_t dev" .Ft void .Fn device_disable "device_t dev" .Ft int .Fn device_is_enabled "device_t dev" .Sh ²òÀ⠸ġ¹¤Î¥Ç¥Ð¥¤¥¹¤Ï¡¢·ë¤Ó¤Ä¤±¤é¤ì¤¿Í­¸ú¥Õ¥é¥°¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ÏÀ¸À®»þ¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤ÇÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢(Î㤨¤Ð¡¢Ç˲õŪ¤Þ¤¿¤Ï »þ´Ö¤ò¾ÃÈñ¤¹¤ë¥×¥í¡¼¥Ö¤Î»î¤ß¤òËɤ°¤¿¤á¤Ë) ̵¸ú¤Ë¤Ç¤­¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ò̵¸ú¤Ë¤¹¤ë¤Ë¤Ï .Xr device_disable 9 ¤ò¸Æ¤Ó½Ð¤·¡¢ºÆÅÙÍ­¸ú¤Ë¤¹¤ë¤Ë¤Ï .Xr device_enable 9 ¤ò¸Æ¤Ó½Ð¤·¡¢¥Ç¥Ð¥¤¥¹¤¬Í­¸ú¤«¤É¤¦¤«³Îǧ¤¹¤ë¤Ë¤Ï .Xr device_is_enabled 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_find_child.9 b/ja_JP.eucJP/man/man9/device_find_child.9 index a479dabf69..fb6e30d717 100644 --- a/ja_JP.eucJP/man/man9/device_find_child.9 +++ b/ja_JP.eucJP/man/man9/device_find_child.9 @@ -1,58 +1,58 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_find_child.9,v 1.4.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_find_child.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_FIND_CHILD 9 .Os .Sh ̾¾Î .Nm device_find_child .Nd ¥Ç¥Ð¥¤¥¹¤Î»Ò¤Î¸¡º÷ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft device_t .Fn device_find_child "device_t dev" "const char* name" "int unit" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¡¢ .Dv dev ¤Î»Ò¤Ç¡¢ .Fa name ¤ª¤è¤Ó .Fa unit ¤ò»ý¤Ä¤â¤Î¤ò¸¡º÷¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ Â¸ºß¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï»Ò¥Ç¥Ð¥¤¥¹¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device_add_child 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_children.9 b/ja_JP.eucJP/man/man9/device_get_children.9 index 28175bf49a..d3df642a1f 100644 --- a/ja_JP.eucJP/man/man9/device_get_children.9 +++ b/ja_JP.eucJP/man/man9/device_get_children.9 @@ -1,62 +1,62 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_children.9,v 1.1.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_children.9,v 1.4 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd December 1, 1999 .Dt DEVICE_GET_CHILDREN 9 .Os .Sh ̾¾Î .Nm device_get_children .Nd ¥Ç¥Ð¥¤¥¹¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¥Ç¥Ð¥¤¥¹¤Î¥ê¥¹¥È¤Î¼èÆÀ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn device_get_children "device_t dev" "device_t **devlistp" "int *devcountp" .Sh ²òÀâ ¸½ºß .Pa dev ¤ËÀܳ¤µ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Î¥ê¥¹¥È¤ò¼è¤ê½Ð¤·¡¢¤½¤Î¥ê¥¹¥È¤ò .Fa *devlistp ¤Ë¡¢¤½¤Î¸Ä¿ô¤ò .Fa *devcountp ¤ËÆþ¤ì¤ÆÊÖ¤·¤Þ¤¹¡£ ¥ê¥¹¥È¤Î¤¿¤á¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤Ï .Fn free "*devlistp" "M_TEMP" ¤ò»ÈÍѤ·¤Æ²òÊü¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_devclass.9 b/ja_JP.eucJP/man/man9/device_get_devclass.9 index f869ecbbb2..55429bfe57 100644 --- a/ja_JP.eucJP/man/man9/device_get_devclass.9 +++ b/ja_JP.eucJP/man/man9/device_get_devclass.9 @@ -1,54 +1,54 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_devclass.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_devclass.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_DEVCLASS 9 .Os .Sh ̾¾Î .Nm device_get_devclass .Nd ¥Ç¥Ð¥¤¥¹¤Î¥Ç¥Ð¥¤¥¹¥¯¥é¥¹¤Ø¤Î¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft devclass_t .Fn device_get_devclass "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Ë´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¸½ºß¤Î¥Ç¥Ð¥¤¥¹¥¯¥é¥¹¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬¥Ç¥Ð¥¤¥¹¥¯¥é¥¹¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ .Dv NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_driver.9 b/ja_JP.eucJP/man/man9/device_get_driver.9 index 266faa1e32..f012035c6e 100644 --- a/ja_JP.eucJP/man/man9/device_get_driver.9 +++ b/ja_JP.eucJP/man/man9/device_get_driver.9 @@ -1,54 +1,54 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_driver.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_driver.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_DRIVER 9 .Os .Sh ̾¾Î .Nm device_get_driver .Nd ¥Ç¥Ð¥¤¥¹¤Î¥É¥é¥¤¥Ð¤Ø¤Î¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft driver_t * .Fn device_get_driver "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Ë´ØÏ¢¤Å¤±¤é¤ì¤Æ¤¤¤ë¸½ºß¤Î¥É¥é¥¤¥Ð¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬¥É¥é¥¤¥Ð¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ .Dv NULL ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_ivars.9 b/ja_JP.eucJP/man/man9/device_get_ivars.9 index 14d8e4a7f6..5cc99733a8 100644 --- a/ja_JP.eucJP/man/man9/device_get_ivars.9 +++ b/ja_JP.eucJP/man/man9/device_get_ivars.9 @@ -1,50 +1,50 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_ivars.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_ivars.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_IVARS 9 .Os .Sh ̾¾Î .Nm device_get_ivars .Nd ¥Ð¥¹¤Î»äŪÊÑ¿ô¤Ø¤Î¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void * .Fn device_get_ivars "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Î¥Ð¥¹¸ÇÍ­¤Î¥¤¥ó¥¹¥¿¥ó¥¹ÊÑ¿ô¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_softc.9 b/ja_JP.eucJP/man/man9/device_get_softc.9 index 3b6be87c97..353a71a29e 100644 --- a/ja_JP.eucJP/man/man9/device_get_softc.9 +++ b/ja_JP.eucJP/man/man9/device_get_softc.9 @@ -1,52 +1,52 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_softc.9,v 1.3.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_softc.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_SOFTC 9 .Os .Sh ̾¾Î .Nm device_get_softc .Nd ¥É¥é¥¤¥Ð¤Î»äŪ¤Ê¥¤¥ó¥¹¥¿¥ó¥¹ÊÑ¿ô¤Ø¤Î¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void * .Fn device_get_softc "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Î¥É¥é¥¤¥Ð¸ÇÍ­¤Î¥¤¥ó¥¹¥¿¥ó¥¹ÊÑ¿ô¤òÊÖ¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ ¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥¤¥ó¥¹¥¿¥ó¥¹ÊÑ¿ô¤Ø¤Î¥Ý¥¤¥ó¥¿¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_state.9 b/ja_JP.eucJP/man/man9/device_get_state.9 index e8f286d248..3e7210d042 100644 --- a/ja_JP.eucJP/man/man9/device_get_state.9 +++ b/ja_JP.eucJP/man/man9/device_get_state.9 @@ -1,95 +1,95 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_state.9,v 1.3.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_state.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_STATE 9 .Os .Sh ̾¾Î .Nm device_get_state , .Nm device_busy , .Nm device_unbusy , .Nm device_is_alive .Nd ¥Ç¥Ð¥¤¥¹¾õÂÖ¤ÎÁàºî .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft device_state_t .Fn device_get_state "device_t dev" .Ft void .Fn device_busy "device_t dev" .Ft void .Fn device_unbusy "device_t dev" .Ft int .Fn device_is_alive "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Î¸½ºß¤Î¾õÂ֤ϡ¢ .Dv DS_NOTPRESENT , .Dv DS_ALIVE , .Dv DS_ATTACHED , .Dv DS_BUSY ( .Xr device 9 ¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤Þ¤¹) ¤òÊÖ¤¹ .Xr device_get_state 9 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ¥¢¥¯¥»¥¹¤µ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬¤¦¤Þ¤¯¥×¥í¡¼¥Ö¤µ¤ì¤¿¤³¤È¤ò³Îǧ¤¹¤ë¤Ë¤Ï¡¢Ã±½ã¤Ë¾õÂÖ¤¬ .Dv DS_ALIVE °Ê¾å¤Ç¤¢¤ë¤«¤É¤¦¤«¤òÊÖ¤¹ .Xr device_is_alive 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .Pp ¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤Ï¡¢ .Xr device_busy 9 ¤¬¸Æ¤Ó½Ð¤µ¤ì¤¿»þ¤Ë¥¤¥ó¥¯¥ê¥á¥ó¥È¤µ¤ì¡¢ .Xr device_unbusy 9 ¤¬¸Æ¤Ó½Ð¤µ¤ì¤¿»þ¤Ë¥Ç¥¯¥ê¥á¥ó¥È¤µ¤ì¤ë¥Ó¥¸¡¼¥«¥¦¥ó¥È¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤É¤Á¤é¤Î¥ë¡¼¥Á¥ó¤â¥Ç¥Ð¥¤¥¹¤Î¾õÂÖ¤¬ .Dv DS_ATTACHED ¤è¤ê¾®¤µ¤¤¾ì¹ç¤Ë¤Ï¥¨¥é¡¼¤òÊÖ¤·¤Þ¤¹¡£ .Pp ¥Ç¥Ð¥¤¥¹¤¬ .Dv DS_ATTACHED ¾õÂÖ¤Ç .Xr device_busy 9 ¤¬¸Æ¤Ó½Ð¤µ¤ì¤¿»þ¤Ë¤Ï¡¢¥Ç¥Ð¥¤¥¹¤Ï .Dv DS_BUSY ¾õÂÖ¤ËÁ«°Ü¤·¤Þ¤¹¡£ .Xr device_unbusy 9 ¤¬¸Æ¤Ó½Ð¤µ¤ì¤Ç¥Ç¥¯¥ê¥á¥ó¥È¤µ¤ì¤¿¸å¤Ë¥Ç¥Ð¥¤¥¹¤Î¥Ó¥¸¡¼¥«¥¦¥ó¥È¤¬ 0 ¤Ê¤é¤Ð¡¢ ¥Ç¥Ð¥¤¥¹¤Ï .Dv DS_ATTACHED ¾õÂÖ¤ËÁ«°Ü¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_get_unit.9 b/ja_JP.eucJP/man/man9/device_get_unit.9 index 919cf74be4..a785ceb5e7 100644 --- a/ja_JP.eucJP/man/man9/device_get_unit.9 +++ b/ja_JP.eucJP/man/man9/device_get_unit.9 @@ -1,50 +1,50 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_get_unit.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_get_unit.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_GET_UNIT 9 .Os .Sh ̾¾Î .Nm device_get_unit .Nd ¥Ç¥Ð¥¤¥¹¤Î¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ø¤Î¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn device_get_unit "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Î¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_probe_and_attach.9 b/ja_JP.eucJP/man/man9/device_probe_and_attach.9 index 43abc89836..9b499d6a79 100644 --- a/ja_JP.eucJP/man/man9/device_probe_and_attach.9 +++ b/ja_JP.eucJP/man/man9/device_probe_and_attach.9 @@ -1,61 +1,61 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_probe_and_attach.9,v 1.3.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_probe_and_attach.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_PROBE_AND_ATTACH 9 .Os .Sh ̾¾Î .Nm device_probe_and_attach .Nd ¥Ç¥Ð¥¤¥¹¤Î½é´ü²½ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft int .Fn device_probe_and_attach "device_t dev" .Sh ²òÀâ ¤³¤Î´Ø¿ô¤Ï¡¢¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤Î´Ö¤Ë¸Æ¤Ó½Ð¤µ¤ì¡¢ ¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥¤¥¹¤ò½é´ü²½¤·¤Þ¤¹¡£ ¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ¡¢Å¬Àڤʥɥ饤¥Ð¤Î .Xr DEVICE_PROBE 9 ¥á¥½¥Ã¥É¤¬¸Æ¤Ó½Ð¤µ¤ì¡¢¥×¥í¡¼¥Ö¤ËÀ®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¥Ç¥Ð¥¤¥¹¤Îµ­½Ò¤¬É½¼¨¤µ¤ì¡¢ .Xr DEVICE_ATTACH 9 ¥á¥½¥Ã¥É¤¬¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ .Xr device_disable 9 ¤ò»ÈÍѤ·¤Æ¥Ç¥Ð¥¤¥¹¤¬Ìµ¸ú¤Ë¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥×¥í¡¼¥Ö¤µ¤ì¤Þ¤»¤ó¡£ .Sh Ìá¤êÃÍ À®¸ù»þ¤Ë¤Ï 0 ¤¬ÊÖ¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤ÏŬÀڤʥ¨¥é¡¼¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 , .Xr driver 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_quiet.9 b/ja_JP.eucJP/man/man9/device_quiet.9 index 77e4a5e38b..ae7ab86725 100644 --- a/ja_JP.eucJP/man/man9/device_quiet.9 +++ b/ja_JP.eucJP/man/man9/device_quiet.9 @@ -1,68 +1,68 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_quiet.9,v 1.3.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_quiet.9,v 1.8 2002/01/09 11:43:47 mpp Exp % .\" .\" $FreeBSD$ .Dd June 21, 1999 .Dt DEVICE_QUIET 9 .Os .Sh ̾¾Î .Nm device_quiet , .Nm device_verbose , .Nm device_is_quiet .Nd ¥Ç¥Ð¥¤¥¹¤ÎÄÀÌۥե饰¤ÎÁàºî .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void .Fn device_quiet "device_t dev" .Ft void .Fn device_verbose "device_t dev" .Ft int .Fn device_is_quiet "device_t dev" .Sh ²òÀ⠸ġ¹¤Î¥Ç¥Ð¥¤¥¹¤Ï·ë¤Ó¤Ä¤±¤é¤ì¤¿ÄÀÌۥե饰¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ÏÀ¸À®»þ¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¾éŤǤ¹¤¬¡¢¥×¥í¡¼¥ÖÃæ¤Ë ¥Ç¥Ð¥¤¥¹¼±ÊÌʸ»úÎó¤Î½ÐÎϤò˸¤²¤ë¤¿¤á¤Ë¡¢ÄÀÌÛ¤µ¤»¤é¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤òÄÀÌÛ¤µ¤»¤ë¤Ë¤Ï .Xr device_quiet 9 ¤ò¸Æ¤Ó½Ð¤·¡¢¥×¥í¡¼¥Ö¥á¥Ã¥»¡¼¥¸¤òºÆÅÙÍ­¸ú (Î㤨¤Ð .Xr device_detach 9 ¤Î¸å¤Ë¡¢¥á¥Ã¥»¡¼¥¸¤¬ºÆ¤Ó¸½¤ì¤ë¤è¤¦¤Ë¤·¤Þ¤¹) ¤Ë¤¹¤ë¤Ë¤Ï .Xr device_verbose 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬ÄÀÌÛ¾õÂÖ¤«¤É¤¦¤«¤ò³Îǧ¤¹¤ë¤¿¤á¤Ë¤Ï .Xr device_is_quiet 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_set_desc.9 b/ja_JP.eucJP/man/man9/device_set_desc.9 index 337dd09cd1..92a83a4a9a 100644 --- a/ja_JP.eucJP/man/man9/device_set_desc.9 +++ b/ja_JP.eucJP/man/man9/device_set_desc.9 @@ -1,65 +1,65 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_set_desc.9,v 1.5.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_set_desc.9,v 1.8 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd June 16, 1998 .Dt DEVICE_SET_DESC 9 .Os .Sh ̾¾Î .Nm device_set_desc , .Nm device_set_desc_copy , .Nm device_get_desc .Nd ¥Ç¥Ð¥¤¥¹¤Îµ­½Ò¤Ë¥¢¥¯¥»¥¹ .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void .Fn device_set_desc "device_t dev" "const char *desc" .Ft void .Fn device_set_desc_copy "device_t dev" "const char *desc" .Ft const char * .Fn device_get_desc "device_t dev" .Sh ²òÀ⠥ǥХ¤¥¹¤Î¾éĹ¤Êµ­½Ò¤òÁàºî¤·¤Þ¤¹¡£ (¸ºß¤¹¤ë¤Ê¤é¤Ð) ¤³¤Îµ­½Ò¤Ï¡¢ ¼«Æ°¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¤Î´Ö¤Î¥¢¥¿¥Ã¥Á»þ¤Ë¡¢ ¥á¥Ã¥»¡¼¥¸¤Î°ìÉô¤È¤·¤ÆÉ½¼¨¤µ¤ì¤Þ¤¹¡£ ÊѼï¤Î .Xr device_set_desc_copy 9 ¤Ï¡¢ÅϤµ¤ì¤ëʸ»úÎ󤬾å½ñ¤­¤µ¤ì¤ë¤«¤âÃΤì¤Ê¤¤°ì»þŪ¤Ê¥Ð¥Ã¥Õ¥¡¤Ç¤¢¤ë¾ì¹ç¤Ë¡¢ »ÈÍѤµ¤ì¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ë¤Ï¥·¥¹¥Æ¥à¤Ï¤½¤Îʸ»úÎó¤ò¥³¥Ô¡¼¤·¤Þ¤¹¤¬¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤ÏÅϤµ¤ì¤¿¥Ý¥¤¥ó¥¿¤¬Ä¾ÀÜ»ÈÍѤµ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/device_set_flags.9 b/ja_JP.eucJP/man/man9/device_set_flags.9 index e8ac547e7c..6b9c2eb879 100644 --- a/ja_JP.eucJP/man/man9/device_set_flags.9 +++ b/ja_JP.eucJP/man/man9/device_set_flags.9 @@ -1,59 +1,59 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1999 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/device_set_flags.9,v 1.1.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/device_set_flags.9,v 1.6 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd September 6, 1999 .Dt DEVICE_GET_FLAGS 9 .Os .Sh ̾¾Î .Nm device_set_flags , .Nm device_get_flags .Nd ¥É¥é¥¤¥Ð¥Õ¥é¥°¤ÎÁàºî .Sh ½ñ¼° .In sys/param.h .In sys/bus.h .Ft void .Fn device_set_flags "device_t dev" "u_int32_t flags" .Ft u_int32_t .Fn device_get_flags "device_t dev" .Sh ²òÀ⠸ġ¹¤Î¥Ç¥Ð¥¤¥¹¤Ï¡¢¥Ç¥Ð¥¤¥¹¤Î¿¶Éñ¤¤¤òÀ©¸æ¤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë ¥É¥é¥¤¥Ð°Í¸¤Î¥Õ¥é¥°¤ÎÁȤò¡¢¤·¤Ð¤·¤Ð¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥Õ¥é¥°¤Ï .Xr device_get_flags 9 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤ÆÆÉ¤ß¹þ¤Þ¤ì¡¢ .Xr device_set_flags 9 ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ½ñ¤­¹þ¤Þ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr device 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/devstat.9 b/ja_JP.eucJP/man/man9/devstat.9 index 14e1c72dd7..5eccb02bed 100644 --- a/ja_JP.eucJP/man/man9/devstat.9 +++ b/ja_JP.eucJP/man/man9/devstat.9 @@ -1,431 +1,431 @@ .\" .\" Copyright (c) 1998, 1999 Kenneth D. Merry. .\" 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. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/devstat.9,v 1.10.2.5 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devstat.9,v 1.18 2002/01/09 11:43:47 mpp Exp % .\" .\" $FreeBSD$ .Dd May 22, 1998 .Dt DEVSTAT 9 .Os .Sh ̾¾Î .Nm devstat , .Nm devstat_add_entry , .Nm devstat_end_transaction , -.Nm devstat_end_transaction_buf , +.Nm devstat_end_transaction_bio , .Nm devstat_remove_entry , .Nm devstat_start_transaction .Nd ¥Ç¥Ð¥¤¥¹Åý·×¤Îµ­Ï¿¤Î¤¿¤á¤Î¥«¡¼¥Í¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹ .Sh ½ñ¼° .In sys/devicestat.h .Ft void .Fo devstat_add_entry .Fa "struct devstat *ds" .Fa "const char *dev_name" .Fa "int unit_number" .Fa "u_int32_t block_size" .Fa "devstat_support_flags flags" .Fa "devstat_type_flags device_type" .Fa "devstat_priority priority" .Fc .Ft void .Fn devstat_remove_entry "struct devstat *ds" .Ft void .Fn devstat_start_transaction "struct devstat *ds" .Ft void .Fo devstat_end_transaction .Fa "struct devstat *ds" .Fa "u_int32_t bytes" .Fa "devstat_tag_type tag_type" .Fa "devstat_trans_flags flags" .Fc .Ft void -.Fo devstat_end_transaction_buf +.Fo devstat_end_transaction_bio .Fa "struct devstat *ds" -.Fa "struct buf *bp" +.Fa "struct bio *bp" .Fc .Sh ²òÀâ devstat ¥µ¥Ö¥·¥¹¥Æ¥à¤Ï¡¢¤½¤Î̾¾Î¤¬°Å¼¨¤¹¤ëÍͤˡ¢ ¥Ç¥Ð¥¤¥¹Åý·×¤òµ­Ï¿¤¹¤ë¤¿¤á¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤¹¡£ ¤³¤ÎÌÜŪ¤Ï¡¢Å¬Å٤˾ܺ٤ÊÅý·×¾ðÊó¤òµ­Ï¿¤·¤Ä¤Ä¡¢ µ­Ï¿¤Ë»ÈÍѤ¹¤ë CPU »þ´Ö¤òºÇ¾®¤È¤¹¤ë¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£ ½¾¤Ã¤Æ¡¢ .Nm ¤Î¥³¡¼¥É¤Î¥«¡¼¥Í¥ëÆâ¤ÎÉôʬ¤Ç¤Ï¡¢¼ÂºÝ¤ÎÅý·×Ū¤Ê·×»»¤Ï¹Ô¤Ê¤ï¤ì¤Æ¤¤¤Þ¤»¤ó¡£ Âå¤ï¤ê¤Ë¡¢¤³¤ì¤Ï¥æ¡¼¥¶¥×¥í¥°¥é¥à¤¬¼è¤ê°·¤¦¤è¤¦¤Ë»Ä¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Pp .Fn devstat_add_entry ¤Ï .Nm ¥µ¥Ö¥·¥¹¥Æ¥à¤Ë¥Ç¥Ð¥¤¥¹¤òÅÐÏ¿¤·¤Þ¤¹¡£ ¸Æ¤Ó½Ð¤·Â¦¤Ï¤³¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤ÎÁ°¤Ë¡¢´û¤Ë³äÅö¤Æ¤é¤ì \fB0 ¤Ç¥¯¥ê¥¢ ¤µ¤ì¤¿\fR devstat ¹½Â¤ÂΤò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤ò´üÂÔ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Fn devstat_add_entry ¤Ï´ö¤Ä¤«¤Î°ú¿ô¤ò¼è¤ê¤Þ¤¹¡£ .Bl -tag -width device_type .It ds ¥¯¥é¥¤¥¢¥ó¥È¤Ë¤è¤Ã¤Æ³äÅö¤Æ¤é¤ì 0 ¤Ç¥¯¥ê¥¢¤µ¤ì¤¿¡¢ .Va devstat ¹½Â¤ÂΤǤ¹¡£ .It dev_name ¥Ç¥Ð¥¤¥¹¤Î̾Á°¤Ç¤¹¡£Î㤨¤Ð da, cd, sa ¤Ç¤¹¡£ .It unit_number ¥Ç¥Ð¥¤¥¹¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ç¤¹¡£ .It block_size ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ç¥Ð¥¤¥¹¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ç¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï .Nm ¥ê¥¹¥È¤Ë¤½¤Î¥Ç¥Ð¥¤¥¹¤¬Äɲ䵤ì¤ë»þÅÀ¤Ç¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬È½¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ 0 ¤ËÀßÄꤵ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .It flags ¥Ç¥Ð¥¤¥¹¤Ë¤è¤Ã¤ÆÁàºî¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¤ò¼¨¤¹ ¥Õ¥é¥°¤Ç¤¹¡£¾ÜºÙ¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It device_type ¥Ç¥Ð¥¤¥¹¤Î·¿¤Ç¤¹¡£ ¤³¤ì¤Ï 3 ¤Ä¤ÎÉôʬ¡¢´ðËÜŪ¤Ê¥Ç¥Ð¥¤¥¹¤Î·¿ (Î㤨¤Ð¡¢Ä¾ÀÜ¥¢¥¯¥»¥¹¡¢CDROM¡¢ ½ç¼¡¥¢¥¯¥»¥¹)¡¢¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î·¿ (IDE, SCSI ¤Þ¤¿¤Ï¤½¤Î¾) ¤ª¤è¤Ó Ä̲᤹¤ë¥Ç¥Ð¥¤¥¹¤ò¼¨¤¹¤¿¤á¤Î¥Ñ¥¹¥¹¥ë¡¼¥Õ¥é¥°¤Ë¡¢Ê¬³ä¤µ¤ì¤Þ¤¹¡£ ´°Á´¤Ê·¿¤Î¥ê¥¹¥È¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It priority ¥Ç¥Ð¥¤¥¹¤ÎÍ¥ÀèÅ٤Ǥ¹¡£ Í¥ÀèÅ٤ϥǥХ¤¥¹¤Î .Nm devstat ¥ê¥¹¥È¤ÎÃæ¤Ç¤É¤Î¤è¤¦¤Ë¥Ç¥Ð¥¤¥¹¤òʤÓÂØ¤¨¤ë¤«¤ò·èÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤ÏºÇ½é¤ËÍ¥ÀèÅÙ (¹â¤¤Êý¤«¤éÄ㤤Êý) ¤Ë¤è¤Ã¤Æ¡¢ ¤½¤ì¤«¤é¥¢¥¿¥Ã¥Á¤µ¤ì¤¿½çÈ֤ˤè¤Ã¤ÆÊ¤ÓÂØ¤¨¤é¤ì¤Þ¤¹¡£ ÍøÍѲÄǽ¤ÊÍ¥ÀèÅ٤δ°Á´¤Ê¥ê¥¹¥È¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .El .Pp .Fn devstat_remove_entry ¤Ï .Nm ¥µ¥Ö¥·¥¹¥Æ¥à¤«¤é¥Ç¥Ð¥¤¥¹¤òºï½ü¤·¤Þ¤¹¡£ ¤³¤ì¤Ï°ú¿ô¤È¤·¤ÆÅö¤Î¥Ç¥Ð¥¤¥¹¤Î devstat ¹½Â¤ÂΤò¼è¤ê¤Þ¤¹¡£ .Nm À¤ÂåÈÖ¹æ¤ÏÁý¤ä¤µ¤ì¥Ç¥Ð¥¤¥¹¤Î¿ô¤Ï¸º¤é¤µ¤ì¤Þ¤¹¡£ .Pp .Fn devstat_start_transaction ¤Ï .Nm ¥µ¥Ö¥·¥¹¥Æ¥à¤Ë½èÍý¤Î³«»Ï¤òÅÐÏ¿¤·¤Þ¤¹¡£ ¸Ä¡¹¤Î½èÍý¤Î³«»Ï¤Ç¥Ó¥¸¡¼¥«¥¦¥ó¥È¤¬Áý¤ä¤µ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬¥¢¥¤¥É¥ë¤«¤é¥Ó¥¸¡¼¤Ë°Ü¤Ã¤¿¤È¤­¤Ë¤Ï¡¢¥·¥¹¥Æ¥à uptime ¤¬ .Va devstat ¹½Â¤ÂΤΠ.Va start_time ¥Õ¥£¡¼¥ë¥É¤Ëµ­Ï¿¤µ¤ì¤Þ¤¹¡£ .Pp .Fn devstat_end_transaction ¤Ï .Nm ¥µ¥Ö¥·¥¹¥Æ¥à¤Ë½èÍý¤Î½ªÎ»¤òÅÐÏ¿¤·¤Þ¤¹¡£ ¤³¤ì¤Ï 4 ¤Ä¤Î°ú¿ô¤ò¼è¤ê¤Þ¤¹¡£ .Bl -tag -width tag_type .It ds Åö¤Î¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Î .Va devstat ¹½Â¤ÂΤǤ¹¡£ .It bytes ¤³¤Î½èÍý¤ÇžÁ÷¤µ¤ì¤¿¥Ð¥¤¥È¿ô¤Ç¤¹¡£ .It tag_type ½èÍý¤Î¥¿¥°¤Î·¿¤Ç¤¹¡£¥¿¥°¤Î·¿¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It flags ¤½¤Î½èÍý¤¬ÆÉ¹þ¤ß¤À¤Ã¤¿¤Î¤«¡¢½ñ¹þ¤ß¤À¤Ã¤¿¤Î¤«¡¢ ¤Þ¤¿¤ÏžÁ÷¤µ¤ì¤¿¥Ç¡¼¥¿¤¬¤Ê¤«¤Ã¤¿¤Î¤«¤ò¼¨¤¹½èÍý¥Õ¥é¥°¤Ç¤¹¡£ .El .Pp -.Fn devstat_end_transaction_buf +.Fn devstat_end_transaction_bio ¤Ï¡¢biodone() ¤Î½àÈ÷¤¬À°¤Ã¤Æ¤¤¤ë -.Va "struct buf" +.Va "struct bio" ¤«¤é¤¹¤Ù¤Æ¤Î¾ðÊó¤ò°ú¤­½Ð¤¹¤¿¤á¤Î¡¢ .Fn devstat_end_transaction ¤Î¤¿¤á¤Î¥é¥Ã¥Ñ¤Ç¤¹¡£ .Pp .Va devstat ¹½Â¤ÂΤϰʲ¼¤Î¥Õ¥£¡¼¥ë¥É¤Ç¹½À®¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Bl -tag -width dev_creation_time .It dev_links ¸Ä¡¹¤Î .Va devstat ¤ÏÅÐÏ¿¤µ¤ì¤¿¤È¤­¤Ë¥ê¥ó¥¯¤µ¤ì¤¿¥ê¥¹¥È¤ËÃÖ¤«¤ì¤Þ¤¹¡£ .Va dev_links ¥Õ¥£¡¼¥ë¥É¤Ë¤Ï .Va devstat ¹½Â¤ÂΤΥꥹ¥È¤ÎÃæ¤Î¼¡¤Î¥¨¥ó¥È¥ê¤Ø¤Î¥Ý¥¤¥ó¥¿¤¬Æþ¤ê¤Þ¤¹¡£ .It device_number ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ï¡¢¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Î°ì°Õ¤Ê¼±Ê̻ҤǤ¹¡£ ¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ï¡¢¸Ä¡¹¤Î¿·¤·¤¤¥Ç¥Ð¥¤¥¹¤¬ÅÐÏ¿¤µ¤ì¤ë¤´¤È¤ËÁý¤ä¤µ¤ì¤Þ¤¹¡£ ¸½ºß¤Ï¥Ç¥Ð¥¤¥¹ÈÖ¹æ¤Ïñ¤Ê¤ë 32 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤¹¤¬¡¢40 ²¯¸Ä¤òͤ¨¤ë ¥Ç¥Ð¥¤¥¹ÅþÃ奤¥Ù¥ó¥È¤ò»ý¤Ä¥·¥¹¥Æ¥à¤¬¤¢¤ì¤Ð¡¢³ÈÄ¥¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ .It device_name ¥Ç¥Ð¥¤¥¹Ì¾¾Î¤Ï¥É¥é¥¤¥ÐÅÐÏ¿¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤ëʸ»úÎó¤Ç¤¢¤ê¡¢ ¼«Ê¬¼«¿È¤ò¼±Ê̤¹¤ë¤¿¤á¤Ë»ÈÍѤǤ­¤Þ¤¹ (Î㤨¤Ð .Dq da , .Dq cd , .Dq sa , ¤Ê¤É)¡£ .It unit_number ¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤ÏÅö¤Î¼þÊÕÁõÃ֤Υɥ饤¥ÐÆÃÍ­¤Î¼ÂÂΤò¼±Ê̤·¤Þ¤¹¡£ .It bytes_written ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Ë´û¤Ë½ñ¹þ¤Þ¤ì¤¿¥Ð¥¤¥È¿ô¤Ç¤¹¡£ ¤³¤Î¿ô¤Ï¸½ºß¤ÏÉ乿¤Ê¤· 64 ¥Ó¥Ã¥ÈÀ°¿ô¤Ç¤¹¡£ 32 ¥Ó¥Ã¥È¤ÎÀ°¿ô¤ò»È¤Ã¤¿¾ì¹ç¤Ë¤Ï¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ¤Ï¤¹¤°¤Ë¥«¥¦¥ó¥¿¤¬ °ì²ó¤ê¤·¤Æ¤·¤Þ¤¦¤È¤¤¤¦ÌäÂê¤ò¡¢¤³¤ì¤Ë¤è¤ê²óÈò¤Ç¤­¤ë¤È´üÂÔ¤·¤Æ¤¤¤Þ¤¹¡£ .It bytes_read ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤«¤é´û¤ËÆÉ¹þ¤Þ¤ì¤¿¥Ð¥¤¥È¿ô¤Ç¤¹¡£ .It bytes_freed ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¾å¤Î´û¤Ë²òÊü/¾Ãµî¤µ¤ì¤¿¥Ð¥¤¥È¿ô¤Ç¤¹¡£ .It num_reads ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤«¤é¤ÎÆÉ¹þ¤ß²ó¿ô¤Ç¤¹¡£ .It num_writes ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Ø¤Î½ñ¹þ¤ß²ó¿ô¤Ç¤¹¡£ .It num_frees ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¾å¤Î²òÊü/¾ÃµîÁàºî¤Î²ó¿ô¤Ç¤¹¡£ .It num_other ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Ø¤ÎÆÉ¹þ¤ß¤Ç¤â½ñ¹þ¤ß¤Ç¤â¤Ê¤¤½èÍý¤Î²ó¿ô¤Ç¤¹¡£ Î㤨¤Ð¡¢ .Tn SCSI ¥É¥é¥¤¥Ð¤Ï¤·¤Ð¤·¤Ð¥Æ¥¹¥È¥æ¥Ë¥Ã¥È¥ì¥Ç¥£¥³¥Þ¥ó¥É¤ò .Tn SCSI ¥Ç¥Ð¥¤¥¹¤ËÁ÷¤ê¤Þ¤¹¡£ ¤½¤Î¥Æ¥¹¥È¥æ¥Ë¥Ã¥È¥ì¥Ç¥£¥³¥Þ¥ó¥É¤Ï¥Ç¡¼¥¿¤òÁ´¤¯ÆÉ¹þ¤ß¤Þ¤¿¤Ï½ñ¹þ¤ß¤Þ¤»¤ó¡£ ¤³¤ì¤Ïñ¤Ë¤½¤Î¾õÂÖ¤òÊÖ¤µ¤»¤ë¤À¤±¤Ë¤¹¤®¤Þ¤»¤ó¡£ .It busy_count ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Î¤¿¤á¤Î¸½ºß̤²ò·è¤Î½èÍý¤Î¿ô¤Ç¤¹¡£ ¤³¤ì¤Ï 0 ¤ò·è¤·¤Æ²¼²ó¤ë¤Ù¤­¤Ç¤Ï¤Ê¤¯¡¢¥¢¥¤¥É¥ë¤Î¥Ç¥Ð¥¤¥¹¤Ç¤Ï 0 ¤Ë¤Ê¤ë¤Ù¤­¤Ç¤¹¡£ ¤³¤ì¤é¤Î¾õÂ֤Τ¤¤º¤ì¤«¤¬¿¿¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥¯¥é¥¤¥¢¥ó¥È¤Î¥³¡¼¥É¤Î .Fn devstat_start_transaction ¤È .Fn devstat_end_transaction ¤Î¸Æ¤Ó½Ð¤·Êý¤ËÌäÂ꤬¤¢¤ë¤³¤È¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£ ¸Ä¡¹¤Î½èÍý¤Ë¤Ï¤¿¤À 1 ¤Ä¤Î½èÍý³«»Ï¥¤¥Ù¥ó¥È¤¬¤¢¤ë¤Ù¤­¤Ç¤¢¤ê¡¢ ³Æ½èÍý¤ËÂФ·¤Æ 1 ¤Ä¤Î½èÍý½ªÎ»¥¤¥Ù¥ó¥È¤¬¤¢¤ë¤Ù¤­¤Ç¤¹¡£ .It block_size ¤½¤Î¥Ç¥Ð¥¤¥¹¤¬¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ç¤¹¡£ .It tag_types ¤³¤ì¤Ï¥Ç¥Ð¥¤¥¹¤ËÁ÷¤é¤ì¤¿ÍÍ¡¹¤Ê¥¿¥°¤Î·¿¤Î¿ô¤òµ­Ï¿¤¹¤ë¤¿¤á¤Î ¥«¥¦¥ó¥¿¤ÎÇÛÎó¤Ç¤¹¡£ ¥¿¥°¤Î·¿¤Î¥ê¥¹¥È¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It dev_creation_time ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤¬ÅÐÏ¿¤µ¤ì¤¿¤È¤­¤Î .Fn getmicrotime ¤Ë¤è¤Ã¤ÆÊó¹ð¤µ¤ì¤ë»þ´Ö¤Ç¤¹ .It busy_time ¤³¤ì¤Ï¡¢¥Ç¥Ð¥¤¥¹¤Î¥Ó¥¸¡¼¥«¥¦¥ó¥È¤¬ 0 ¤è¤êÂ礭¤«¤Ã¤¿»þ´Ö¤ÎÎ̤Ǥ¹¡£ ¤³¤ì¤Ï¥Ó¥¸¡¼¥«¥¦¥ó¥È¤¬ 0 ¤ËÌá¤Ã¤¿¤È¤­¤Ë¤Î¤ß¹¹¿·¤µ¤ì¤Þ¤¹¡£ .It start_time ¤³¤ì¤Ï¤½¤Î¥Ç¥Ð¥¤¥¹¤Î¥Ó¥¸¡¼¥«¥¦¥ó¥È¤¬ 0 ¤«¤é 1 ¤Ë°Ü¤Ã¤¿¤È¤­¤Î .Fn getmicrouptime ¤Ë¤è¤Ã¤ÆÊó¹ð¤µ¤ì¤ë»þ´Ö¤Ç¤¹ .It last_comp_time ¤³¤ì¤Ï½èÍý¤¬´°Á´¤Ë½ª¤ï¤Ã¤¿¤È¤­¤Î .Fn getmicrouptime ¤Ë¤è¤Ã¤ÆÊó¹ð¤µ¤ì¤ë»þ´Ö¤Ç¤¹ ¤³¤ì¤Ï¥Ç¥Ð¥¤¥¹¥Ó¥¸¡¼»þ´Ö¤ò·×»»¤¹¤ë¤¿¤á¤Ë .Va start_time ¤È°ì½ï¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ .It flags ¤³¤ì¤é¤Î¥Õ¥é¥°¤Ï¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤Ë¤è¤Ã¤Æ¡¢¤É¤ÎÅý·×¬Ä꤬¥µ¥Ý¡¼¥È ¤µ¤ì¤Æ¤¤¤ë¤Î¤«¤ò¼¨¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥Õ¥é¥°¤ÏËÜÍè¤Ï¡¢Åý·×¤ò²òÆÉ¤¹¤ë¥æ¡¼¥¶Â¦¤Î¥×¥í¥°¥é¥à¤ÎÊä½õ¤È¤·¤Æ Ư¤¯¤³¤È¤ò°Õ¿Þ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .It device_type ¤³¤ì¤Ï¥Ç¥Ð¥¤¥¹¤Î·¿¤Ç¤¹¡£¤³¤ì¤Ï 3 ¤Ä¤ÎÉôʬ¤«¤é¹½À®¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤Î·¿ (Î㤨¤Ð¡¢Ä¾ÀÜ¥¢¥¯¥»¥¹¡¢CDROM¡¢½ç¼¡¥¢¥¯¥»¥¹¡¢¤Ê¤É)¡¢ ¥¤¥ó¥¿¥Õ¥§¡¼¥¹ (IDE, SCSI ¤Þ¤¿¤Ï¤½¤Î¾) ¤ª¤è¤ÓÅö¤Î¥Ç¥Ð¥¤¥¹¤¬ ¥Ñ¥¹¥¹¥ë¡¼¥É¥é¥¤¥Ð¤Ç¤¢¤ë¤«¤É¤¦¤«¡¢¤Ç¤¹¡£ ¥Ç¥Ð¥¤¥¹¤Î·¿¤Î´°Á´¤Ê¥ê¥¹¥È¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .It priority ¤³¤ì¤ÏÍ¥ÀèÅ٤Ǥ¹¡£¤³¤ì¤Ï¥Ç¥Ð¥¤¥¹¤ò .Nm ¥ê¥¹¥È¤Î²¿½è¤ËÁÞÆþ¤¹¤ë¤Î¤«¤ò·èÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ëºÇ½é¤Î¥Ñ¥é¥á¡¼¥¿¤Ç¤¹¡£ 2 ÈÖÌܤΥѥé¥á¡¼¥¿¤Ï¥¢¥¿¥Ã¥Á¤Î½çÈ֤Ǥ¹¡£ ÍøÍѲÄǽ¤ÊÍ¥ÀèÅ٤Υꥹ¥È¤Ï°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ .El .Pp ¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤Ï¥Ç¥Ð¥¤¥¹¤Î·¿¤¬Í¿¤¨¤é¤ì¤Þ¤¹¡£¥Ñ¥¹¥¹¥ë¡¼¥Ç¥Ð¥¤¥¹¤Ï ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¶¡µë¤¹¤ë¤¿¤á¤Î¥Ç¥Ð¥¤¥¹¤ÈƱ¤¸´ðÁÃŪ¤Ê¥Ç¥Ð¥¤¥¹¤Î·¿¤È ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ý¤Á¤Þ¤¹¤¬¡¢¥Ñ¥¹¥¹¥ë¡¼¥Õ¥é¥°¤âÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£ ´ðËܤΥǥХ¤¥¹¤Î·¿¤Ï .Tn SCSI ¤Î¥Ç¥Ð¥¤¥¹·¿ÈÖ¹æ¤È°ìÃפ·¤Æ¤¤¤Þ¤¹¡£¤½¤Î¤¿¤á .Tn SCSI ¼þÊÕÁõÃ֤Ǥϡ¢Ìä¹ç¤»¤«¤éÊÖ¤µ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Î·¿¤Ï¡¢Ä̾ .Tn SCSI ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î·¿¤È¤â¤·Å¬ÀڤǤ¢¤ì¤Ð¥Ñ¥¹¥¹¥ë¡¼¥Õ¥é¥°¤Ç OR ¤µ¤ì¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤Î·¿¤Î¥Õ¥é¥°¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bd -literal -offset indent typedef enum { DEVSTAT_TYPE_DIRECT = 0x000, DEVSTAT_TYPE_SEQUENTIAL = 0x001, DEVSTAT_TYPE_PRINTER = 0x002, DEVSTAT_TYPE_PROCESSOR = 0x003, DEVSTAT_TYPE_WORM = 0x004, DEVSTAT_TYPE_CDROM = 0x005, DEVSTAT_TYPE_SCANNER = 0x006, DEVSTAT_TYPE_OPTICAL = 0x007, DEVSTAT_TYPE_CHANGER = 0x008, DEVSTAT_TYPE_COMM = 0x009, DEVSTAT_TYPE_ASC0 = 0x00a, DEVSTAT_TYPE_ASC1 = 0x00b, DEVSTAT_TYPE_STORARRAY = 0x00c, DEVSTAT_TYPE_ENCLOSURE = 0x00d, DEVSTAT_TYPE_FLOPPY = 0x00e, DEVSTAT_TYPE_MASK = 0x00f, DEVSTAT_TYPE_IF_SCSI = 0x010, DEVSTAT_TYPE_IF_IDE = 0x020, DEVSTAT_TYPE_IF_OTHER = 0x030, DEVSTAT_TYPE_IF_MASK = 0x0f0, DEVSTAT_TYPE_PASS = 0x100 } devstat_type_flags; .Ed .Pp ¥Ç¥Ð¥¤¥¹¤Ï¤½¤ì¤é¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿Í¥ÀèÅÙ¤ò»ý¤Ã¤Æ¤¤¤Æ¡¢ .Nm ¥ê¥¹¥È¤Î¤ª¤ª¤è¤½²¿½è¤ËÃÖ¤«¤ì¤ë¤Î¤«¤òÀ©¸æ¤·¤Þ¤¹¡£ Í¥ÀèÅ٤ϰʲ¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bd -literal -offset indent typedef enum { DEVSTAT_PRIORITY_MIN = 0x000, DEVSTAT_PRIORITY_OTHER = 0x020, DEVSTAT_PRIORITY_PASS = 0x030, DEVSTAT_PRIORITY_FD = 0x040, DEVSTAT_PRIORITY_WFD = 0x050, DEVSTAT_PRIORITY_TAPE = 0x060, DEVSTAT_PRIORITY_CD = 0x090, DEVSTAT_PRIORITY_DISK = 0x110, DEVSTAT_PRIORITY_ARRAY = 0x120, DEVSTAT_PRIORITY_MAX = 0xfff } devstat_priority; .Ed .Pp ¸Ä¡¹¤Î¥Ç¥Ð¥¤¥¹¤Ï²¿¤ÎÁàºî¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤«¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤«¤ò¼¨¤¹¡¢ ¤½¤ì¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿¥Õ¥é¥°¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ .Va devstat_support_flags ¤ÎÃͤϰʲ¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bl -tag -width DEVSTAT_NO_ORDERED_TAGS .It DEVSTAT_ALL_SUPPORTED ¥Ç¥Ð¥¤¥¹¤Ë¤è¤Ã¤ÆÁ´¤Æ¤ÎÅý·×¤Î·¿¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .It DEVSTAT_NO_BLOCKSIZE ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò»ý¤Ã¤Æ¤¤¤Þ¤»¤ó¡£ .It DEVSTAT_NO_ORDERED_TAGS ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ï½ç½ø¥¿¥° (ordered tag) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó¡£ .It DEVSTAT_BS_UNAVAILABLE ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ï¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¸½ºß¤ÏÍøÍѤǤ­¤Þ¤»¤ó¡£ ¤³¤Î¥Õ¥é¥°¤Ï¥ê¥à¡¼¥Ð¥Ö¥ë¥á¥Ç¥£¥¢¤Î¥É¥é¥¤¥Ð¤Ç¤è¤¯»ÈÍѤµ¤ì¤Þ¤¹¡£ .El .Pp ¥Ç¥Ð¥¤¥¹¤Ø¤Î½èÍý¤Ï 3 ¤Ä¤Î¥«¥Æ¥´¥ê¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤ËʬÎव¤ì¤Þ¤¹¡£ ¤³¤ì¤Ï .Fn devstat_end_transaction ¤ØÅϤµ¤ì¤ë .Va flags ¤Ëɽ¸½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ½èÍý¤Î·¿¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bd -literal -offset indent typedef enum { DEVSTAT_NO_DATA = 0x00, DEVSTAT_READ = 0x01, DEVSTAT_WRITE = 0x02, DEVSTAT_FREE = 0x03 } devstat_trans_flags; .Ed .Pp .Fn devstat_end_transaction ¤Î .Va tag_type °ú¿ô¤Ë¤Ï¡¢¼¡¤Î 4 ¤Ä¤ÎÃͤò»ØÄê²Äǽ¤Ç¤¹: .Bl -tag -width DEVSTAT_TAG_ORDERED .It DEVSTAT_TAG_SIMPLE ¤½¤Î½èÍý¤Ïñ½ã¤Ê¥¿¥°¤ò»ý¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ .It DEVSTAT_TAG_HEAD ¤³¤Î½èÍý¤Ï¥­¥å¡¼¥¿¥°¤ÎÀèÆ¬¤ò»ý¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ .It DEVSTAT_TAG_ORDERED ¤½¤Î½èÍý¤Ï½ç½ø¥¿¥°¤ò»ý¤Ã¤Æ¤¤¤Þ¤·¤¿¡£ .It DEVSTAT_TAG_NONE ¤½¤Î¥Ç¥Ð¥¤¥¹¤Ï¥¿¥°¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤»¤ó¡£ .El .Pp ¥¿¥°¤Î·¿¤ÎÃÍ¤Ï .Tn SCSI ¤Î¥¿¥°¤ÎÄêµÁ¤Î²¼°Ì 4 ¥Ó¥Ã¥È¤È°ìÃפ·¤Æ¤¤¤Þ¤¹¡£ Î㤨¤Ð CAM ¤Ç¤Ï¡¢ CCB ¤Î .Va tag_action ¤¬ 0xf ¤È OR ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢ .Fn devstat_end_transaction ¤ËÅϤ¹¥¿¥°¤Î·¿¤òȽÄꤷ¤Þ¤¹¡£ .\" AND ¤¸¤ã¤Ê¤¤¤Î¡© .Pp .Aq sys/devicestat.h ¤Ç .Dv DEVSTAT_VERSION ¥Þ¥¯¥í¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï .Nm ¥µ¥Ö¥·¥¹¥Æ¥à¤Î¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¡¢ .Nm Åý·×¤Ë¥¢¥¯¥»¥¹¤¹¤ë¥æ¡¼¥¶Â¦¥×¥í¥°¥é¥à¤ÎºÆ¥³¥ó¥Ñ¥¤¥ë¤¬Í׵ᤵ¤ì¤ëÊѹ¹¤Î¤¿¤Ó¤Ë¡¢ Áý¤ä¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ ¥æ¡¼¥¶Â¦¥×¥í¥°¥é¥à¤Ï¡¢¥«¡¼¥Í¥ë¤Î .Nm ¹½Â¤ÂÎ¤ÈÆ±´ü¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò·èÄꤹ¤ë¤¿¤á¤Ë¡¢ .Va kern.devstat.version .Nm sysctl ÊÑ¿ô¤òÄ̤·¤Æ¤³¤Î¥Ð¡¼¥¸¥ç¥ó¤ò»ÈÍѤ·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr systat 1 , .Xr devstat 3 , .Xr iostat 8 , .Xr rpc.rstatd 8 , .Xr vmstat 8 .Sh Îò»Ë .Nm Åý·×¥·¥¹¥Æ¥à¤Ï .Fx 3.0 ¤ÇÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .An Kenneth Merry Aq ken@FreeBSD.org .Sh ¥Ð¥° .Nm ¥ê¥¹¥ÈÁàºî¥³¡¼¥É¼þ¤ê¤Ç .Fn spl ÊݸɬÍפ«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤ì¤Ï¡¢Î㤨¤Ð狼¤¬ .Va kern.devstat.all .Nm sysctl ÊÑ¿ô¤ò¼è¤ê½Ð¤·¤Æ¤¤¤ë´Ö¤Ë¡¢¥Ç¥Ð¥¤¥¹¤Î¥ê¥¹¥È¤¬Êѹ¹¤µ¤ì¤Ê¤¤¤³¤È¤ò Êݾڤ¹¤ë¤¿¤á¤Ç¤¹¡£ .Pp ¸½ºß¤Î .Nm ¤Î¹½Â¤¤Ç¤ÏÀµ³Î¤Ë½èÍýËè¤Î»þ´Ö¤ò¬Äꤹ¤ë¤³¤È¤¬ÉÔ²Äǽ¤Ç¤¹¡£ Í£°ì¤Î¾å¼ê¤¯¤¤¤­¤½¤¦¤Ê½èÍýËè¤ÎÀµ³Î¤Ê»þ´Ö¬Äê¤ÎÊýË¡¤Ï¡¢ ½èÍýËè¤Ë¥¿¥¤¥à¥¹¥¿¥ó¥×¤òµ­Ï¿¤¹¤ë¤³¤È¤Ç¤¹¡£ ¥·¥¹¥Æ¥à¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ª¤è¤Ó³Æ¸Ä¤Î½èÍý¤Î¤¿¤á¤Ë¥¿¥¤¥à¥¹¥¿¥ó¥×¤ò Êݸ¤¹¤ë¤¿¤á¤Î¶õ´Ö¥³¥¹¥È¤ËÉé¤Î±Æ¶Á¤òÍ¿¤¨¤ë¤¿¤á¡¢ ¤³¤Î¬Äê¤Ï¶²¤é¤¯¤ÏËØ¤ó¤É¤Î¿Í¡¹¤Ë¤Ï²ÁÃͤΤʤ¤¤³¤È¤Ç¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/devtoname.9 b/ja_JP.eucJP/man/man9/devtoname.9 index a372e79635..035318b43e 100644 --- a/ja_JP.eucJP/man/man9/devtoname.9 +++ b/ja_JP.eucJP/man/man9/devtoname.9 @@ -1,57 +1,57 @@ .\" Copyright (c) 1999 Chris Costello .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/devtoname.9,v 1.2.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/devtoname.9,v 1.7 2001/10/01 16:09:24 ru Exp % .\" .\" $FreeBSD$ .Dd September 25, 1999 .Os .Dt DEVTONAME 9 .Sh ̾¾Î .Nm devtoname .Nd dev_t ¥Ç¡¼¥¿¤ò¥Ç¥Ð¥¤¥¹Ì¾¤ò¼¨¤¹Ê¸»úÎó¤ËÊÑ´¹ .Sh ½ñ¼° -.In sys/types.h +.In sys/param.h .In sys/conf.h .Ft const char * .Fn devtoname "dev_t dev" .Sh ²òÀâ .Fn devtoname ´Ø¿ô¤Ï¡¢ÅϤµ¤ì¤¿¥Ç¥Ð¥¤¥¹¤Î̾Á°¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£ ̾Á°¤Ï .Fn make_dev ¤ÇÀßÄꤵ¤ì¤¿¤â¤Î¤Ç¤¹¡£ .Va dev ¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿Ì¾Á°¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï¡¢ .Dq # ¤È¤½¤ì¤Ë³¤¯ .Va dev ¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë .Dq Va ¥á¥¸¥ã¡¼ Ns / Ns Va ¥Þ¥¤¥ÊÈÖ¹æ ¤Ç¹½À®¤µ¤ì¤ëʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh Îò»Ë .Fn devtoname ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï .Fx 4.0 ¤Ç½é¤á¤ÆÅо줷¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/driver.9 b/ja_JP.eucJP/man/man9/driver.9 index a4f0b023ea..b5cae761d1 100644 --- a/ja_JP.eucJP/man/man9/driver.9 +++ b/ja_JP.eucJP/man/man9/driver.9 @@ -1,110 +1,114 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1998 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/driver.9,v 1.3.2.3 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/driver.9,v 1.9 2002/10/01 23:35:33 dd Exp % .\" -.\" $FreeBSD: doc/ja_JP.eucJP/man/man9/driver.9,v 1.3 2001/07/23 02:27:01 horikawa Exp $ +.\" $FreeBSD$ .Dd June 16, 1998 .Dt DRIVER 9 .Os .Sh ̾¾Î .Nm driver .Nd ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤òµ­½Ò¤¹¤ë¹½Â¤ÂÎ .Sh ½ñ¼° .Bd -literal #include #include static int foo_probe(device_t); static int foo_attach(device_t); static int foo_detach(device_t); static int foo_frob(device_t, int, int); static int foo_twiddle(device_t, char *); -static struct device_method foo_methods[] = { +static struct device_method_t foo_methods[] = { /* ¥Ç¥Ð¥¤¥¹¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤«¤é¤Î¥á¥½¥Ã¥É */ DEVMETHOD(device_probe, foo_probe), DEVMETHOD(device_attach, foo_attach), DEVMETHOD(device_detach, foo_detach), /* bogo ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤«¤é¤Î¥á¥½¥Ã¥É */ DEVMETHOD(bogo_frob, foo_frob), DEVMETHOD(bogo_twiddle, foo_twiddle), /* ¥á¥½¥Ã¥É¥ê¥¹¥È¤Î½ªÃ¼ */ { 0, 0 } }; static driver_t foo_driver { "foo", foo_methods, - DRIVER_TYPE_MISC, - sizeof(struct foo_softc), + sizeof(struct foo_softc) }; static devclass_t foo_devclass; DRIVER_MODULE(foo, bogo, foo_driver, foo_devclass, 0, 0); .Ed .Sh ²òÀâ ¥«¡¼¥Í¥ë¤ÎÃæ¤Î¸Ä¡¹¤Î¥É¥é¥¤¥Ð¤Ï .Dv driver_t ¹½Â¤ÂΤˤè¤Ã¤Æµ­½Ò¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¹½Â¤ÂΤϥǥХ¤¥¹¤Î̾¾Î¡¢¥á¥½¥Ã¥É¤Î¥ê¥¹¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢ ¥É¥é¥¤¥Ð¤¬¼ÂÁõ¤·¤¿¥Ç¥Ð¥¤¥¹¤Î¼ïÎà¤Îɽ¼¨¡¢ ¤ª¤è¤Ó¥É¥é¥¤¥Ð¤¬¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Ë´ØÏ¢ÉÕ¤±¤ë¤¿¤á¤ËɬÍפʻäŪ¥Ç¡¼¥¿¤ÎÂ礭¤µ ¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£ ³Æ¡¹¤Î¥É¥é¥¤¥Ð¤Ï 1 ¤Ä°Ê¾å¤Î (¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È¸Æ¤Ð¤ì¤ë) ¥á¥½¥Ã¥É¤ÎÁȤò ¼ÂÁõ¤·¤Þ¤¹¡£ ¾åµ­¤ÎÎã¤Î¥É¥é¥¤¥Ð¤Ïɸ½à¤Î "driver" ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È ²¾ÁÛŪ¤Ê "bogo" ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¼ÂÁõ¤·¤Æ¤¤¤Þ¤¹¡£ .Pp ¥É¥é¥¤¥Ð¤¬ ( .Dv DRIVER_MODULE ¥Þ¥¯¥í¤Ë¤è¤Ã¤Æ¡¢ .Xr DRIVER_MODULE 9 ¤ò»²¾È) ¥·¥¹¥Æ¥à¤ËÅÐÏ¿¤µ¤ì¤ë»þ¤Ë¡¢ ¤½¤Î¿Æ¤Î¥Ð¥¹¥¿¥¤¥×¤Î devclass ¤ÎÃæ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë ¥É¥é¥¤¥Ð¤Î¥ê¥¹¥È¤ËÄɲ䵤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢Á´¤Æ¤Î PCI ¥É¥é¥¤¥Ð¤Ï "pci" ¤È̾ÉÕ¤±¤é¤ì¤¿ devclass ¤Ë´Þ¤Þ¤ì¡¢ Á´¤Æ¤Î ISA ¥É¥é¥¤¥Ð¤Ï "isa" ¤È̾ÉÕ¤±¤é¤ì¤¿ devclass ¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£ ¥É¥é¥¤¥Ð¤¬¿Æ¤Î¥Ð¥¹¤Î¥Ç¥Ð¥¤¥¹¥ª¥Ö¥¸¥§¥¯¥È¤ÎÃæ¤ËÊÝ»ý¤µ¤ì¤Ê¤¤Íýͳ¤Ï¡¢ Í¿¤¨¤é¤ì¤¿¥Ð¥¹¤Î¥¿¥¤¥×¤ÎÊ£¿ô¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤ò¼è¤ê°·¤¦¤¿¤á¤Ç¤¹¡£ .Dv DRIVER_MODULE ¥Þ¥¯¥í¤Ï¤½¤Î¥É¥é¥¤¥Ð¤Î̾Á°¤Î devclass ¤âÀ¸À®¤·¤Þ¤¹¡£ ºÇ¸å¤Î 2 ¤Ä¤Î°ú¿ô¤È¤·¤ÆÄɲäΥ⥸¥å¡¼¥ë¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤È¤½¤Î°ú¿ô¤ò Í¿¤¨¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ ¥ª¥×¥·¥ç¥ó¤Ç¥É¥é¥¤¥Ð¤ÎÄɲäνé´ü²½¥³¡¼¥É¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr devclass 9 , .Xr device 9 , +.Xr DEVICE_ATTACH 9 , +.Xr DEVICE_DETACH 9 , +.Xr DEVICE_IDENTIFY 9 , +.Xr DEVICE_PROBE 9 , +.Xr DEVICE_SHUTDOWN 9 , .Xr DRIVER_MODULE 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/fetch.9 b/ja_JP.eucJP/man/man9/fetch.9 index 6489c0f10d..d93c335607 100644 --- a/ja_JP.eucJP/man/man9/fetch.9 +++ b/ja_JP.eucJP/man/man9/fetch.9 @@ -1,91 +1,91 @@ .\" %NetBSD: fetch.9,v 1.2 1996/01/09 21:59:24 perry Exp % .\" .\" Copyright (c) 1996 Jason R. Thorpe. .\" All rights reserved. .\" .\" This code is derived from software contributed by Kenneth Stailey. .\" .\" 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 for the NetBSD Project .\" by Jason R. Thorpe. .\" 4. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/fetch.9,v 1.6.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/fetch.9,v 1.10 2001/10/01 16:09:24 ru Exp % .\" $FreeBSD$ .\" .Dd January 7, 1996 .Dt FETCH 9 .Os .Sh ̾¾Î .Nm fetch , .Nm fubyte , .Nm fusword , .Nm fuswintr , .Nm fuword .Nd ¥æ¡¼¥¶¡¼¶õ´Ö¤«¤é¤Î¥Ç¡¼¥¿¤Î¼è¤ê½Ð¤· .Sh ½ñ¼° .In sys/types.h .In sys/time.h .In sys/systm.h .In sys/resourcevar.h .Ft int .Fn fubyte "const void *base" .Ft int .Fn fusword "void *base" .Ft int .Fn fuswintr "void *base" .Ft long .Fn fuword "const void *base" .Sh ²òÀâ .Nm ´Ø¿ô·²¤Ï¥æ¡¼¥¶¡¼¶õ´Ö¤«¤é¾®¤µ¤Ê¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤¹¤ë¤è¤¦¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Pp .Nm ¥ë¡¼¥Á¥ó¤Ï°Ê²¼¤Îµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£ .Bl -tag -width "fuswintr()" .It Fn fubyte ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤«¤é 1 ¥Ð¥¤¥È¤Î¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£ .It Fn fusword ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤«¤é 1 ¥·¥ç¡¼¥È¥ï¡¼¥É¤Î¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£ .It Fn fuswintr ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤«¤é 1 ¥·¥ç¡¼¥È¥ï¡¼¥É¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£ ¤³¤Î´Ø¿ô¤Ï³ä¤ê¹þ¤ß¥³¥ó¥Æ¥­¥¹¥ÈÃæ¤Ç¤â°ÂÁ´¤Ë¸Æ¤Ó½Ð¤»¤Þ¤¹¡£ .It Fn fuword ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤«¤é 1 ¥ï¡¼¥É¤Î¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Þ¤¹¡£ .El .Sh Ìá¤êÃÍ .Nm ´Ø¿ô¤Ï¼è¤ê½Ð¤·¤¿¥Ç¡¼¥¿¤òÊÖ¤·¤Þ¤¹¤¬¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ï -1 ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr copy 9 , .Xr store 9 diff --git a/ja_JP.eucJP/man/man9/inittodr.9 b/ja_JP.eucJP/man/man9/inittodr.9 index 75710ab520..3659a27131 100644 --- a/ja_JP.eucJP/man/man9/inittodr.9 +++ b/ja_JP.eucJP/man/man9/inittodr.9 @@ -1,117 +1,117 @@ .\" %NetBSD: inittodr.9,v 1.2 1996/03/27 21:16:06 jtc Exp % .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" 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 Christopher G. Demetriou .\" for the NetBSD Project. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/inittodr.9,v 1.4.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/inittodr.9,v 1.9 2002/05/16 05:21:58 trhodes Exp % .\" $FreeBSD$ .\" .Dd March 22, 1997 .Dt INITTODR 9 .Os .Sh ̾¾Î .Nm inittodr .Nd ¥·¥¹¥Æ¥à¥¿¥¤¥à¤Î½é´ü²½ .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft void .Fn inittodr "time_t base" .Sh ²òÀâ .Fn inittodr ´Ø¿ô¤Ï»þ¹ï¤ò·èÄꤷ¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤Î¥Ð¥Ã¥Æ¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¯¥í¥Ã¥¯¤ª¤è¤Ó .Fa base ¤ÇÍ¿¤¨¤é¤ì¤ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤«¤éÆÀ¤é¤ì¤ë»þ¹ï ¤ò¸¡ºº¤¹¤ëȯ¸«ÊýË¡¤ò»ÈÍѤ·¤ÆÀµ¤·¤¤»þ¹ï¤Î¼èÆÀ¤ò»î¤ß¤Þ¤¹¡£ .Fa base ¤ÎÃͤòÆÀ¤ëÊýË¡¤Ï¡¢¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¿¥¤¥×¤Ë°Í¸¤·¤ÆÊѲ½¤¹¤ë¤Ç¤·¤ç¤¦¡£ ²¼µ­¤Îȯ¸«ÊýË¡¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ .Bl -bullet .It ¥Ð¥Ã¥Æ¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¯¥í¥Ã¥¯¤¬ÂÅÅö¤Ê»þ¹ï¤Ç¤¢¤ì¤Ð¡¢¤³¤ì¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ .\" .It .\" If the battery-backed clock does not have a valid time, and .\" the time provided in .\" .Fa base .\" is within reason, .\" .Fa base .\" is used as the current time. .\" .It .\" If the battery-backed clock appears invalid, and .\" .Fa base .\" appears non-sensical or was not provided (was given as zero), .\" a arbitrary base (typically some time in the late 1970s) .\" will be used. .It ¥Ð¥Ã¥Æ¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¯¥í¥Ã¥¯¤¬ÂÅÅö¤Ê»þ¹ï¤Ç¤Ê¤±¤ì¤Ð¡¢ .Fa base ¤ÇÍ¿¤¨¤é¤ì¤¿»þ¹ï¤¬»ÈÍѤµ¤ì¤Þ¤¹¡£ .El .Pp °ìÅÙ¥·¥¹¥Æ¥à¥¿¥¤¥à¤¬·èÄꤵ¤ì¤ë¤È¡¢¤³¤ì¤¬ .Va time ÊÑ¿ô¤Ë³ÊǼ¤µ¤ì¤Þ¤¹¡£ .Sh ¿ÇÃÇ ¥·¥¹¥Æ¥à¥¿¥¤¥à¤Î·×»»¤ËÌäÂ꤬¤¢¤Ã¤¿¾ì¹ç¤Ï¡¢ .Fn inittodr ´Ø¿ô¤Ï¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤Þ¤¹¡£ ½ÐÎϤµ¤ì¤ë¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤Ë¤Ï²¼µ­¤Î¾õÂÖ¤¬´Þ¤Þ¤ì¤Þ¤¹¡£ .Bl -bullet .It ¥Ð¥Ã¥Æ¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¯¥í¥Ã¥¯¤¬Ìµ°ÕÌ£¤Î¤è¤¦¤Ç¤¢¤ë¡£ .\" .It .\" The .\" .Fa base .\" time appears nonsensical. .\" .It .\" The .\" .Fa base .\" time and the battery-backed clock's time differ by a large amount. .El .Sh ´ØÏ¢¹àÌÜ .Xr resettodr 9 , .Xr time 9 .Sh ¥Ð¥° ¿¤¯¤Î¥·¥¹¥Æ¥à¤Ç .Fn inittodr ¤Ï¡¢ ǯ¡¢·î¡¢Æü¡¢»þ¡¢Ê¬¡¢ÉäÇɽ¸½¤µ¤ì¤ë»þ¹ï¤«¤é¡¢ÉäÇɽ¸½¤µ¤ì¤ë .Va time ¤ËÊÑ´¹¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¿¤¯¤Î¼ÂÁõ¤Ç¤Ï¥³¡¼¥É¤Î¶¦Í­¤¬²Äǽ¤Ç¤¹¤¬¡¢¶¦Í­¤·¤Æ¤¤¤Þ¤»¤ó¡£ .Pp ¤½¤ì¤¾¤ì¤Î¥·¥¹¥Æ¥à¤ÎÀµ³Î¤Ê»þ¹ï¼èÆÀ¤Î¤¿¤á¤Îȯ¸«ÊýË¡¤Ï¡¢¤ï¤º¤«¤Ë°Û¤Ê¤ê¤Þ¤¹¡£ .Pp .Fx ¤Î¼ÂÁõ¤Ï¡¢ ¥Ð¥Ã¥Æ¥ê¥Ð¥Ã¥¯¥¢¥Ã¥×¥¯¥í¥Ã¥¯¤ò»ÈÍѤǤ­¤Ê¤¤¾ì¹ç¤Ï¡¢ .Fa base ¤ÇÍ¿¤¨¤é¤ì¤¿»þ¹ï¤ò¤â¤Ã¤È¤¦¤Þ¤¯¸¡¾Ú¤¹¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£ ¸½ºß¤Ï̵¾ò·ï¤Ë¥·¥¹¥Æ¥à¥¿¥¤¥à¤ò¤³¤ÎÃͤËÀßÄꤷ¤Þ¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/intro.9 b/ja_JP.eucJP/man/man9/intro.9 index 5d4111fcf3..119642336e 100644 --- a/ja_JP.eucJP/man/man9/intro.9 +++ b/ja_JP.eucJP/man/man9/intro.9 @@ -1,111 +1,112 @@ .\" Copyright (c) 1983, 1991, 1993 .\" 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. .\" -.\" %FreeBSD: src/share/man/man9/intro.9,v 1.10.2.5 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/intro.9,v 1.15 2001/07/14 19:41:16 schweikh Exp % .\" +.\" $FreeBSD$ .Dd December 13, 1995 .Dt INTRO 9 .Os .Sh ̾¾Î .Nm intro .Nd ¥·¥¹¥Æ¥à¥«¡¼¥Í¥ë¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Î¾Ò²ð .Sh ²òÀâ ¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï¥«¡¼¥Í¥ëÆâ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤È¥µ¥Ö¥ë¡¼¥Á¥ó¤Ë¤Ä¤¤¤Æ¤Î ¾ðÊó¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£ .Sh ANSI-C Åù¤Î¥×¥í¥È¥¿¥¤¥× ¤ª´ê¤¤¤·¤Þ¤¹¡£ .Pp ²æ¡¹¤ÏÁ´¤Æ¤Î¥³¡¼¥É¤¬´°Á´¤Ë¥×¥í¥È¥¿¥¤¥×¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò˾¤ß¤Þ¤¹¡£ .Pp ¤¢¤Ê¤¿¤Î¥³¡¼¥É¤¬ .Nm cc .Ar -Wall ¤È¤·¤¿»þ¤Ë¤­¤ì¤¤¤Ë¥³¥ó¥Ñ¥¤¥ë¤Ç¤­¤ì¤Ð¡¢²æ¡¹¤Ï´ò¤·¤¯»×¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï .Nm cc ¤òÌۤ餻¤ë¤³¤È¤¬ÌäÂê¤Ç¤Ï¤Ê¤¯¡¢ ¶ì¾ð¤Î¸¶°ø»ö¾Ý¤òÈò¤±¤ë¤³¤È¤¬ÌäÂê¤Ç¤¢¤ë¤È¤¤¤¦¤³¤È¤òÍý²ò¤¹¤ë¤³¤È¤¬½ÅÍפǤ¹¡£ ±óθ¤Ê¤·¤Ë¸À¤¦¤È¡¢¥­¥ã¥¹¥È¤ä¾¤ÎÉÔÌÀÎÆ²½¤¹¤ë¼êË¡¤ÇÌäÂê¤ò±£¤¹¤Î¤Ç¤Ï¤Ê¤¯¡¢ ÌäÂê¤ò²ò·è¤·¤Æ¤¯¤À¤µ¤¤¡£ .Sh ¥¤¥ó¥Ç¥ó¥È¤È¥¹¥¿¥¤¥ë ¤½¤ì¤ò¿®ÍѤ¹¤ë¤«¤É¤¦¤«¤ÏÊ̤Ȥ·¤Æ¡¢ ¥¤¥ó¥Ç¥ó¥È¤È¥¹¥¿¥¤¥ë¤Ë¤Ä¤¤¤Æ¤Î¥¬¥¤¥É¤¬¸½¤Ë¸ºß¤·¤Þ¤¹¡£ ¤±¤ì¤É¤â¹­¤¯¤ÏŬÍѤµ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ .Pp ¿Í¡¹¤¬¤½¤ì¤ËÃí°Õ¤òʧ¤¤¡¢¾¯¤Ê¤¯¤È¤âϪ¹ü¤Ë°ãÈ¿¤·¤Ê¤¤¤Ê¤é¤Ð¡¢ ²æ¡¹¤Ï¤½¤ì¤òǧ¤á¤ë¤Ç¤·¤ç¤¦¡£ .Pp ²æ¡¹¤Ï¤¢¤Þ¤ê¤Ë¤â¤Ò¤É¤¯¤Ê¤¤¸Â¤ê¡¢¤¢¤Ê¤¿¤ÎÆÈ¼«¤Î¥¹¥¿¥¤¥ë¤òµ¤¤Ë¤·¤Þ¤»¤ó¤¬¡¢ ɬ¤º²æ¡¹¤Ë¤âÆÉ¤á¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£ .Pp ¹¹¤Ë¾ðÊó¤òÆÀ¤ë¤¿¤á¤Ë .Xr style 9 ¤òÆÉ¤à»þ´Ö¤ò¼è¤Ã¤Æ¤¯¤À¤µ¤¤¡£ .Sh ̿̾µ¬Â§ ´ö¤Ä¤«¤Î°ìÈÌŪ¤Êµ¬Â§¤¬¤¢¤ê¤Þ¤¹¡£ .Bl -enum .It ¤¢¤ë´Ø¿ô¤¬ DDB ¤Ç¤Î¥Ç¥Ð¥Ã¥°»Ù±ç¤ò°Õ¿Þ¤·¤¿¤â¤Î¤Ç¤¢¤ë¤Ê¤é¤Ð¡¢ ¤½¤ì¤Ï²¼µ­¤Î¤è¤¦¤Ë°Ï¤Þ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Bd -literal -offset indent #ifdef DDB #endif /* DDB */ .Ed .Pp ²Ã¤¨¤Æ¡¢´Ø¿ô¤Î̾Á°¤Ï¡¢¤½¤ì¤¬¥Ç¥Ð¥Ã¥¬¥ë¡¼¥Á¥ó¤Ç¤¢¤ë¤³¤È¤¬ÌÀ³Î¤Ë¤ï¤«¤ë¤è¤¦¤Ë¡¢ .Li DDB_ ¤òÀÜÆ¬¼­¤È¤·¤Æ»Ï¤á¤ë¤Ù¤­¤Ç¤¹¡£ .El .Sh ¥·¥ó¥Ü¥ë¤Î¥¹¥³¡¼¥× ¥«¡¼¥Í¥ëÆâ¤Î¥·¥ó¥Ü¥ë¤Î¥¹¥³¡¼¥×¤ÏÃí°Õ¿¼¤¯¹Íθ¤¹¤ë¤³¤È¤¬½ÅÍפǤ¹¡£ ²¿¤é¤«¤ÎÍýͳ¤Ç¤½¤¦½ÐÍè¤Ê¤¤¾ì¹ç°Ê³°¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç¤ÏÁ´¤Æ¤ò static ¤Ë¤·¤Þ¤¹¡£ .Pp ¤³¤ÎÊý¿Ë¤Ë¤Ï´ö¤Ä¤«¤ÎÍýͳ¤¬¤¢¤ê¤Þ¤¹¡£ ¼ç¤ÊÍýͳ¤Ï¡¢¥«¡¼¥Í¥ë¤Ïñ°ì¤Î̾Á°¶õ´Ö¤Ç¤¢¤ë¤³¤È¤È¡¢ ¤³¤³¤Ç¤Ï̾Á°¶õ´Ö¤Î±øÀ÷¤â¤¢¤Þ¤ê̾°Æ¤Ç¤Ï¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ .Pp ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤È ¥«¡¼¥Í¥ë¤Ë¿·¤·¤¤ÆâÉô¤Î¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤òÄɲ䷤ʤ¤¥â¥¸¥å¡¼¥ë¤Ç¤Ï¡¢ ²Äǽ¤Ç¤¢¤ë¤Ê¤é¤ÐÁ´¤Æ¤Î¥½¡¼¥¹¥³¡¼¥É¤¬°ì¤Ä¤Î¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤Ù¤­¤Ç¤¹¡£ ¤½¤ì¤ÏÁ´¤Æ¤Î¥·¥ó¥Ü¥ë¤ò static ¤Ë¤Ç¤­¤ëÊýË¡¤Ç¤¢¤ë¤«¤é¤Ç¤¹¡£ .Pp ²¿¤é¤«¤ÎÍýͳ¤Ë¤è¤ê¥â¥¸¥å¡¼¥ë¤¬Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ëʬ³ä¤µ¤ì¤ë¾ì¹ç¤Ë¤Ï¡¢ Â礭¤Ê¶­³¦Àþ¤Ë±è¤Ã¤Æ¤½¤Î¥â¥¸¥å¡¼¥ë¤òʬ³ä¤¹¤ë¤è¤¦ÅØÎϤ·¤Æ¡¢ ¥°¥í¡¼¥Ð¥ë¤Ê¥·¥ó¥Ü¥ë¤Î¿ô¤ò¼ê°ú¤Ë¤·¤Æ½Ï¹Í¤·¤Æ¤¯¤À¤µ¤¤¡£ ¾¯¤Ê¤¤Êý¤¬¹¥¤Þ¤·¤¤¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr style 9 .Sh Îò»Ë .Nm ¥»¥¯¥·¥ç¥ó¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .Fx 2.2 ¤ÇÅо줷¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/kernacc.9 b/ja_JP.eucJP/man/man9/kernacc.9 index e8476bfa18..5def4c91b5 100644 --- a/ja_JP.eucJP/man/man9/kernacc.9 +++ b/ja_JP.eucJP/man/man9/kernacc.9 @@ -1,90 +1,91 @@ .\" %NetBSD: access.9,v 1.1 1996/06/16 10:38:35 pk Exp % .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation .\" by Paul Kranenburg. .\" .\" 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 NetBSD .\" Foundation, Inc. and its contributors. .\" 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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. .\" -.\" %FreeBSD: src/share/man/man9/kernacc.9,v 1.7.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/kernacc.9,v 1.12 2001/12/26 23:14:04 davidc Exp % .\" .\" $FreeBSD$ .Dd June 16, 1996 .Dt KERNACC 9 .Os .Sh ̾¾Î .Nm kernacc , .Nm useracc .Nd ¥á¥â¥êÎΰ褬¥¢¥¯¥»¥¹²Äǽ¤«Èݤ«¤ÎÄ´ºº .Sh ½ñ¼° -.In sys/types.h +.In sys/param.h +.In sys/proc.h .In vm/vm.h .In vm/vm_extern.h .Ft int .Fn kernacc "caddr_t addr" "int len" "int rw" .Ft int .Fn useracc "caddr_t addr" "int len" "int rw" .Sh ²òÀâ .Fn kernacc ¤ª¤è¤Ó .Fn useracc ´Ø¿ô¤Ï¡¢ .Fa addr ¤ª¤è¤Ó .Fa len ¤Ë¤è¤Ã¤ÆÍ¿¤¨¤é¤ì¤ë²¾ÁÛ¥¢¥É¥ì¥¹ÈϰϤǡ¢ .Fa rw ¤Ç»ØÄꤵ¤ì¤¿Áàºî¤Î¥¿¥¤¥×¤¬µö²Ä¤µ¤ì¤ë¤«¤É¤¦¤«¤òÄ´ºº¤·¤Þ¤¹¡£ .Fa rw ¤Î»ØÄê²Äǽ¤ÊÃͤϡ¢ .Dv VM_PROT_READ , .Dv VM_PROT_WRITE ¤ª¤è¤Ó .Dv VM_PROT_EXECUTE ¤ÎÏÀÍý¹çÀ®ÃͤǤ¹¡£ .Fn kernacc ¤Ï¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤ÎÃæ¤Î¥¢¥É¥ì¥¹¤òÄ´¤Ù¡¢°ìÊý .Fn useracc ¤Ï .Fa addr ¤ò¥æ¡¼¥¶¶õ´Ö¤Î¥¢¥É¥ì¥¹É½¸½¤È¤ß¤Ê¤·¤Þ¤¹¡£ ¤³¤ÎÁàºî¤Ë»ÈÍѤµ¤ì¤ë¥×¥í¥»¥¹¥³¥ó¥Æ¥­¥¹¥È¤ÏÂç°èÊÑ¿ô .Va curproc ¤«¤éÆÀ¤é¤ì¤Þ¤¹¡£ .Sh Ìá¤êÃÍ ¤É¤Á¤é¤Î´Ø¿ô¤â¡¢ .Fa rw ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¥¿¥¤¥×¤Î¥¢¥¯¥»¥¹¤¬µö²Ä¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ¥Ö¡¼¥ëÃÍ true ¤òÊÖ¤·¤Þ¤¹¡£ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥Ö¡¼¥ëÃÍ false ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£ .Sh ¥Ð¥° .Fn useracc ¤Ø¤Î°ú¿ô¤È¤·¤Æ¡¢¥×¥í¥»¥¹¤Ø¤Î¥Ý¥¤¥ó¥¿¤¬ÅϤµ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/malloc.9 b/ja_JP.eucJP/man/man9/malloc.9 index 0d3a372d4e..b22d299a2e 100644 --- a/ja_JP.eucJP/man/man9/malloc.9 +++ b/ja_JP.eucJP/man/man9/malloc.9 @@ -1,302 +1,274 @@ .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation .\" by Paul Kranenburg. .\" .\" 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 NetBSD .\" Foundation, Inc. and its contributors. .\" 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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. .\" .\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ -.\" %FreeBSD: src/share/man/man9/malloc.9,v 1.13.2.6 2002/03/16 02:20:28 archie Exp % +.\" %FreeBSD: src/share/man/man9/malloc.9,v 1.23 2002/03/18 10:52:09 ru Exp % ,\" $FreeBSD$ .\" .Dd June 16, 1996 .Dt MALLOC 9 .Os .Sh ̾¾Î .Nm malloc , .Nm MALLOC , .Nm free , .Nm FREE .Nd ¥«¡¼¥Í¥ë¥á¥â¥ê¥Þ¥Í¡¼¥¸¥á¥ó¥È¥ë¡¼¥Á¥ó .Sh ½ñ¼° .In sys/types.h .In sys/malloc.h .Ft void * .Fn malloc "unsigned long size" "struct malloc_type *type" "int flags" .Fn MALLOC "space" "cast" "unsigned long size" "struct malloc_type *type" "int flags" .Ft void .Fn free "void *addr" "struct malloc_type *type" .Fn FREE "void *addr" "struct malloc_type *type" .Ft void * .Fn realloc "void *addr" "unsigned long size" "struct malloc_type *type" "int flags" .Ft void * .Fn reallocf "void *addr" "unsigned long size" "struct malloc_type *type" "int flags" .Sh ²òÀâ .Fn malloc ´Ø¿ô¤Ï¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤Î½é´ü²½¤µ¤ì¤Æ¤¤¤Ê¤¤¥á¥â¥ê¤ò .Fa size ¤Ç»ØÄꤵ¤ì¤¿Â礭¤µ¤Î 1 ¤Ä¤Î¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ³ä¤êÅö¤Æ¤Þ¤¹¡£ .Pp .Fn free ¤Ï .Fn malloc ¤ÇÀè¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤¿ .Fa addr ¤Î¥¢¥É¥ì¥¹¤Î¥á¥â¥ê¤òºÆ»ÈÍѤ¹¤ë¤¿¤á¤Ë²òÊü¤·¤Þ¤¹¡£ ¥á¥â¥ê¤Ï 0 ¤Ë¥¯¥ê¥¢¤µ¤ì¤Þ¤»¤ó¡£ .Fa addr ¤¬ .Dv NULL ¤Î¾ì¹ç¡¢ .Fn free ¤Ï²¿¤â¤·¤Þ¤»¤ó¡£ .Pp .Fn realloc ´Ø¿ô¤Ï¡¢°ÊÁ°¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ .Fa addr ¤Ç»²¾È¤µ¤ì¤ë¥á¥â¥ê¤ÎÂ礭¤µ¤ò .Fa size ¥Ð¥¤¥È¤ËÊѹ¹¤·¤Þ¤¹¡£ ¥á¥â¥ê¤ÎÆâÍÆ¤Ï¡¢¿·¥µ¥¤¥º¤Èµì¥µ¥¤¥º¤Î¾®¤µ¤¤Êý¤Þ¤Ç¤Ï¡¢ÌµÊѹ¹¤È¤Ê¤ê¤Þ¤¹¡£ Ìá¤êÃÍ¤Ï .Fa addr ¤È°ã¤¦¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ Í׵ᤵ¤ì¤¿¥á¥â¥ê¤¬³ä¤êÅö¤ÆÉÔǽ¤Î¾ì¹ç¡¢ .Dv NULL ¤¬ÊÖ¤µ¤ì¡¢ .Fa addr ¤Ç»²¾È¤µ¤ì¤ë¥á¥â¥ê¤ÏÀµÅö¤Ç̵Êѹ¹¤Î¤Þ¤Þ¤È¤Ê¤ê¤Þ¤¹¡£ .Fa addr ¤¬ .Dv NULL ¤Î¾ì¹ç¡¢ .Fn realloc ´Ø¿ô¤Ï»ØÄꤵ¤ì¤¿Â礭¤µ¤Î .Fn malloc ¤ÈƱÅù¤Ë¿¶Éñ¤¤¤Þ¤¹¡£ .Pp .Fn reallocf -´Ø¿ô¸Æ¤Ó½Ð¤·¤Ï¡¢realloc ´Ø¿ô¸Æ¤Ó½Ð¤·¤È¤Þ¤Ã¤¿¤¯Æ±¤¸¤Ç¤¹¤¬¡¢ +´Ø¿ô¤Ï +.Fn realloc +¤È¤Þ¤Ã¤¿¤¯Æ±¤¸¤Ç¤¹¤¬¡¢ Í׵ᤵ¤ì¤¿¥á¥â¥ê¤ò³ä¤êÅö¤ÆÉÔǽ¤Î¾ì¹ç¤Ë ÅϤµ¤ì¤¿¥Ý¥¤¥ó¥¿¤Î¥á¥â¥ê¤ò²òÊü¤¹¤ëÅÀ¤¬°ã¤¤¤Þ¤¹¡£ .Pp ¥Þ¥¯¥íÈǤΠ.Fn MALLOC ¤Ïµ¡Ç½Åª¤Ë¤Ï .Bd -literal -offset indent (space) = (cast)malloc((u_long)(size), type, flags) .Ed .Pp ¤ÈƱÅù¤Ç¡¢ ¥Þ¥¯¥íÈÇ .Fn FREE ¤Ï .Bd -literal -offset indent free((addr), type) .Ed .Pp ¤ÈƱÅù¤Ç¤¹¡£ ɸ½àC¥é¥¤¥Ö¥é¥ê¤ÎƱµÁ´Ø¿ô .Pq Xr malloc 3 ¤È¤Ï°Û¤Ê¤ê¡¢¥«¡¼¥Í¥ë¥Ð¡¼¥¸¥ç¥ó¤Ï¹¹¤Ë 2 ¤Ä¤Î°ú¤­¿ô¤ò¤È¤ê¤Þ¤¹¡£ °ú¤­¿ô .Fa flags ¤Ï .Fn malloc ¤ÎÁàºî¾å¤ÎÆÃÀ­¤ò°Ê²¼¤Î¤è¤¦¤Ë¤ß¤Ê¤·¤Þ¤¹¡£ -.Bl -tag -width M_NOWAIT +.Bl -tag -width indent +.It Dv M_ZERO +³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤¬Á´¤Æ 0 ¤ÇËþ¤¿¤µ¤ì¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£ .It Dv M_NOWAIT ¥ê¥½¡¼¥¹¤ÎÉÔ­¤Î¤¿¤áľ¤Á¤ËÍ×µá¤òËþ¤¿¤¹¤³¤È¤¬¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¡¢ .Fn malloc , .Fn realloc , +¤ª¤è¤Ó .Fn reallocf ¤¬ .Dv NULL ¤òÊÖ¤¹¤è¤¦¤Ë¤·¤Þ¤¹¡£ Ä̾ï¤Ï¡¢ ¾¤Î¥×¥í¥»¥¹¤Ë¤è¤ë¥ê¥½¡¼¥¹¤Î²òÊü¤òÂԤĤ¿¤á¤Ë¥¹¥ê¡¼¥×¾õÂ֤ˤµ¤ì¤Þ¤¹¡£ ¤³¤Î¥Õ¥é¥°¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢ .Fn malloc ¤Ï¥Ö¥í¥Ã¥¯¤»¤º¤Ë .Dv NULL ¤òÊÖ¤·¤Þ¤¹¡£ .Dv M_WAITOK ¤¬ 0 ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ï¥Ö¥í¥Ã¥­¥ó¥°Áàºî¤¬¥Ç¥Õ¥©¥ë¥È¤À¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ³ä¤ê¹þ¤ß¥³¥ó¥Æ¥­¥¹¥È¤Ç¤Îưºî»þ¤Ë¤Ï .Dv M_NOWAIT ¤¬É¬ÍפǤ¢¤ë¤³¤È¤Ë¤âÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ -.It Dv M_ASLEEP -¥ê¥½¡¼¥¹¤ÎÉÔ­¤Î¤¿¤áľ¤Á¤ËÍ×µá¤òËþ¤¿¤¹¤³¤È¤¬¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¡¢ -.Fn malloc , -.Fn realloc , -.Fn reallocf -¤¬ -.Fn asleep -¤ò¸Æ¤Ö¤è¤¦¤Ë¤·¤Þ¤¹¡£ -.Dv M_ASLEEP -¤ÎñÆÈ¤Ç¤Î»ÈÍѤϼÂÍÑŪ¤Ç¤Ï¤Ê¤¯¡¢¾ï¤Ë -.Dv M_NOWAIT -¤È¤ÎÏÀÍýÏÂ(OR)¤ò¤È¤Ã¤Æ -ËÜ´Ø¿ô -¤Ë -.Fn asleep -¤ò¸Æ¤Ð¤»¡¢Ä¾¤Á¤Ë -.Dv NULL -¤òÊÖ¤µ¤»¤Þ¤¹¡£ -¸Æ¤Ó½Ð¤·Â¦¤¬¤¢¤ë»þÅÀ¤Ç -.Fn await -¤ò¸Æ¤Ó¡¢³ä¤êÅö¤Æ¤Î¥ê¥È¥é¥¤¤ò¤¹¤ë¤³¤È¤¬´üÂÔ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ -Åö¤Î¥ë¡¼¥Á¥ó¤Ë°Í¸¤·¤Æ¡¢¸Æ¤Ó½Ð¤·Â¦¤Ç°ì»þŪ¤Ê¼ºÇÔ¤ò¾å°Ì¤ËÏ¢º¿Åª¤ËÅÁȤ·¡¢¼ÂºÝ¤Ë -ËÜ´Ø¿ô -¤¬¥­¥å¡¼¤ËÆþ¤ì¤¿È󯱴ü¤Î¥¦¥§¥¤¥È¤ò¥Ö¥í¥Ã¥¯¤¹¤ë -´ö¤Ä¤«¤ÎÊ̤ιâ¥ì¥Ù¥ë¥ë¡¼¥Á¥ó¤ò¤â¤Ä¤³¤È¤ò·è¤á¤ë¤³¤È¤â½ÐÍè¤Þ¤¹¡£ .It Dv M_WAITOK ¥ê¥½¡¼¥¹¤òÂԤĤ³¤È¤¬²Äǽ(OK)¤Ç¤¢¤ë¤³¤È¤ò¼¨¤·¤Þ¤¹¡£ ÅÔ¹ç¤Î°­¤¤¤³¤È¤Ë 0 ¤ÈÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢Ä¾Àܤ³¤ÎÃͤËÂФ·¤ÆÈæ³Ó¤·¤¿¤ê¡¢ ¥Õ¥é¥°¤È¤·¤ÆÏÀÍýÀÑ(AND)¤ò¤È¤Ã¤¿¤ê¤·¤Ê¤¤¤è¤¦¤ËÃí°Õ¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¥Ç¥Õ¥©¥ë¥È¤ÎÁàºî¤Ï¥á¥â¥ê¤Î³ä¤êÅö¤Æ¤¬À®¸ù¤¹¤ë¤Þ¤Ç¥Ö¥í¥Ã¥¯¤·¤Þ¤¹¡£ .Dv M_NOWAIT ¤¬»ØÄꤵ¤ì¤ë¤È .Fn malloc , .Fn realloc , .Fn reallocf ¤Ïñ¤Ë .Dv NULL ¤òÊÖ¤¹¤³¤È¤¬½ÐÍè¤Þ¤¹¡£ .It Dv M_USE_RESERVE Í׵ᤵ¤ì¤¿¥á¥â¥ê¤ò³ÍÆÀ¤¹¤ë¤¿¤á¤Ë¡¢ ¥·¥¹¥Æ¥à¤¬¥ê¥¶¡¼¥ÖÎΰè¤ò»È¤Ã¤Æ¤è¤¤¤³¤È¤ò¼¨¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï°ÊÁ°¤Ï M_KERNEL ¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤·¤¿¤¬¡¢ ¤è¤êÌÀ¼¨Åª¤Ë²þ̾¤µ¤ì¤Þ¤·¤¿¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï·Ú»ë¤µ¤ì¤Æ¤¤¤Æ¡¢¥«¡¼¥Í¥ë¤«¤é½ù¡¹¤Ëºï½ü¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¤¿¤á¡¢¿·¤¿¤Ê¥×¥í¥°¥é¥ß¥ó¥°¤Ç¤Ï»ÈÍѤµ¤ì¤Ê¤¤Íͤˤ¹¤ë¤Ù¤­¤Ç¤¹¡£ .El .Pp °ú¤­¿ô .Fa type ¤Ï¥á¥â¥ê¤ÎÍøÍÑÊýË¡¤ÎÅý·×¤ò¤È¤ë¤¿¤á¤È¡¢ ´Êñ¤Ê¥µ¥Ë¥Æ¥£¥Á¥§¥Ã¥¯¤Î¤¿¤á¤Ë»È¤ï¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤ÎÅý·×¤Ï .Sq vmstat -m ¤ÇÄ´¤Ù¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£ .Pp .Fa type ¤Ï .Fn MALLOC_DECLARE ¤È .Fn MALLOC_DEFINE ¥Þ¥¯¥í¤òÄ̤¸¤Æ .Va malloc_type_t typedef ¤ò»ÈÍѤ·¤ÆÄêµÁ¤µ¤ì¤Þ¤¹¡£ .Bd -literal -offset indent /* sys/something/foo_extern.h */ MALLOC_DECLARE(M_FOOBUF); /* sys/something/foo_main.c */ MALLOC_DEFINE(M_FOOBUF, "foobuffers", "Buffers to foo data into the ether"); /* sys/something/foo_subr.c */ \&... MALLOC(buf, struct foo_buf *, sizeof *buf, M_FOOBUF, M_NOWAIT); .Ed .Sh Ìá¤êÃÍ .Fn malloc , .Fn realloc , -.Fn reallocf +.Fn reallocf ¤Ï¤¹¤Ù¤Æ¤Î¥¿¥¤¥×¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Î³ÊǼ¤ËŬÀڤʤ褦¤ËÀ°Î󤵤줿 ¥«¡¼¥Í¥ë²¾ÁÛ¥¢¥É¥ì¥¹¤òÊÖ¤¹¤«¡¢ ¤Þ¤¿¤ÏÍ׵᤬Ëþ­¤Ç¤­¤º (¤¹¤Ê¤ï¤Á .Dv M_NOWAIT ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹) ¤Ë .Dv NULL ¤òÊÖ¤·¤Þ¤¹¡£ -.Dv M_ASLEEP -¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Æ -´Ø¿ô -¤¬ -.Dv NULL -¤òÊÖ¤¹¾ì¹ç¡¢ÉûºîÍѤȤ·¤Æ -.Fn asleep -¤¬¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ .Sh ¼ÂÁõ¤Ë´Ø¤¹¤ëÃí 1 ¥Ú¡¼¥¸¤Þ¤Ç¤ÎÍ×µá¤ËÂФ·¡¢ ¥á¥â¥ê¥¢¥í¥±¡¼¥¿¤Ï¡¢2 ¤ÎÎß¾è¤ÎÂ礭¤µ¤ÎÎ̤ò³ä¤êÅö¤Æ¤Þ¤¹¡£ ¤è¤êÂ礭¤ÊÍ×µá¤ËÂФ·¤Æ¤Ï¡¢1 ¸Ä°Ê¾å¤Î¥Ú¡¼¥¸¤¬³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£ ¤³¤Îưºî¤Ë°Í¸¤·¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¤¬¡¢ ¤³¤Î¾ðÊ󤬥á¥â¥ê»ÈÍѸúΨ¤ÎºÇŬ²½¤ËÍ­ÍѤ«¤â¤·¤ì¤Þ¤»¤ó¡£ .Sh ´ØÏ¢¹àÌÜ .Xr vmstat 8 .Sh ¿ÇÃÇ .Dv DIAGNOSTIC ¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥«¡¼¥Í¥ë¤Ï¡¢ ³ä¤êÅö¤Æ¤é¤ì¤¿Îΰè°Ê³°¤Ø¤Î½ñ¤­¹þ¤ß¤ä .Fn malloc ´Ø¿ô¤È .Fn free ´Ø¿ô¤ÎÉԶѹդʸƤӽФ·¤Ê¤É¤Ë¤è¤êÀ¸¤¸¤¿¥á¥â¥êÉÔÀµ¤Î¸¡½Ð¤ò»î¤ß¤Þ¤¹¡£ °ì´ÓÀ­¥Á¥§¥Ã¥¯¤Î¼ºÇԤϥѥ˥寤ޤ¿¤Ï¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ë¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤Þ¤¹¡£ .Bl -bullet -offset indent -compact .Pp .It panic: .Dq malloc: bogus type .It panic: .Dq malloc: allocation too large .It panic: .Dq malloc: wrong bucket .It panic: .Dq malloc: lost data .It panic: .Dq free: address 0x%x out of range .It panic: .Dq free: type %d out of range .It panic: .Dq free: unaligned addr Aq description of object .It panic: .Dq free: item modified .It panic: .Dq free: multiple free[s] .It .Dq Data modified on freelist: Aq description of object .El diff --git a/ja_JP.eucJP/man/man9/microtime.9 b/ja_JP.eucJP/man/man9/microtime.9 index b01aea7f11..5c9fac4923 100644 --- a/ja_JP.eucJP/man/man9/microtime.9 +++ b/ja_JP.eucJP/man/man9/microtime.9 @@ -1,110 +1,95 @@ .\" Copyright (c) 2000 Kelly Yancey .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/microtime.9,v 1.2.2.3 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/microtime.9,v 1.7 2002/01/26 21:41:28 arr Exp % .\" .\" $FreeBSD$ .Dd January 3, 2000 .Dt MICROTIME 9 .Os .Sh ̾¾Î .Nm microtime , .Nm getmicrotime , .Nm nanotime , .Nm getnanotime .Nd ¸½ºß»þ¹ï¤Î¼èÆÀ .Sh ½ñ¼° .In sys/time.h .Ft void .Fn microtime "struct timeval *tv" .Ft void .Fn getmicrotime "struct timeval *tv" .Ft void .Fn nanotime "struct timespec *ts" .Ft void .Fn getnanotime "struct timespec *tsp" .Sh ²òÀâ .Fn microtime ¤ª¤è¤Ó .Fn getmicrotime ´Ø¿ô¤Ï¡¢ .Fa tv ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¢¥É¥ì¥¹¤Ë¡¢ .Ft timeval ¹½Â¤ÂΤȤ·¤Æ¡¢¥·¥¹¥Æ¥à»þ¹ï¤òÊݸ¤·¤Þ¤¹¡£ .Fn nanotime ¤ª¤è¤Ó .Fn getnanotime ´Ø¿ô¤Ï¡¢Æ±¤¸ºîÍѤò¼Â¹Ô¤·¤Þ¤¹¤¬¡¢Âå¤ê¤Ë .Ft timespec ¹½Â¤ÂΤȤ·¤Æ»þ¹ï¤òµ­Ï¿¤·¤Þ¤¹¡£ .Pp .Fn microtime ¤ª¤è¤Ó .Fn nanotime ¤Ï¡¢²Äǽ¤Ê¸Â¤êÀµ³Î¤Ê¸½ºß»þ¹ï¤òÊÖ¤¹»þ¹ï¥«¥¦¥ó¥¿¤ò¡¢¾ï¤ËÀÁµá¤·¤Þ¤¹¡£ ¤½¤ì¤ËÈ¿¤·¤Æ¡¢ .Fn getmicrotime ¤ª¤è¤Ó .Fn getnanotime -´Ø¿ô¤Ï¡¢Àµ³Î¤Ç¤Ï¤Ê¤¤¤¬¹â®¤ËÆÀ¤é¤ì¤ë»þ¹ï¤òÂå¤ê¤ËÊÖ¤·ÆÀ¤ëÃê¾Ý²½¤Ç¤¹¡£ -¤³¤Î¿¶Éñ¤¤¤Ï¡¢kern.timecounter.method sysctl ÊÑ¿ô¤Ë¤è¤ê¡¢ -ÀÚ¤êÂØ¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ -.Bl -tag -width ABC -.It Dv 0 -¹â®¤Ê¥³¡¼¥É¼Â¹Ô¤òÁªÂò¤·¤Æ¡¢Àµ³Î¤µ¤òµ¾À·¤Ë¤·¤Þ¤¹¡£ -.It Dv 1 -( -.Fn microtime -¤Þ¤¿¤Ï -.Fn nanotime -¤Î¸Æ¤Ó½Ð¤·¤ÈƱÅù¤Î) ¤è¤êÀµ³Î¤Ê»þ¹ï¤òÊÖ¤·¤Þ¤¹¡£ -.El +´Ø¿ô¤Ï¡¢Àµ³Î¤Ç¤Ï¤Ê¤¤¤¬¹â®¤ËÆÀ¤é¤ì¤ë»þ¹ï¤òÊÖ¤¹Ãê¾Ý²½¤Ç¤¹¡£ .Pp .Fn getmicrotime ¤ª¤è¤Ó .Fn getnanotime ´Ø¿ô¤Î°Õ¿Þ¤Ï¡¢¥¿¥¤¥Þ¤ÎÀµ³Î¤µÂм¹Իþ´Ö¤Î¥æ¡¼¥¶¤Î¹¥¤ß¤ò¶¯²½¤¹¤ë¤³¤È¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr getmicrouptime 9 , .Xr getnanouptime 9 , .Xr microuptime 9 , .Xr nanouptime 9 , .Xr tvtohz 9 -.Sh ¿ÇÃÇ -¥Ð¥°¤Î¤¢¤ë¥Ï¡¼¥É¥¦¥§¥¢¤Ï kern.timecounter.method ¤¬ 0 ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë»þ¤Ë¡¢ -"calcru negative..." ¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£ .Sh Îò»Ë .Nm ¤ª¤è¤Ó .Nm nanotime ´Ø¿ô¤Ï .Fx 3.0 ¤Ç½é¤á¤ÆÅо줷¤Þ¤·¤¿¤¬¡¢Ê̤ηÁ¤Ç .Bx 4.4 ¤«¤é¸ºß¤·¤Æ¤¤¤Þ¤·¤¿¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Kelly Yancey Aq kbyanc@posi.net ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/microuptime.9 b/ja_JP.eucJP/man/man9/microuptime.9 index 53f6935667..33aa21f056 100644 --- a/ja_JP.eucJP/man/man9/microuptime.9 +++ b/ja_JP.eucJP/man/man9/microuptime.9 @@ -1,101 +1,86 @@ .\" Copyright (c) 2000 Kelly Yancey .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/microuptime.9,v 1.2.2.2 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/microuptime.9,v 1.5 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd January 3, 2000 .Dt MICROUPTIME 9 .Os .Sh ̾¾Î .Nm microuptime , .Nm getmicrouptime , .Nm nanouptime , .Nm getnanouptime .Nd µ¯Æ°¤«¤é¤Î·Ð²á»þ´Ö¤Î¼èÆÀ .Sh ½ñ¼° .In sys/time.h .Ft void .Fn microuptime "struct timeval *tv" .Ft void .Fn getmicrouptime "struct timeval *tv" .Ft void .Fn nanouptime "struct timespec *ts" .Ft void .Fn getnanouptime "struct timespec *tsp" .Sh ²òÀâ .Fn microuptime ¤ª¤è¤Ó .Fn getmicrouptime ´Ø¿ô¤Ï¡¢ .Fa tv ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¢¥É¥ì¥¹¤Ë¡¢ .Ft timeval ¹½Â¤ÂΤȤ·¤Æ¡¢µ¯Æ°¤«¤é¤Î·Ð²á»þ´Ö¤òÊݸ¤·¤Þ¤¹¡£ .Fn nanouptime ¤ª¤è¤Ó .Fn getnanouptime ´Ø¿ô¤Ï¡¢Æ±¤¸ºîÍѤò¼Â¹Ô¤·¤Þ¤¹¤¬¡¢Âå¤ê¤Ë .Ft timespec ¹½Â¤ÂΤȤ·¤Æ·Ð²á»þ´Ö¤òµ­Ï¿¤·¤Þ¤¹¡£ .Pp .Fn microuptime ¤ª¤è¤Ó .Fn nanouptime ¤Ï¡¢¾ï¤Ë²Äǽ¤Ê¸Â¤êÀµ³Î¤Ê¸½ºß»þ¹ï¤òÊÖ¤¹»þ¹ï¥«¥¦¥ó¥¿¤òÀÁµá¤·¤Þ¤¹¡£ ¤½¤ì¤ËÈ¿¤·¤Æ¡¢ .Fn getmicrouptime ¤ª¤è¤Ó .Fn getnanouptime -´Ø¿ô¤Ï¡¢Àµ³Î¤Ç¤Ï¤Ê¤¤¤¬¹â®¤ËÆÀ¤é¤ì¤ë»þ¹ï¤òÂå¤ê¤ËÊÖ¤·ÆÀ¤ëÃê¾Ý²½¤Ç¤¹¡£ -¤³¤Î¿¶Éñ¤¤¤Ï¡¢kern.timecounter.method sysctl ÊÑ¿ô¤Ë¤è¤ê¡¢ -ÀÚ¤êÂØ¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ -.Bl -tag -width ABC -.It Dv 0 -¹â®¤Ê¥³¡¼¥É¼Â¹Ô¤òÁªÂò¤·¤Æ¡¢Àµ³Î¤µ¤òµ¾À·¤Ë¤·¤Þ¤¹¡£ -.It Dv 1 -( -.Fn microuptime -¤Þ¤¿¤Ï -.Fn nanouptime -¤Î¸Æ¤Ó½Ð¤·¤ÈƱÅù¤Î) ¤è¤êÀµ³Î¤Ê»þ¹ï¤òÊÖ¤·¤Þ¤¹¡£ -.El +´Ø¿ô¤Ï¡¢Àµ³Î¤Ç¤Ï¤Ê¤¤¤¬¹â®¤ËÆÀ¤é¤ì¤ë»þ¹ï¤òÊÖ¤¹Ãê¾Ý²½¤Ç¤¹¡£ .Pp .Fn getmicrouptime ¤ª¤è¤Ó .Fn getnanouptime ´Ø¿ô¤Î°Õ¿Þ¤Ï¡¢¥¿¥¤¥Þ¤ÎÀµ³Î¤µÂм¹Իþ´Ö¤Î¥æ¡¼¥¶¤Î¹¥¤ß¤ò¶¯²½¤¹¤ë¤³¤È¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr getmicrotime 9 , .Xr getnanotime 9 , .Xr microtime 9 , .Xr nanotime 9 , .Xr tvtohz 9 -.Sh ¿ÇÃÇ -¥Ð¥°¤Î¤¢¤ë¥Ï¡¼¥É¥¦¥§¥¢¤Ï kern.timecounter.method ¤¬ 0 ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë»þ¤Ë¡¢ -"calcru negative..." ¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Kelly Yancey Aq kbyanc@posi.net ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/module.9 b/ja_JP.eucJP/man/man9/module.9 index 7ff25eb60c..ef5f53d45f 100644 --- a/ja_JP.eucJP/man/man9/module.9 +++ b/ja_JP.eucJP/man/man9/module.9 @@ -1,95 +1,95 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 2000 Alexander Langer .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/module.9,v 1.5.2.2 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/module.9,v 1.7 2001/07/10 15:30:58 ru Exp % .\" .\" $FreeBSD$ .Dd March 1, 2001 .Dt MODULE 9 .Os .Sh ̾¾Î .Nm module .Nd ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤Î¹½Â¤µ­½Ò .Sh ²òÀâ ¥«¡¼¥Í¥ëÆâ¤Î¸Ä¡¹¤Î¥â¥¸¥å¡¼¥ë¤Ï .Vt module_t ¹½Â¤ÂΤˤè¤Ã¤Æµ­½Ò¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¹½Â¤ÂΤϡ¢´ö¤Ä¤«¤Î¥«¡¼¥Í¥ë¤ÎÆâÉô¥Ç¡¼¥¿¤Ï¤â¤Á¤í¤ó¡¢¥Ç¥Ð¥¤¥¹¤Î̾Á°¡¢ ¸ÇÍ­¤Î ID Èֹ桢¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é´Ø¿ô¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢¤ª¤è¤Ó ¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤ËÅϤµ¤ì¤ë°ú¿ô¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£ .Pp .Xr DECLARE_MODULE 9 ¥Þ¥¯¥í¤Ï¥·¥¹¥Æ¥à¤Ë¥â¥¸¥å¡¼¥ë¤òÅÐÏ¿¤·¤Þ¤¹¡£ ¤½¤Î¥â¥¸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤¿»þ¤Ë¡¢ .Fa what °ú¿ô¤Ë .Dv MOD_LOAD ¤¬ÀßÄꤵ¤ì¤Æ¡¢¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é´Ø¿ô¤¬¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ ¥¢¥ó¥í¡¼¥É»þ¤Ë¤Ï¡¢ .Fa what ¤Ë¤Ï .Dv MOD_UNLOAD ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤¬¥·¥ã¥Ã¥È¥À¥¦¥ó¤µ¤ì¤ë»þ¤Ë¤Ï¡¢ .Fa what ¤Ï .Dv MOD_SHUTDOWN ¤ÎÃͤò´Þ¤ß¤Þ¤¹¡£ .Sh »ÈÍÑÎã .Bd -literal #include #include #include static int foo_handler(module_t mod, int /*modeventtype_t*/ what, void *arg); static moduledata_t mod_data= { "foo", foo_handler, 0 }; MODULE_VERSION(foo, 1); MODULE_DEPEND(foo, bar, 1, 3, 4); DECLARE_MODULE(foo, mod_data, SI_SUB_EXEC, SI_ORDER_ANY); .Ed .Sh ´ØÏ¢¹àÌÜ .Xr DECLARE_MODULE 9 , .Xr DEV_MODULE 9 , .Xr DRIVER_MODULE 9 , .Xr MODULE_DEPEND 9 , .Xr MODULE_VERSION 9 , .Xr SYSCALL_MODULE 9 .Pp .Pa /usr/share/examples/kld .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Alexander Langer Aq alex@FreeBSD.org ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/panic.9 b/ja_JP.eucJP/man/man9/panic.9 index b80bf58bb7..67773d03e0 100644 --- a/ja_JP.eucJP/man/man9/panic.9 +++ b/ja_JP.eucJP/man/man9/panic.9 @@ -1,67 +1,67 @@ .\" %NetBSD: panic.9,v 1.2 1996/10/09 17:20:04 explorer Exp % .\" .\" Copyright (c) 1996 Michael Graff. .\" 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 Michael Graff .\" for the NetBSD Project. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/panic.9,v 1.4.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/panic.9,v 1.8 2001/10/01 16:09:25 ru Exp % .\" $FreeBSD$ .\" .Dd August 11, 1995 .Dt PANIC 9 .Os .Sh ̾¾Î .Nm panic .Nd Ã×̿Ū¤Ê¥¨¥é¡¼¤Ë¤è¤ë¥·¥¹¥Æ¥à¥À¥¦¥ó .Sh ½ñ¼° .In sys/param.h .Ft void .Fn panic "const char *fmt" ... .Sh ²òÀâ .Fn panic ´Ø¿ô¤ÏưºîÃæ¤Î¥·¥¹¥Æ¥à¤ò½ªÎ»¤µ¤»¤Þ¤¹¡£ .Fa fmt ¥á¥Ã¥»¡¼¥¸¤Ï .Xr printf 3 ¥¹¥¿¥¤¥ë¤Î¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ç¤¹¡£ ¤³¤Î¥á¥Ã¥»¡¼¥¸¤Ï¥³¥ó¥½¡¼¥ë¤Ë½ÐÎϤµ¤ì¡¢ ¸å¤Ç¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¥³¥¢¥À¥ó¥×¤«¤é¼è¤ê½Ð¤¹¤¿¤á¤Ë .Fa panicstr ¤¬¤³¤Î¥á¥Ã¥»¡¼¥¸¤Î¥¢¥É¥ì¥¹¤ËÀßÄꤵ¤ì¤Þ¤¹¡£ .Pp ¤â¤·¥«¡¼¥Í¥ë¥Ç¥Ð¥Ã¥¬¤¬ÅëºÜ¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¥Ç¥Ð¥Ã¥¬¤ËÀ©¸æ¤òÅϤ·¤Þ¤¹¡£ ¤µ¤â¤Ê¤±¤ì¤Ð¡¢¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¥³¥¢¥À¥ó¥×¤ò ÀßÄꤵ¤ì¤Æ¤¤¤ë¥À¥ó¥×¥Ç¥Ð¥¤¥¹¤ËÊݸ¤¹¤ë¤è¤¦¤Ë»î¤ß¤Þ¤¹¡£ .Pp ¤â¤· .Fn panic ¤¬ 2 ÅٸƤФ줿¾ì¹ç(¤¿¤È¤¨¤Ð¥Ç¥£¥¹¥¯Æ±´ü¥ë¡¼¥Á¥ó¤«¤é)¤Ë¤Ï¡¢ ¥Ç¥£¥¹¥¯¤ÎƱ´ü̵¤·¤Ç¥·¥¹¥Æ¥à¤Ï¥ê¥Ö¡¼¥È¤µ¤ì¤Þ¤¹¡£ .Sh Ìá¤êÃÍ .Fn panic ´Ø¿ô¤ÏÌá¤ê¤Þ¤»¤ó¡£ diff --git a/ja_JP.eucJP/man/man9/physio.9 b/ja_JP.eucJP/man/man9/physio.9 index 345dcb576f..c63454ef82 100644 --- a/ja_JP.eucJP/man/man9/physio.9 +++ b/ja_JP.eucJP/man/man9/physio.9 @@ -1,142 +1,125 @@ .\" %NetBSD: physio.9,v 1.2 1996/11/11 00:05:12 lukem Exp % .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation .\" by Paul Kranenburg. .\" .\" 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 NetBSD .\" Foundation, Inc. and its contributors. .\" 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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. .\" -.\" %FreeBSD: src/share/man/man9/physio.9,v 1.6.2.4 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/physio.9,v 1.13 2002/03/18 10:59:58 ru Exp % .\" $FreeBSD$ .\" .Dd June 15, 1996 .Dt PHYSIO 9 .Os .Sh ̾¾Î .Nm physio .Nd ¥í¥¦¥Ç¥Ð¥¤¥¹¤ÎÆþ½ÐÎϤγ«»Ï .Sh ½ñ¼° .In sys/param.h .In sys/systm.h +.In sys/bio.h .In sys/buf.h .Ft int .Fn physio "dev_t dev" "struct uio *uio" "int ioflag" .Sh ²òÀâ .Fn physio ¤ÏÄ̾ -ʸ»ú·¿¥Ç¥Ð¥¤¥¹¤Î read ¤ª¤è¤Ó write ¥ë¡¼¥Á¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë¥Ø¥ë¥Ñ¡¼´Ø¿ô¤Ç¡¢ +ʸ»ú·¿¥Ç¥Ð¥¤¥¹¤Î +.Fn read +¤ª¤è¤Ó +.Fn write +¥ë¡¼¥Á¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë¥Ø¥ë¥Ñ¡¼´Ø¿ô¤Ç¡¢ ¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤Î¥Ð¥Ã¥Õ¥¡¤Ø¤ÎÆþ½ÐÎϤò³«»Ï¤µ¤»¤Þ¤¹¡£ -¤³¤Î´Ø¿ô¤Ï -.Fa uio -¹½Â¤ÂΤ˵­½Ò¤µ¤ì¤Æ¤¤¤ëžÁ÷¤¬´°Î»¤¹¤ë¤Þ¤Ç¡¢Í¿¤¨¤é¤ì¤¿ -.Fa strategy -¥ë¡¼¥Á¥ó¤ò 1 ²ó°Ê¾å¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ -.Fa strategy -¤ò¸Æ¤Ó½Ð¤¹¤´¤È¤ÎºÇÂç¤Î¥Ç¡¼¥¿Å¾Á÷ÎÌ¤Ï -.Fa minphys -¥ë¡¼¥Á¥ó¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤Þ¤¹¡£ +¸Æ¤Ó½Ð¤·¤´¤È¤ÎºÇÂç¤Î¥Ç¡¼¥¿Å¾Á÷ÎÌ¤Ï +.Fa dev->si_iosize_max +¤Ë¤è¤Ã¤Æ·èÄꤵ¤ì¤Þ¤¹¡£ +.Pp .Fa uio ¹½Â¤ÂΤÏÄÌ¾ï¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹¤ò¼¨¤¹¤Î¤Ç¡¢ .Fn physio ¤Ï¥×¥í¥»¥¹¤ò¥á¥â¥êÃæ¤Ë¥í¥Ã¥¯¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥×¥í¥»¥¹¤Ë .Dv P_PHYSIO ¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¤³¤È¤Ç¹Ô¤Ê¤¤¤Þ¤¹¡£ °ÊÁ°¤Ë¥¨¥é¡¼¾õÂÖ¤¬¸¡½Ð¤µ¤ì¤¿»þ¤ò½ü¤¤¤Æ¡¢ .Fn physio ¤Ï¾ï¤Ë¥ê¥¿¡¼¥ó¤¹¤ëÁ°¤ËÁ´¤Æ¤ÎÍ׵ᤵ¤ì¤¿Å¾Á÷¤¬´°Î»¤¹¤ë¤Þ¤ÇÂÔ¤Á¤Þ¤¹¡£ -Á´¤Æ¤Î¾ì¹ç¤Ë¡¢ -.Fa bp -¤ËÅϤµ¤ì¤ë¥Ð¥Ã¥Õ¥¡¤ÏžÁ÷¤¬´°Î»¤¹¤ë¤Þ¤Ç¤Î´ü´ÖÃæ¡¢¥í¥Ã¥¯( -.Dq busy -¤Ë¥Þ¡¼¥¯)¤µ¤ì¤Þ¤¹¡£ .Pp °ú¿ô¤Î¾ÜºÙ¤ò²¼µ­¤Ë¼¨¤·¤Þ¤¹¡£ .Bl -tag -width "strategy" -.It Fa strategy -¤½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿¤Î¤«¤¿¤Þ¤ê¤ò¥Ç¥Ð¥¤¥¹¤ËÆþ½ÐÎϳ«»Ï¤µ¤»¤ë¤¿¤á¤Ë¸Æ¤Ð¤ì¤ë -¥Ç¥Ð¥¤¥¹¤Î strategy ¥ë¡¼¥Á¥ó¡£ -.It Fa bp -strategy ¥ë¡¼¥Á¥ó¤Ç»ÈÍѤµ¤ì¤ë¥Ð¥Ã¥Õ¥¡¡£ -¤³¤Î¥Ð¥Ã¥Õ¥¡¤Î¥Õ¥é¥°¤Ï strategy ¤ËÅϤµ¤ì¤ë»þ¤Ë -.Dv B_BUSY -¤ª¤è¤Ó -.Dv B_PHYS -¤¬¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£ -¤â¤· bp ¤¬ -.Dv NULL -¤Ç¤¢¤ì¤Ð¡¢¥·¥¹¥Æ¥à¤Î¥×¡¼¥ë¤«¤é³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£ .It Fa dev ¥Ç¥Ð¥¤¥¹¤ò¼±Ê̤¹¤ë¤¿¤á¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿¥Ç¥Ð¥¤¥¹Èֹ档 -.It Fa flags -žÁ÷Êý¸þ¡£ -Í­¸ú¤ÊÀßÄê¤Ï -.Dv B_READ -¤Þ¤¿¤Ï -.Dv B_WRITE -¤Î¤ß¡£ -.It Fa minphys -¥Ç¥Ð¥¤¥¹¤Î strategy ¥ë¡¼¥Á¥ó¤¬¼è¤ê°·¤¦»ö¤¬¤Ç¤­¤ëºÇÂç¤ÎžÁ÷¥µ¥¤¥º¤ò -·èÄꤹ¤ë¤¿¤á¤Ë¸Æ¤Ð¤ì¤ë¡¢¥Ç¥Ð¥¤¥¹¸ÇÍ­¤Î¥ë¡¼¥Á¥ó¡£ .It Fa uio ¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤«¤éÍ׵ᤵ¤ì¤¿Å¾Á÷Á´ÂΤε­½Ò¡£ ¸½ºß¤Ï¡¢ .Fa uio ¹½Â¤ÂΤΠ-.Sq uio_segflg +.Va uio_segflg ¥Õ¥é¥°¤Ë .Dv UIO_USERSPACE °Ê³°¤ÎÃͤò¥»¥Ã¥È¤·¤ÆÅϤ·¤¿¾ì¹ç¤Î·ë²Ì¤Ï̤ÄêµÁ¤Ç¤¹¡£ .El .Sh Ìá¤êÃÍ À®¸ù¤¹¤ì¤Ð .Fn physio ¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£ .Fa uio ¹½Â¤ÂΤ˼¨¤µ¤ì¤Æ¤¤¤ë¥¢¥É¥ì¥¹ÈϰϤ¬Í׵ᤷ¤¿¥×¥í¥»¥¹¤«¤é ¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï .Er EFAULT ¤òÊÖ¤·¤Þ¤¹¡£ .Fn physio ¤Ï¥Ç¥Ð¥¤¥¹¤Î strategy ¥ë¡¼¥Á¥ó¤ò¸Æ¤ó¤À·ë²Ì¤È¤·¤ÆÈ¯À¸¤¹¤ë ¤¢¤é¤æ¤ë¥¨¥é¡¼¤ò .Dv B_ERROR ¥Ð¥Ã¥Õ¥¡¥Õ¥é¥°¤ª¤è¤Ó .Va b_error ¥Õ¥£¡¼¥ë¥É¤òÄ´ºº¤·¤ÆÊÖ¤·¤Þ¤¹¡£ ¥Ç¥Ð¥¤¥¹¤¬ -.Dq end of file +.Dq "end of file" ¤Î¾õÂÖ¤ò¼¨¤·¤Æ¤¤¤ë»þ¤Ë¤Ï¡¢¼ÂºÝ¤ÎžÁ÷¥µ¥¤¥º¤Ï .Fa uio ¹½Â¤ÂΤÇÍ׵ᤷ¤Æ¤¤¤ë¥µ¥¤¥º¤è¤ê¤â¾®¤µ¤¯¤Ê¤ë»ö¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ .Sh ´ØÏ¢¹àÌÜ .Xr read 2 , .Xr write 2 +.Sh Îò»Ë +.Nm +¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï¸µ¡¹¤Ï +.Nx +¤Î¤â¤Î¤Ç¡¢ +.Fx +¤ËŬ±þ¤µ¤»¤ë¤¿¤á¤Ë¾¯¤·¤ÎÊѹ¹¤¬¤¢¤ê¤Þ¤¹¡£ +.Pp +.Nm +¤Î¸Æ¤Ó½Ð¤·¤Ï¡¢¤è¤ê¹â¤¤Æþ½ÐÎϤΥѥե©¡¼¥Þ¥ó¥¹¤È¡¢ +¤è¤êÎɤ¤¥Ú¡¼¥¸¥ó¥°¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤Î¤¿¤á¡¢´°Á´¤Ë½ñ¤­Ä¾¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/psignal.9 b/ja_JP.eucJP/man/man9/psignal.9 index dd1e232f41..d252f7ec9a 100644 --- a/ja_JP.eucJP/man/man9/psignal.9 +++ b/ja_JP.eucJP/man/man9/psignal.9 @@ -1,142 +1,142 @@ .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation .\" by Paul Kranenburg. .\" .\" 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 NetBSD .\" Foundation, Inc. and its contributors. .\" 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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. .\" .\" $NetBSD: psignal.9,v 1.1 1996/06/22 22:57:35 pk Exp $ -.\" %FreeBSD: src/share/man/man9/psignal.9,v 1.7.2.2 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/psignal.9,v 1.9 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd June 22, 1996 .Dt PSIGNAL 9 .Os .Sh ̾¾Î .Nm psignal , .Nm pgsignal , .Nm gsignal .Nd ¥×¥í¥»¥¹¤Þ¤¿¤Ï¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Ø¤Î¥·¥°¥Ê¥ë¤ÎÇÛ¿® .Sh ½ñ¼° .In sys/types.h .In sys/signalvar.h .Ft void .Fn psignal "struct proc *p" "int signum" .Ft void .Fn pgsignal "struct pgrp *pgrp" "int signum" "int checkctty" .Ft void .Fn gsignal "int pgid" "int signum" .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤Ï 1 ¤Ä°Ê¾å¤Î¥×¥í¥»¥¹¤Ø¥·¥°¥Ê¥ë¤òÇÛ¿®¤·¤Þ¤¹¡£ 3 ¤Ä¤Î´Ø¿ôÁ´¤Æ¤Ë¶¦Ä̤ʰú¿ô .Fa signum ¤Ï .Bq 1- Ns Dv NSIG ¤ÎÈϰϤǤ¢¤ë¤Ù¤­¤Ç¤¹¡£ .Pp .Fn psignal ´Ø¿ô¤Ï¥·¥°¥Ê¥ëÈÖ¹æ .Fa signum ¤ò¥×¥í¥»¥¹¹½Â¤ÂÎ .Fa p ¤Ë¤è¤Ã¤ÆÉ½¸½¤µ¤ì¤ë¥×¥í¥»¥¹¤ËÇÛ¿®¤·¤Þ¤¹¡£ °Ê²¼¤Ë¼¨¤¹¾¯¤·¤ÎÎã³°¤¬¤¢¤ê¤Þ¤¹¤¬¡¢ÇÛ¿®Àè¥×¥í¥»¥¹¥·¥°¥Ê¥ëÇÛÃ֤Ϲ¹¿·¤µ¤ì¡¢ ¼Â¹Ô²Äǽ¤È¤·¤Æ¥Þ¡¼¥¯¤µ¤ì¤Þ¤¹¡£¤½¤Î¤¿¤á¤³¤Î¥·¥°¥Ê¥ë¤Î¼è¤ê°·¤¤¤Ï¡¢ ¥³¥ó¥Æ¥­¥¹¥È¥¹¥¤¥Ã¥Á¤Î¸å¤ÇÇÛ¿®Àè¥×¥í¥»¥¹¤Î¥³¥ó¥Æ¥­¥¹¥ÈÆâ¤Ç´°Î»¤·¤Þ¤¹¡£ .Fn psignal ¤Ï¼«Ê¬¼«¿È¤Ç¥³¥ó¥Æ¥­¥¹¥È¥¹¥¤¥Ã¥Á¤ò°ú¤­µ¯¤³¤¹¤³¤È¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ .Pp °Ê²¼¤Î¾ì¹ç¤Ë¤Ï¡¢ÇÛ¿®Àè¥×¥í¥»¥¹¤¬¼Â¹Ô²Äǽ¤È¤·¤Æ¥Þ¡¼¥¯¤µ¤ì¤Þ¤»¤ó¡£ .Bl -bullet -offset indent .It ÇÛ¿®Àè¥×¥í¥»¥¹¤¬³ä¤ê¹þ¤ßÉÔ²Äǽ¤Ç̲¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¥·¥°¥Ê¥ë¤Ï¥×¥í¥»¥¹¤¬¥·¥¹¥Æ¥à¥³¡¼¥ë¤Þ¤¿¤Ï¥È¥é¥Ã¥×¤«¤éÌá¤Ã¤¿¤È¤­¤Ë ÄÌÃΤµ¤ì¤Þ¤¹¡£ .It ÇÛ¿®Àè¥×¥í¥»¥¹¤¬¸½ºß¤Ï¥·¥°¥Ê¥ë¤ò̵»ë¤·¤Æ¤¤¤Þ¤¹¡£ .It ¥Ç¥Õ¥©¥ë¥È¤Î¹Ôư .Xr ( sigaction 2 ¤ò»²¾È) ¤ò¼è¤ë̲¤Ã¤Æ¤¤¤ë¥×¥í¥»¥¹¤ËÄä»ß¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ ¤½¤Î¥×¥í¥»¥¹¤Ïµ¯¤³¤µ¤ì¤ë¤³¤È¤Ê¤¯Ää»ß¤µ¤»¤é¤ì¤Þ¤¹¡£ .It ¥·¥°¥Ê¥ë¤Î¹Ôư (Î㤨¤Ð¡¢¥Ö¥í¥Ã¥¯¤Þ¤¿¤Ï̵»ë) ¤Ë¤«¤«¤ï¤é¤º¡¢ .Dv SIGCONT ¤ÏÄä»ß¤µ¤»¤é¤ì¤Æ¤¤¤ë¥×¥í¥»¥¹¤òºÆ¥¹¥¿¡¼¥È¤µ¤»¤Þ¤¹ (¤Þ¤¿¤Ï¥¹¥ê¡¼¥×¤ËÌᤷ¤Þ¤¹)¡£ .El .Pp ÇÛ¿®Àè¥×¥í¥»¥¹¤¬¥È¥ì¡¼¥¹Ãæ¤Î¾ì¹ç¤Ë¤Ï¡¢ .Fn psignal ¤Ï¤Þ¤ë¤ÇÇÛ¿®Àè¥×¥í¥»¥¹¤¬ .Fa signum ¤Î¤¿¤á¤Î¥Ç¥Õ¥©¥ë¥È¤Î¹Ôư¤ò¼è¤Ã¤¿¤«¤Î¤è¤¦¤Ë¿¶Éñ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¥È¥ì¡¼¥¹¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤Ë¤½¤Î¥·¥°¥Ê¥ë¤¬ÄÌÃΤµ¤ì¤ë¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ .Pp .Fn pgsignal ´Ø¿ô¤Ï¥·¥°¥Ê¥ëÈÖ¹æ .Fa signum ¤ò .Fa pgrp ¤Ë¤è¤Ã¤Æµ­½Ò¤µ¤ì¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î¸Ä¡¹¤Î¥á¥ó¥Ð¤ËÇÛ¿®¤·¤Þ¤¹¡£ .Fa checkctty ¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥·¥°¥Ê¥ë¤ÏÀ©¸æÃ¼Ëö¤ò»ý¤Ã¤Æ¤¤¤ë¥×¥í¥»¥¹¤Ë¤Î¤ß ÇÛ¿®¤µ¤ì¤Þ¤¹¡£ .Fn pgsignal ¤Ï .Fa pgrp ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¹½Â¤ÂΤΠ.Li pg_members ¥Õ¥£¡¼¥ë¥É¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¥×¥í¥»¥¹¥ê¥¹¥È¤Ë±è¤Ã¤ÆÊ⤭¡¢Å¬ÀÚ¤Ë .Fn psignal ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ë¤è¤Ã¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Fa pgrp ¤¬ .Dv NULL ¤Î¾ì¹ç¤Ë¤Ï²¿¤Î¹Ôư¤â¼è¤ê¤Þ¤»¤ó¡£ .Pp .Fn gsignal ´Ø¿ô¤Ï¥·¥°¥Ê¥ëÈÖ¹æ .Fa signum ¤ò¥°¥ë¡¼¥× ID .Fa pgid ¤Ë¤è¤Ã¤Æ¼±Ê̤µ¤ì¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î¸Ä¡¹¤Î¥á¥ó¥Ð¤ËÇÛ¿®¤·¤Þ¤¹¡£ .Fn gsignal ¤ÏºÇ½é¤Ë .Fa pgid ¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤Æ¤¤¤ë¥°¥ë¡¼¥×¹½Â¤ÂΤò¸«¤Ä¤±¡¢¤½¤ì¤«¤é°ú¿ô .Fa checkctty ¤ò 0 ¤ËÀßÄꤷ¤Æ .Fn pgsignal ¤ò¼Â¹Ô¤·¤Þ¤¹¡£ .Fa pgid ¤¬ 0 ¤Î¾ì¹ç¤Ë¤Ï²¿¤Î¹Ôư¤â¼è¤ê¤Þ¤»¤ó¡£ .Sh ´ØÏ¢¹àÌÜ .Xr sigaction 2 , .Xr tsleep 9 diff --git a/ja_JP.eucJP/man/man9/resettodr.9 b/ja_JP.eucJP/man/man9/resettodr.9 index 280da3f4f8..612b8cf66d 100644 --- a/ja_JP.eucJP/man/man9/resettodr.9 +++ b/ja_JP.eucJP/man/man9/resettodr.9 @@ -1,60 +1,60 @@ .\" %NetBSD: resettodr.9,v 1.1 1995/11/25 21:24:51 perry Exp % .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" 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 Christopher G. Demetriou .\" for the NetBSD Project. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/resettodr.9,v 1.4.2.2 2001/12/17 11:30:18 ru Exp % +.\" %FreeBSD: src/share/man/man9/resettodr.9,v 1.6 2001/10/01 16:09:25 ru Exp % .\" $FreeBSD$ .\" .Dd November 13, 1995 .Dt RESETTODR 9 .Os .Sh ̾¾Î .Nm resettodr .Nd ¥Ð¥Ã¥Æ¥ê¡¼¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î»þ·×¤ò¥·¥¹¥Æ¥à¤Î»þ´Ö¤Ë¹ç¤ï¤»¤ë .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft void .Fn resettodr "void" .Sh ²òÀâ .Fn resettodr ´Ø¿ô¤Ï¥·¥¹¥Æ¥à¤Î¥Ð¥Ã¥Æ¥ê¡¼¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î»þ·×¤ò¥·¥¹¥Æ¥à¤¬ÊÝÍ­¤·¤Æ¤¤¤ë .Va time ÊÑ¿ô¤Î»þ´Ö¤Ë¹ç¤ï¤»¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr inittodr 9 , .Xr time 9 .Sh ¥Ð¥° ¿¤¯¤Î¥·¥¹¥Æ¥à¤Ç .Fn resettodr ¤ÏÆâÉôɽ¸½¤Î .Va time ¤«¤éǯ¡¢·î¡¢Æü¡¢»þ¡¢Ê¬¡¢ÉäÇɽ¸½¤µ¤ì¤ë»þ¹ï¤ËÊÑ´¹¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¿¤¯¤Î¥¤¥ó¥×¥ê¥á¥ó¥Æ¡¼¥·¥ç¥ó¤Ç¤Ï¥³¡¼¥É¤Î¶¦Í­¤¬²Äǽ¤Ç¤¹¤¬¡¢¶¦Í­¤·¤Æ¤¤¤Þ¤»¤ó¡£ diff --git a/ja_JP.eucJP/man/man9/sbuf.9 b/ja_JP.eucJP/man/man9/sbuf.9 index a215894c51..834f6c4a57 100644 --- a/ja_JP.eucJP/man/man9/sbuf.9 +++ b/ja_JP.eucJP/man/man9/sbuf.9 @@ -1,361 +1,366 @@ .\"- .\" Copyright (c) 2000 Poul Henning Kamp and Dag-Erling Coïdan Smørgrav .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/sbuf.9,v 1.12.2.4 2002/09/23 04:51:53 kbyanc Exp % +.\" %FreeBSD: src/share/man/man9/sbuf.9,v 1.19 2002/10/04 09:58:17 phk Exp % .\" $FreeBSD$ .\" -.Dd January 28, 2001 +.Dd January 3, 2002 .Dt SBUF 9 .Os .Sh ̾¾Î .Nm sbuf_new , .Nm sbuf_clear , .Nm sbuf_setpos , .Nm sbuf_bcat , .Nm sbuf_bcopyin , .Nm sbuf_bcpy , .Nm sbuf_cat , .Nm sbuf_copyin , .Nm sbuf_cpy , .Nm sbuf_printf , .Nm sbuf_vprintf , .Nm sbuf_putc , .Nm sbuf_trim , .Nm sbuf_overflowed , .Nm sbuf_finish , .Nm sbuf_data , .Nm sbuf_len , +.Nm sbuf_done , .Nm sbuf_delete .Nd °ÂÁ´¤Êʸ»úÎó¥Õ¥©¡¼¥Þ¥Ã¥È .Sh ½ñ¼° .In sys/types.h .In sys/sbuf.h .Ft struct sbuf * .Fn sbuf_new "struct sbuf *s" "char *buf" "int length" "int flags" .Ft void .Fn sbuf_clear "struct sbuf *s" .Ft int .Fn sbuf_setpos "struct sbuf *s" "int pos" .Ft int .Fn sbuf_bcat "struct sbuf *s" "const char *str" "size_t len" .Ft int .Fn sbuf_bcopyin "struct sbuf *s" "const void *uaddr" "size_t len" .Ft int .Fn sbuf_bcpy "struct sbuf *s" "const char *str" "size_t len" .Ft int .Fn sbuf_cat "struct sbuf *s" "const char *str" .Ft int .Fn sbuf_copyin "struct sbuf *s" "const void *uaddr" "size_t len" .Ft int .Fn sbuf_cpy "struct sbuf *s" "const char *str" .Ft int .Fn sbuf_printf "struct sbuf *s" "const char *fmt" "..." .Ft int .Fn sbuf_vprintf "struct sbuf *s" "const char *fmt" "va_list ap" .Ft int .Fn sbuf_putc "struct sbuf *s" "int c" .Ft int .Fn sbuf_trim "struct sbuf *s" .Ft int .Fn sbuf_overflowed "struct sbuf *s" .Ft void .Fn sbuf_finish "struct sbuf *s" .Ft char * .Fn sbuf_data "struct sbuf *s" .Ft int .Fn sbuf_len "struct sbuf *s" +.Ft int +.Fn sbuf_done "struct sbuf *s" .Ft void .Fn sbuf_delete "struct sbuf *s" .Sh ²òÀâ .Nm sbuf ¥Õ¥¡¥ß¥ê¤Î´Ø¿ô¤Ï¡¢¥«¡¼¥Í¥ë¶õ´ÖÆâ¤Î¶­³¦¤Î¤¢¤ë¥Ì¥ë½ªÃ¼Ê¸»úÎó¤Î¡¢ °ÂÁ´¤Ê³ä¤êÅö¤Æ¡¢¹½ÃÛ¡¢¤ª¤è¤Ó²òÊü¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Ê¸»ú¤ÎÇÛÎó¤ÎÂå¤ï¤ê¤Ë¡¢ .Aq Pa sys/sbuf.h ¤ÇÄêµÁ¤µ¤ì¤ë .Fa sbuf ¤È¸Æ¤Ð¤ì¤ë¹½Â¤ÂΤòÁàºî¤·¤Þ¤¹¡£ .Pp .Fn sbuf_new ´Ø¿ô¤ÏºÇ½é¤Î°ú¿ô¤Ç»Ø¤µ¤ì¤ë .Fa sbuf ¤ò½é´ü²½¤·¤Þ¤¹¡£ ¤½¤Î¥Ý¥¤¥ó¥¿¤¬ .Dv NULL ¤Î¾ì¹ç¤Ë¤Ï¡¢ .Fn sbuf_new ¤Ï .Vt struct sbuf ¹½Â¤ÂΤò .Xr malloc 9 ¤ò»ÈÍѤ·¤Æ³ä¤êÅö¤Æ¤Þ¤¹¡£ .Fa buf °ú¿ô¤Ï¼ÂºÝ¤Ëʸ»úÎ󤬳ÊǼ¤µ¤ì¤ë¥Ð¥Ã¥Õ¥¡¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¡¢ .Dv NULL ¤Î¾ì¹ç¤Ë¤Ï¡¢ .Fn sbuf_new ¤Ï .Xr malloc 9 ¤ò»ÈÍѤ·¤Æ¥Ð¥Ã¥Õ¥¡¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£ .Fa length ¤Ï³ÊǼ¥Ð¥Ã¥Õ¥¡¤Î½é´ü¤ÎÂ礭¤µ¤Ç¤¹¡£ 4 ÈÖÌܤΰú¿ô .Fa flags ¤Ï°Ê²¼¤Î¥Õ¥é¥°¤«¤é¹½À®¤µ¤ìÆÀ¤Þ¤¹: .Bl -tag -width ".Dv SBUF_AUTOEXTEND" .It Dv SBUF_FIXEDLEN ³ÊǼ¥Ð¥Ã¥Õ¥¡¤Ï½é´ü¥µ¥¤¥º¤Ç¸ÇÄê¤Ç¤¹¡£ ¤³¤ì¤ò±Û¤¨¤Æ sbuf ¤ò³ÈÄ¥¤·¤è¤¦¤È¤¹¤ë¤È¡¢¥ª¡¼¥Ð¥Õ¥í¡¼¾õÂ֤Ȥʤê¤Þ¤¹¡£ .It Dv SBUF_AUTOEXTEND ¤³¤ì¤Ï¡¢Äɲåǡ¼¥¿¤Î³ÊǼ¤Î¤¿¤á¤ËɬÍפʤé¤Ð¡¢ »ñ¸»¤Îµö¤¹¸Â¤ê¤Ë¤ª¤¤¤Æ¡¢³ÊǼ¥Ð¥Ã¥Õ¥¡¤Ï³ÈÄ¥²Äǽ¤Ç¤¢¤ë¤³¤È¤ò¼¨¤·¤Þ¤¹¡£ .El .Pp .Fa buf ¤¬ .Dv NULL ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¾¯¤Ê¤¯¤È¤â .Fa length ʸ»ú°Ê¾å¤ÎÇÛÎó¤ò»Ø¤µ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ Ä󶡤µ¤ì¤ë¥Ð¥Ã¥Õ¥¡¤ÎÆâÍÆ¤Ï̤ÄêµÁ¤Ç¤¹¡£ sbuf ¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤¹¤¿¤á¤Ë¤Ï¡¢´°Î»¤·¤¿ .Fa sbuf ¤ËÂФ·¤Æ .Fn sbuf_data ¤ò¸Æ¤Ó½Ð¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£ .Pp .Fn sbuf_clear ´Ø¿ô¤Ï .Fa sbuf ¤ÎÆâÍÆ¤ò̵¸ú¤Ë¤·¡¢°ÌÃÖ¤ò 0 ¤Ë¥ê¥»¥Ã¥È¤·¤Þ¤¹¡£ .Pp .Fn sbuf_setpos ´Ø¿ô¤Ï .Fa sbuf ¤Î½ªÎ»°ÌÃÖ¤ò¡¢0 ¤È³ÊǼ¥Ð¥Ã¥Õ¥¡¤ÎÂ礭¤µ¤è¤ê¤â 1 ¾®¤µ¤¤Ãͤδ֤ÎÃͤǤ¢¤ë .Fa pos ¤ËÀßÄꤷ¤Þ¤¹¡£ ·ë²Ì¤È¤·¤Æ¡¢¿·¤·¤¤°ÌÃ֤ˤª¤¤¤Æ sbuf ¤ÎÀèü¤òÀÚ¤ê¼Î¤Æ¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£ .Pp .Fn sbuf_bcat ´Ø¿ô¤Ï¥Ð¥¤¥ÈÎó .Fa str ¤ÎºÇ½é¤Î .Fa len ¥Ð¥¤¥È¤ò .Fa sbuf ¤ËÄɲä·¤Þ¤¹¡£ .Pp .Fn sbuf_bcopyin ´Ø¿ô¤ÏÌÀ¼¨¤µ¤ì¤¿¥æ¡¼¥¶¶õ´Ö¥¢¥É¥ì¥¹¤«¤é .Fa sbuf ¤Ë .Fa len ¥Ð¥¤¥È¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .Pp .Fn sbuf_bcpy ´Ø¿ô¤Ï .Fa sbuf ¤ÎÆâÍÆ¤ò¥Ð¥¤¥ÈÎó .Fa str ¤ÎºÇ½é¤Î .Fa len ¥Ð¥¤¥È¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£ .Pp .Fn sbuf_cat ´Ø¿ô¤Ï NUL ʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó .Fa str ¤ò .Fa sbuf ¤Î¸½ºß°ÌÃÖ¤ËÄɲä·¤Þ¤¹¡£ .Pp .Fn sbuf_copyin ´Ø¿ô¤Ï NUL ʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤òÌÀ¼¨¤µ¤ì¤¿¥æ¡¼¥¶¶õ´Ö¥¢¥É¥ì¥¹¤«¤é .Fa sbuf ¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£ .Fa len °ú¿ô¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï .Fa len ʸ»ú¤ò±Û¤¨¤Ê¤¤Ê¸»ú (½ªÃ¼¤Î NUL ¤Ï¿ô¤¨¤Þ¤»¤ó) ¤¬¥³¥Ô¡¼¤µ¤ì¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ïʸ»úÎóÁ´ÂΡ¢¤Þ¤¿¤Ï .Fa sbuf ¤ËµÍ¤á¹þ¤à¤³¤È¤¬½ÐÍè¤ë¤À¤±¤Îʸ»ú¤ò¥³¥Ô¡¼¤·¤Þ¤¹¡£ .Pp .Fn sbuf_cpy ´Ø¿ô¤Ï .Fa sbuf ¤ÎÆâÍÆ¤ò NUL ʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó .Fa str ¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£ ¤³¤ì¤Ï¿·¤·¤¤ .Fa sbuf ¤Ç¡¢¤Þ¤¿¤Ï .Fn sbuf_clear ¤« .Fn sbuf_setpos ¤Ç¤½¤Î°ÌÃÖ¤ò 0 ¤Ë¥ê¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë .Fa sbuf ¤Ç¡¢ .Fn sbuf_cat ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤ÈÅù²Á¤Ç¤¹¡£ .Pp .Fn sbuf_printf ´Ø¿ô¤Ï .Fa fmt ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤Æ¤¤¤ë¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë½¾¤Ã¤Æ¤½¤Î°ú¿ô¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤·¡¢ ¤½¤Î·ë²Ì¤Îʸ»úÎó¤ò .Fa sbuf ¤Î¸½ºß°ÌÃÖ¤ËÄɲä·¤Þ¤¹¡£ .Pp .Fn sbuf_vprintf ´Ø¿ô¤Ï .Fn sbuf_printf ¤ÈƱÍͤ˿¶Éñ¤¤¤Þ¤¹¤¬¡¢°ú¿ô¤¬²ÄÊÑŰú¿ô¥ê¥¹¥È .Fa ap ¤«¤é¼èÆÀ¤µ¤ì¤ë¤³¤È¤¬°ã¤¤¤Þ¤¹¡£ .Pp .Fn sbuf_putc ´Ø¿ô¤Ïʸ»ú .Fa c ¤ò .Fa sbuf ¤Î¸½ºß°ÌÃÖ¤ËÄɲä·¤Þ¤¹¡£ .Pp .Fn sbuf_trim ´Ø¿ô¤ÏËöÈø¤Î¶õÇò¤ò .Fa sbuf ¤«¤é½üµî¤·¤Þ¤¹¡£ .Pp .Fn sbuf_overflowed ´Ø¿ô¤Ï .Fa sbuf ¤¬¥ª¡¼¥Ð¥Õ¥í¡¼¤·¤Æ¤¤¤ë¾ì¹ç¤Ë 0 °Ê³°¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£ .Pp .Fn sbuf_finish ´Ø¿ô¤Ï .Fa sbuf ¤ò¥Ì¥ë¤Ç½ªÃ¼¤·¡¢¤³¤ì°Ê¾å .Fn sbuf_setpos , .Fn sbuf_cat , .Fn sbuf_cpy , .Fn sbuf_printf ¤Þ¤¿¤Ï .Fn sbuf_putc ¤ò»ÈÍѤ·¤Æ½¤Àµ¤µ¤ì¤ë¤³¤È¤¬Ìµ¤¤¤³¤È¤ò°ÕÌ£¤¹¤ë´°Î»¥Þ¡¼¥¯¤òÉÕ¤±¤Þ¤¹¡£ .Pp .Fn sbuf_data ¤ª¤è¤Ó .Fn sbuf_len ´Ø¿ô¤Ï¤½¤ì¤¾¤ì¸½ºß¤Îʸ»úÎó¤È¤½¤ÎŤµ¤òÊÖ¤·¤Þ¤¹¡£ .Fn sbuf_data ¤Ï´°Î»¤·¤¿ .Fa sbuf ¤ËÂФ·¤Æ¤Î¤ßµ¡Ç½¤·¤Þ¤¹¡£ +.Fn sbuf_done +¤Ï¤½¤Î sbuf ¤¬½ªÎ»¤·¤¿¾ì¹ç¤Ë¤Ï¡¢0 ¤Ç¤Ê¤¤ÃͤòÊÖ¤·¤Þ¤¹¡£ .Pp ºÇ¸å¤Ë¡¢ .Fn sbuf_delete ´Ø¿ô¤Ï .Fa sbuf ¤ò¥¯¥ê¥¢¤·¡¢ .Fn sbuf_new ¤Ë¤è¤Ã¤Æ³ÊǼ¥Ð¥Ã¥Õ¥¡¤ò³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ì¤Ð¡¢¤½¤ì¤ò²òÊü¤·¤Þ¤¹¡£ .Sh Ãí ¤¢¤ëÁàºî¤¬ .Fa sbuf ¤ò¥ª¡¼¥Ð¥Õ¥í¡¼¤µ¤»¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î .Fa sbuf ¤¬ .Fn sbuf_finish ¤ò»ÈÍѤ·¤Æ´°Î»¤µ¤»¤é¤ì¤ë¡¢¤Þ¤¿¤Ï .Fn sbuf_clear ¤ò»ÈÍѤ·¤Æ¥ê¥»¥Ã¥È¤µ¤ì¤ë¡¢¤Þ¤¿¤Ï .Fn sbuf_setpos ¤ò»ÈÍѤ·¤Æ¤½¤Î°ÌÃÖ¤ò 0 ¤«¤é³ÊǼ¥Ð¥Ã¥Õ¥¡¤ÎÂ礭¤µ¤è¤ê 1 ¾®¤µ¤¤ÃͤޤǤÎÃÍ¤Ë ¥ê¥»¥Ã¥È¤µ¤ì¤ë¡¢¤Þ¤¿¤Ï .Fn sbuf_cpy ¤ò»ÈÍѤ·¤Æ½½Ê¬¤Ëû¤¤Ê¸»úÎó¤Ë½é´ü²½¤µ¤ì¤ë¤Þ¤Ç¤Î´Ö¤Ï¡¢¸å¤Ë³¤¯¤Û¤È¤ó¤É¤Î¤½¤Î .Fa sbuf ¤ËÂФ¹¤ëÁàºî¤Ï¼ºÇÔ¤¹¤ë¤Ç¤·¤ç¤¦¡£ .Sh Ìá¤êÃÍ .Fn sbuf_new ¤Ï³ÊǼ¥Ð¥Ã¥Õ¥¡¤Î³ä¤êÅö¤Æ¤Ë¼ºÇÔ¤·¤¿¾ì¹ç¤Ë¤Ï .Dv NULL ¤òÊÖ¤·¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¿·¤·¤¤ .Fa sbuf ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£ .Pp .Fn sbuf_setpos ¤Ï .Fa pos ¤¬ÉÔÀµ¤Ê¾ì¹ç¤Ë¤Ï \-1 ¤òÊÖ¤·¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£ .Pp .Fn sbuf_cat , .Fn sbuf_cpy , .Fn sbuf_printf , .Fn sbuf_putc , .Fn sbuf_trim ¤ÏÁ´¤Æ¥Ð¥Ã¥Õ¥¡¤¬¥ª¡¼¥Ð¥Õ¥í¡¼¤·¤¿¾ì¹ç¤Ë¤Ï \-1 ¤òÊÖ¤·¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£ .Pp .Fn sbuf_overflowed ¤Ï¥Ð¥Ã¥Õ¥¡¤¬¥ª¡¼¥Ð¥Õ¥í¡¼¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï 0 °Ê³°¤ËÃͤòÊÖ¤·¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£ .Pp .Fn sbuf_data ¤ª¤è¤Ó .Fn sbuf_len ¤Ï¥Ð¥Ã¥Õ¥¡¤¬¥ª¡¼¥Ð¥Õ¥í¡¼¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤ì¤¾¤ì .Dv NULL ¤ª¤è¤Ó \-1 ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr printf 3 , .Xr strcat 3 , .Xr strcpy 3 , .Xr copyin 9 , .Xr copyinstr 9 , .Xr printf 9 .Sh Îò»Ë .Nm sbuf ¥Õ¥¡¥ß¥ê¤Î´Ø¿ô¤Ï .Fx 4.4 ¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .An -nosplit .Nm sbuf ¥Õ¥¡¥ß¥ê¤Î´Ø¿ô¤Ï .An Poul-Henning Kamp Aq phk@FreeBSD.org ¤¬À߷פ·¡¢ .An Dag-Erling Co\(:idan Sm\(/orgrav Aq des@FreeBSD.org ¤¬¼ÂÁõ¤·¤Þ¤·¤¿¡£ ÄɲäβþÎÉ¤Ï .An Justin T. Gibbs Aq gibbs@FreeBSD.org ¤¬Ä󰯤·¤Þ¤·¤¿¡£ ¼«Æ°³ÈÄ¥¥µ¥Ý¡¼¥È¤Ï .An Kelly Yancey Aq kbyanc@FreeBSD.org ¤¬Äɲä·¤Þ¤·¤¿¡£ .Pp ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Dag-Erling Co\(:idan Sm\(/orgrav ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/spl.9 b/ja_JP.eucJP/man/man9/spl.9 index b22ddf9267..55ae3a8906 100644 --- a/ja_JP.eucJP/man/man9/spl.9 +++ b/ja_JP.eucJP/man/man9/spl.9 @@ -1,199 +1,211 @@ .\" .\" Copyright (c) 1996 Joerg Wunsch .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/spl.9,v 1.8.2.5 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/spl.9,v 1.17 2002/07/01 22:08:43 imp Exp % .\" $FreeBSD$ .\" .Dd July 21, 1996 .Os .Dt SPL 9 .Sh ̾¾Î .Nm splbio , .Nm splclock , .Nm splhigh , .Nm splimp , .Nm splnet , .Nm splsoftclock , .Nm splsofttty , .Nm splstatclock , .Nm spltty , .Nm splvm , .Nm spl0 , .Nm splx .Nd ³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¤ÎÁàºî .Sh ½ñ¼° .In sys/types.h .In sys/systm.h .Ft intrmask_t .Fn splbio "void" .Ft intrmask_t .Fn splclock "void" .Ft intrmask_t .Fn splhigh "void" .Ft intrmask_t .Fn splimp "void" .Ft intrmask_t .Fn splnet "void" .Ft intrmask_t .Fn splsoftclock "void" .Ft intrmask_t .Fn splsofttty "void" .Ft intrmask_t .Fn splstatclock "void" .Ft intrmask_t .Fn spltty "void" .Ft void .Fn spl0 "void" .Ft void .Fn splx "intrmask_t ipl" .Sh ²òÀâ +.Bf -symbolic +¤³¤Î API ¤Ï¿ä¾©¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ +¥Ç¡¼¥¿¹½Â¤¤òÊݸ¤ë¤¿¤á¤Ë¤Ï¡¢Âå¤ï¤ê¤Ë mutex ¤ò»ÈÍѤ·¤Þ¤¹¡£ +¾ÜºÙ¾ðÊó¤Ï +.Xr mutex 9 +¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ +.Ef +.Pp .Fn spl ´Ø¿ô¥Õ¥¡¥ß¥ê¤Ï CPU ¤Î³ä¤ê¹þ¤ßÍ¥ÀèÅ٤Π.Dq ¥ì¥Ù¥ë ¤òÀßÄꤷ¤Þ¤¹¡£ ¤³¤ì¤Ï¥Ö¥í¥Ã¥¯¤µ¤ì¤¿Í¥ÀèÅÙ¥ì¥Ù¥ë¤Î³ä¤ê¹þ¤ß¥Ï¥ó¥É¥é¤Î¼Â¹Ô¤òÍÞÀ©¤·¤Þ¤¹¡£ ³ä¤ê¹þ¤ß¥Ï¥ó¥É¥é¤Ë¤è¤Ã¤ÆÄ´ºº¤¢¤ë¤¤¤Ï½¤Àµ¤µ¤ì¤¿¤Ç¤¢¤í¤¦¥Ç¡¼¥¿Îΰè¤ò Ä´ºº¤¢¤ë¤¤¤Ï½¤Àµ¤¹¤ë¥É¥é¥¤¥Ð¤Î .Dq synchronous Éôʬ(¥æ¡¼¥¶¡¼¥×¥í¥»¥¹¤òÂåɽ¤·¤Æ¼Â¹Ô¤µ¤ì¤ëÉôʬ)¤Ç»ÈÍѤµ¤ì¤Þ¤¹¡£ .Pp Ä̾綠¤ì¤¾¤ì¤Î³ä¤ê¹þ¤ß¤ò»ÈÍѤ¹¤ë¥É¥é¥¤¥Ð¤Ï¡¢ config ¥Õ¥¡¥¤¥ë¤Î¥­¡¼¥ï¡¼¥É¤Ë¤è¤Ã¤Æ 1 ¤Ä¤Î ³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥°¥ë¡¼¥×¤Ë³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹¡£ Î㤨¤Ð¡¢ .Bd -literal -offset indent device foo0 at isa? port 0x0815 irq 12 tty .Ed .Pp ¤Ï¡¢³ä¤ê¹þ¤ß 12 ¤ò .Dq tty Í¥ÀèÅÙ¥°¥ë¡¼¥×¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤Ï¼«Æ°Åª¤Ë .Em xxx ¥°¥ë¡¼¥×¤Î³ä¤ê¹þ¤ß¤òÍ¥ÀèÅÙ¤¬ .Ns spl Ns Em xxx \&() °Ê¾å¤Î»þ¤Ë¸Æ¤Ð¤ì¤ë¤è¤¦¤Ë½àÈ÷¤·¤Þ¤¹¡£ .Pp .Fn splx ´Ø¿ô¤Ï³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥ì¥Ù¥ë¤òÀäÂÐŪ¤Ê¿ôÃͤËÀßÄꤷ¤Þ¤¹¡£ ¤³¤ì¤ÏÊ̤γä¤ê¹þ¤ß¥ì¥Ù¥ë´Ø¿ô¤¬ÊÖ¤·¤¿Ãͤò¥í¡¼¥«¥ë¤ÎÊÑ¿ô¤ËÊݸ¤·¤Æ¡¢ ¸å¤Ç¸µ¤ÎÍ¥ÀèÅÙ¥ì¥Ù¥ë¤ËÌ᤹¤¿¤á¤Ë .Fn splx ¤ò»ÈÍѤ¹¤ë»ö¤ò°Õ¿Þ¤·¤Æ¤¤¤Þ¤¹¡£ .Pp .Fn spl0 ´Ø¿ô¤ÏÁ´¤Æ¤Î³ä¤ê¹þ¤ß¥Ï¥ó¥É¥é¤ò¥Ö¥í¥Ã¥¯¤·¤Ê¤¤ÃͤËÍ¥ÀèÅÙ¤ò¸º¾¯¤µ¤»¤Þ¤¹¡£ ¤¿¤À¤·¡¢AST(È󯱴ü¥·¥¹¥Æ¥à¥È¥é¥Ã¥×)¤Ï¥·¥¹¥Æ¥à¤¬ ¥æ¡¼¥¶¡¼¥â¡¼¥É¤ËÌá¤ë¤Þ¤Ç¤Î´Ö¤Ï¥Ö¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ .Pp ¤¤¤í¤¤¤í¤Ê¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Î³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥°¥ë¡¼¥×¤ÎÅÁÅýŪ¤Ê³ä¤êÅö¤Æ¤Ï¡¢ ¤ª¤ª¤è¤½¼¡¤Î¤è¤¦¤ËʬÎà¤Ç¤­¤Þ¤¹¡£ .Bl -tag -width Fn .It Fn splnet +¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥É¥é¥¤¥Ð¤Î¥½¥Õ¥È¥¦¥§¥¢Éôʬ¡£ +.It Fn splimp Á´¤Æ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¥É¥é¥¤¥Ð¡£ .It Fn splbio Á´¤Æ¤Î .Em ¥Ð¥Ã¥Õ¥¡Æþ½ÐÎÏ (¤Ä¤Þ¤ê¥Ç¥£¥¹¥¯¤Ê¤É)¤Î¥É¥é¥¤¥Ð¡£ .It Fn spltty ´ðËÜŪ¤Ë¤Ï¥Í¥Ã¥È¥ï¡¼¥¯°Ê³°¤ÎÄÌ¿®¥Ç¥Ð¥¤¥¹¤Ç¤¹¤¬¡¢ »ö¼Â¾å¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¤È¥Ç¥£¥¹¥¯°Ê³°¤ÎÁ´¤Æ¤Î¥É¥é¥¤¥Ð¡£ .El .Sh Ìá¤êÃÍ .Fn splx ¤ª¤è¤Ó .Fn spl0 °Ê³°¤ÎÁ´¤Æ¤Î´Ø¿ô¤Ï¡¢ÁàºîÁ°¤ÎÍ¥ÀèÅÙ¤ÎÃͤòÊÖ¤·¤Þ¤¹¡£ .Sh »ÈÍÑÎ㠰ʲ¼¤Ï¡¢É¸½àŪ¤Ê»ÈÍÑÎã¤Ç¤¹¡£ .Bd -literal struct foo_softc { ... int flags; #define FOO_ASLEEP 1 #define FOO_READY 2 } foo_softc[NFOO]; int foowrite(...) { struct foo_softc *sc; int s, error; ... s = spltty(); if (!(sc->flags & FOO_READY)) { /* ½àÈ÷¤¬¤Ç¤­¤Æ¤¤¤Þ¤»¤ó¡¢ÂÔµ¡¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó */ sc->flags |= FOO_ASLEEP; error = tsleep(sc, PZERO, "foordy", 0); sc->flags &= ~FOO_ASLEEP; } sc->flags &= ~FOO_READY; splx(s); ... } void foointr(...) { struct foo_softc *sc; ... sc->flags |= FOO_READY; if (sc->flags & FOO_ASLEEP) /* 狼¤¬²æ¡¹¤òÂԤäƤ¤¤Þ¤¹¡¢µ¯¤³¤·¤Æ¤¯¤À¤µ¤¤ */ wakeup(sc); ... } .Ed ³ä¤ê¹þ¤ß¥Ï¥ó¥É¥é¤Ï .Em ÀäÂÐ¤Ë Í¥ÀèÅÙ¥ì¥Ù¥ë¤ò¸º¾¯¤µ¤»¤ë¤Ù¤­¤Ç¤Ï¤Ê¤¤¡¢¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¼«Æ°Åª¤Ë¡¢¼«Ê¬¤Î¥ì¥Ù¥ë¤Î³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¤ËÁý²Ã¤µ¤»¤é¤ì¤Þ¤¹¡£ ¤¹¤Ê¤ï¤Á¡¢Æ±¤¸¥°¥ë¡¼¥×¤ÎÁ´¤Æ¤Î³ä¤ê¹þ¤ß¤Ï¥Ö¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ .Sh Îò»Ë -³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥ì¥Ù¥ë¤ÏÁá´ü¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Unix ¤ÇÅо줷¤Þ¤·¤¿¡£ +³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥ì¥Ù¥ë¤ÏÁá´ü¤Î¥Ð¡¼¥¸¥ç¥ó¤Î +.Ux +¤ÇÅо줷¤Þ¤·¤¿¡£ ÅÁÅýŪ¤Ë¤Ï̾Á°¤Ç¤Ï¤Ê¤¯¿ô»ú¤¬»È¤ï¤ì¤Æ¤¤¤Æ¡¢¤½¤Î¥ì¥Ù¥ë¤Þ¤Ç¤ÎÁ´¤Æ¤ò´Þ¤ó¤Ç (Í¥ÀèÅÙ 5 ¤Ï¥ì¥Ù¥ë 5 ¤Þ¤Ç¤ÎÁ´¤Æ¤ò¥Ö¥í¥Ã¥¯¤·¤Þ¤¹)¤¤¤¿»ö¤¬ÃΤé¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï .Fx ¤Ë¤Ï¤¢¤Æ¤Ï¤Þ¤ê¤Þ¤»¤ó¡£ ÅÁÅýŪ¤Ê̾Á° .Ql level ¤Ï¤¤¤Þ¤À¤Ëʸ»ú .Ql l ¤È¤·¤Æ¤½¤ì¤¾¤ì¤Î´Ø¿ô¤äÊÑ¿ô¤Î̾Á°¤ËÈ¿±Ç¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤·¤«¤·¡¢¼ÂºÝ¤Ë¤Ï¤â¤Ï¤ä¥ì¥Ù¥ë¤Ç¤Ï¤Ê¤¯¡¢ ¤à¤·¤í°Û¤Ê¤Ã¤¿(ÉôʬŪ¤Ë´Þ¤Þ¤ì¤¿)´Ø¿ô·²¤¬¥·¥¹¥Æ¥à¤Î¤¢¤ë´ü´Ö¥Ö¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ Îò»ËŪ¤ÊÈÖ¹æ¤Ë¤è¤ëÊýË¡¤Ïñ½ã¤Ç½çÈÖÄ̤ê¤Î ³ä¤ê¹þ¤ßÍ¥ÀèÅÙ¥ì¥Ù¥ë¥°¥ë¡¼¥×¤Ç¤¢¤ë¤È¤ß¤Ê¤¹»ö¤¬¤Ç¤­¤Þ¤¹¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An J\(:org Wunsch ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/store.9 b/ja_JP.eucJP/man/man9/store.9 index 2bf0988e9d..462a0e27d8 100644 --- a/ja_JP.eucJP/man/man9/store.9 +++ b/ja_JP.eucJP/man/man9/store.9 @@ -1,91 +1,91 @@ .\" %NetBSD: store.9,v 1.2 1996/01/09 21:59:27 perry Exp % .\" .\" Copyright (c) 1996 Jason R. Thorpe. .\" All rights reserved. .\" .\" This code is derived from software contributed by Kenneth Stailey. .\" .\" 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 for the NetBSD Project .\" by Jason R. Thorpe. .\" 4. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/store.9,v 1.7.2.4 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/store.9,v 1.11 2001/10/01 16:09:25 ru Exp % .\" $FreeBSD$ .\" .Dd January 7, 1996 .Dt STORE 9 .Os .Sh ̾¾Î .Nm store , .Nm subyte , .Nm susword , .Nm suswintr , .Nm suword .Nd ¥æ¡¼¥¶¡¼¶õ´Ö¤Ø¤Î¥Ç¡¼¥¿¤Î³ÊǼ .Sh ½ñ¼° .In sys/types.h .In sys/time.h .In sys/systm.h .In sys/resourcevar.h .Ft int .Fn subyte "void *base" "int byte" .Ft int .Fn susword "void *base" "int word" .Ft int .Fn suswintr "void *base" "int word" .Ft int .Fn suword "void *base" "int word" .Sh ²òÀâ .Nm ´Ø¿ô·²¤Ï¥æ¡¼¥¶¡¼¶õ´Ö¤Ø¾®¤µ¤Ê¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤¹¤ë¤è¤¦¤Ë¥Ç¥¶¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Pp .Nm ¥ë¡¼¥Á¥ó¤Ï°Ê²¼¤Îµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£ .Bl -tag -width "suswintr()" .It Fn subyte 1 ¥Ð¥¤¥È¤Î¥Ç¡¼¥¿¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤Ø³ÊǼ¤·¤Þ¤¹¡£ .It Fn susword 1 ¥·¥ç¡¼¥È¥ï¡¼¥É¤Î¥Ç¡¼¥¿¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤Ø³ÊǼ¤·¤Þ¤¹¡£ .It Fn suswintr 1 ¥·¥ç¡¼¥È¥ï¡¼¥É¤Î¥Ç¡¼¥¿¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤Ø³ÊǼ¤·¤Þ¤¹¡£ ¤³¤Î´Ø¿ô¤Ï³ä¤ê¹þ¤ß¥³¥ó¥Æ¥­¥¹¥ÈÃæ¤Ç¤â°ÂÁ´¤Ë¸Æ¤Ó½Ð¤»¤Þ¤¹¡£ .It Fn suword 1 ¥ï¡¼¥É¤Î¥Ç¡¼¥¿¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹ .Pa base ¤Ø³ÊǼ¤·¤Þ¤¹¡£ .El .Sh Ìá¤êÃÍ .Nm ´Ø¿ô¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¤¬¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ï -1 ¤òÊÖ¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr copy 9 , .Xr fetch 9 diff --git a/ja_JP.eucJP/man/man9/suser.9 b/ja_JP.eucJP/man/man9/suser.9 index 830a054c70..397eb4c3f5 100644 --- a/ja_JP.eucJP/man/man9/suser.9 +++ b/ja_JP.eucJP/man/man9/suser.9 @@ -1,102 +1,105 @@ .\" .\" Copyright (c) 1996 Julian R Elischer .\" All rights reserved. .\" .\" This code is derived from software contributed by Kenneth Stailey. .\" .\" 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 for the FreeBSD Project .\" by Julian R Elischer .\" 4. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/suser.9,v 1.9.2.5 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/suser.9,v 1.20 2002/04/02 16:41:11 jhb Exp % .\" $FreeBSD$ .\" .Dd October 15, 1996 .Dt SUSER 9 .Os .Sh ̾¾Î -.Nm suser -.Nd ¥¹¡¼¥Ñ¥æ¡¼¥¶¤«¤É¤¦¤«¤Î¥Á¥§¥Ã¥¯¤Èµ­Ï¿ +.Nm suser , +.Nm suser_cred +.Nd ¥×¥í¥»¥¹¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤ò»ý¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤Î¥Á¥§¥Ã¥¯ .Sh ½ñ¼° .In sys/param.h -.In sys/proc.h -.In sys/ucred.h +.In sys/systm.h .Ft int -.Fn suser "struct proc *proc" +.Fn suser "struct thread *td" .Ft int -.Fn suser_xxx "struct ucred *cred" "struct proc *proc" "int flags" +.Fn suser_cred "struct ucred *cred" "int flags" .Sh ²òÀâ .Nm ¤ª¤è¤Ó -.Nm suser_xxx +.Nm suser_cred ´Ø¿ô¤Ï¡¢¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤ò´Þ¤à¾ÚÌÀ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£ .Pp .Nm ´Ø¿ô¤ÏºÇ¤âÉáÄ̤ǡ¢ÆÃÊ̤ʻö¾ð¤¬¤½¤Î¾¤ÎÊýË¡¤òÍ׵᤹¤ë¤Î¤Ç¤Ê¤±¤ì¤Ð¡¢ ¤³¤ì¤¬»ÈÍѤµ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Pp -.Nm suser_xxx -´Ø¿ô¤Ï¡¢¥Á¥§¥Ã¥¯¤µ¤ì¤ë¤Ù¤­¾ÚÌÀ¤¬¤½¤Î¥×¥í¥»¥¹¼«¿È¤Î¤â¤Î¤Ç¤Ê¤¤»þ¡¢ -¥×¥í¥»¥¹¤¬Â¸ºß¤·¤Ê¤¤»þ¡¢¤Þ¤¿¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤¬ +.Nm suser_cred +´Ø¿ô¤Ï¡¢¥Á¥§¥Ã¥¯¤µ¤ì¤ë¤Ù¤­¾ÚÌÀ¤¬¤½¤Î¥¹¥ì¥Ã¥É¼«¿È¤Î¤â¤Î¤Ç¤Ê¤¤»þ¡¢ +¥¹¥ì¥Ã¥É¤¬Â¸ºß¤·¤Ê¤¤»þ¡¢¤Þ¤¿¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤¬ ÊĤ¸¹þ¤á¤é¤ì¤¿ root ¤Ë³ÈÂ礵¤ì¤ë¤Ù¤­»þ¤Ë¡¢»ÈÍѤµ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Pp ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢ .Xr jail 2 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ë¤è¤Ã¤ÆÊĤ¸¹þ¤á¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ¥×¥í¥»¥¹¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤ò»ý¤Á¤Þ¤»¤ó¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¤³¤ì¤¬Å¬Àڤʾì¹ç¤¬¤¢¤ê¡¢ -.Nm suser_xxx +.Nm suser_cred ´Ø¿ô¤Ø¤Î flags °ú¿ô¤Î .Dv PRISON_ROOT ¥Ó¥Ã¥È¤òÀßÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¼Â¸½¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤¬Ï´²°¤ò¼å¤¯¤·¤Ê¤¤¤³¤È¤ò¡¢Ãí°Õ¿¼¤¯ºÆÄ´ºº¤¹¤ë¤³¤È¤¬½ÅÍפǤ¹¡£ °ìÈÌŪ¤Ë¤Ï .Xr jail 2 ¸Æ¤Ó½Ð¤·¤ÎÃæ¤Î°ÅÌۤΠ.Xr chroot 2 ¤Ë¤è¤Ã¤Æ¹Ôư¤¬Êݸ¤ì¤Æ¤¤¤ë¾ì½ê¤Î¤ß¤Ë¤ª¤¤¤Æ¡¢ ¤³¤Î¤è¤¦¤Ê¸¢¸Â¤ò¾µÂú¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Pp .Nm ¤ª¤è¤Ó -.Nm suser_xxx +.Nm suser_cred ´Ø¿ô¤Ï¡¢¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤¬»ÈÍѤµ¤ì¤¿»ö¤ò¡¢ »ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤Î¥×¥í¥»¥¹¹½Â¤ÂÎÃæ¤Ëµ­Ï¿¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Î´Ø¿ô¤Îµ¡Ç½¤Î°ìÉô¤Ï¡¢¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤¬»ÈÍѤµ¤ì¤¿¤«¤É¤¦¤«¤ò ÄÌÃΤ¹¤ë¤³¤È¤Ë¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢ ¾¤Î¥Ñ¡¼¥ß¥·¥ç¥ó¤Î²ÄǽÀ­¤¬»È¤¤¿Ô¤¯¤µ¤ì¤¿¸å¤Ç¤Î¤ß¡¢ ¤³¤ì¤é´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤Ù¤­¤Ç¤¹¡£ .Sh Ìá¤êÃÍ .Nm ¤ª¤è¤Ó -.Nm suser_xxx +.Nm suser_cred ´Ø¿ô¤Ï¡¢¤½¤Î¥æ¡¼¥¶¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¤Î¸¢¸Â¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¡¢ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï .Er EPERM ¤òÊÖ¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢TRUE ¤Î±þÅú¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¸¢¸Â¤ò»ý¤Ä¤³¤È¤ò¼¨¤¹¤è¤¦¤Ê¾¤Î¼ÂÁõ¤È¤Ï .Em µÕ¤ÎÏÀÍý ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ +.Sh ´ØÏ¢¹àÌÜ +.Xr chroot 2 , +.Xr jail 2 diff --git a/ja_JP.eucJP/man/man9/sysctl_add_oid.9 b/ja_JP.eucJP/man/man9/sysctl_add_oid.9 index bcd63afe45..4b96ff462c 100644 --- a/ja_JP.eucJP/man/man9/sysctl_add_oid.9 +++ b/ja_JP.eucJP/man/man9/sysctl_add_oid.9 @@ -1,485 +1,485 @@ .\" .\" Copyright (c) 2000, Andrzej Bialecki .\" 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. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/sysctl_add_oid.9,v 1.3.2.10 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/sysctl_add_oid.9,v 1.16 2002/01/09 11:43:48 mpp Exp % .\" $FreeBSD$ .\" .Dd July 15, 2000 .Dt SYSCTL_ADD_OID 9 .Os .Sh ̾¾Î .Nm sysctl_add_oid , .Nm sysctl_remove_oid .Nd ¥é¥ó¥¿¥¤¥à sysctl ¥Ä¥ê¡¼Áàºî .Sh ½ñ¼° +.In sys/types.h .In sys/sysctl.h .Ft struct sysctl_oid * .Fo sysctl_add_oid .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "char *name" +.Fa "const char *name" .Fa "int kind" .Fa "void *arg1" .Fa "int arg2" .Fa "int (*handler) (SYSCTL_HANDLER_ARGS)" -.Fa "char *format" -.Fa "char *descr" +.Fa "const char *format" +.Fa "const char *descr" .Fc .Ft int .Fo sysctl_remove_oid .Fa "struct sysctl_oid *oidp" .Fa "int del" .Fa "int recurse" .Fc .Ft struct sysctl_oid_list * .Fo SYSCTL_CHILDREN .Fa "struct sysctl_oid *oidp" .Fc .Ft struct sysctl_oid_list * .Fo SYSCTL_STATIC_CHILDREN -.Fa "OID_NAME" +.Fa "struct sysctl_oid_list OID_NAME" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_OID .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const cha *name" .Fa "int kind" .Fa "void *arg1" .Fa "int arg2" .Fa "int (*handler) (SYSCTL_HANDLER_ARGS)" -.Fa "char *format" -.Fa "char *descr" +.Fa "const char *format" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_NODE .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "int (*handler) (SYSCTL_HANDLER_ARGS)" -.Fa "char *descr" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_STRING .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "char *arg" -.Fa "0" -.Fa "char *descr" +.Fa "int len" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_INT .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "int *arg" -.Fa "0" -.Fa "char *descr" +.Fa "int len" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_UINT .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "unsigned int *arg" -.Fa "0" -.Fa "char *descr" +.Fa "int len" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_LONG .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "long *arg" -.Fa "0" -.Fa "char *descr" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_ULONG .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "unsigned long *arg" -.Fa "0" -.Fa "char *descr" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_OPAQUE .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" .Fa "void *arg" -.Fa "size_t *len" -.Fa "char *descr" +.Fa "int len" +.Fa "const char *format" +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_STRUCT .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" -.Fa "struct TYPE *arg" -.Fa "TYPE" -.Fa "char *descr" +.Fa "void *arg" +.Fa STRUCT_NAME +.Fa "const char *descr" .Fc .Ft struct sysctl_oid * .Fo SYSCTL_ADD_PROC .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" .Fa "int number" -.Fa "NAME" +.Fa "const char *name" .Fa "int access" -.Fa "0" -.Fa "0" +.Fa "void *arg1" +.Fa "int arg2" .Fa "int (*handler) (SYSCTL_HANDLER_ARGS)" -.Fa "char *format" -.Fa "char *descr" +.Fa "const char *format" +.Fa "const char *descr" .Fc .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤ª¤è¤Ó¥Þ¥¯¥í¤Ï sysctl oid ¤Î¥é¥ó¥¿¥¤¥à (Î㤨¤Ð¥â¥¸¥å¡¼¥ë¤Î ¸ºß´ü´Ö) ¤Ç¤ÎºîÀ®¤Èºï½ü¤Î¤¿¤á¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£ ¥ê¥ó¥«¥»¥Ã¥È (¾ÜºÙ¤Ï .Aq sys/linker_set.h ¤ª¤è¤Ó .\" XXX ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï¥½¡¼¥¹¥Õ¥¡¥¤¥ë¤Î»²¾È¤òÈò¤±¤ë¤Ù¤­¤Ç¤¹¡£ .Pa src/sys/kern/kern_sysctl.c ¤ò»²¾È) ¤Ë´ð¤Å¤¯Âå¤ï¤ê¤ÎÊýË¡¤Ï¡¢³Æ¡¹¤Î¥â¥¸¥å¡¼¥ë¤Î¥í¡¼¥É»þ¤ª¤è¤Ó¥¢¥ó¥í¡¼¥É»þ¤Î ºîÀ®¤Èºï½ü¤Î¤ß¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ .Pp ·¿ .Dv CTLTYPE_NODE ¤ÎưŪ¤Ê oid ¤ÏºÆÍøÍѲÄǽ¤Ç¤¢¤ë¤¿¤á¡¢Ê£¿ô¤Î¥³¡¼¥É¥»¥¯¥·¥ç¥ó¤¬¡¢ oid ¤òºîÀ®¤ª¤è¤Óºï½ü¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£ ¼ÂºÝ¤Ë¤Ï¡¢»²¾È¥«¥¦¥ó¥È¤Ë´ð¤Å¤¤¤Æ¡¢¤½¤Î³ä¤êÅö¤Æ¤ª¤è¤Ó²òÊü¤¬¹Ô¤ï¤ì¤Þ¤¹¡£ ¤½¤Î·ë²Ì¤È¤·¤Æ¡¢2 ¤Ä°Ê¾å¤Î¥³¡¼¥É¥»¥¯¥·¥ç¥ó¤¬¡¢ÉôʬŪ¤Ë½Å¤Ê¤ê¡¢ ξ¼Ô¤¬»ÈÍѤǤ­¤ë¥Ä¥ê¡¼¤òºîÀ®²Äǽ¤Ë¤·¤Þ¤¹¡£ ½Å¤Ê¤ëÍդκîÀ®¤ä¡¢Æ±°ì¤Î̾Á°¤È¿Æ¤ò»ý¤Ä°Û¤Ê¤ë·¿¤Î»Ò¤ÎºîÀ®¤Ï¡¢ ÉÔ²Äǽ¤Ç¤¹¡£ .Pp ¿·¤·¤¯ºîÀ®¤µ¤ì¤¿ oid ¤Ï¿Æ¤Î¥Î¡¼¥É¤ËÀܳ¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤éÁ´¤Æ¤Î´Ø¿ô¤ª¤è¤Ó¥Þ¥¯¥í .Fn ( sysctl_remove_oid ¤ÏÎã³°) ¤Ë¤ª¤¤¤Æ¡¢É¬¿Ü¥Ñ¥é¥á¡¼¥¿¤Î 1 ¤Ä .Fa parent ¤Ï¡¢»Ò¤Î¿Æ¥ê¥¹¥È¤ÎÀèÆ¬¤ò»Ø¤·¤Þ¤¹¡£ .Pp ËØ¤É¤Î¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥«¥Æ¥´¥ê¤ÏÀÅŪ¤ËºîÀ®¤µ¤ì¤Þ¤¹¡£ ´û¸¤ÎÀÅŪ¤Ê oid ¤ËÀܳ¤¹¤ë¤È¤­¤Ë¡¢¤³¤Î¥Ý¥¤¥ó¥¿¤Ï .Fn SYSCTL_STATIC_CHILDREN ¥Þ¥¯¥í¤Ë¤è¤Ã¤Æ¼èÆÀ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¡¢¤½¤Î .Fa OID_NAME °ú¿ô¤Ï .Dv CTLTYPE_NODE ·¿¤Î¿Æ oid ¤Î̾Á° (¤¹¤Ê¤ï¤Á¡¢ .Xr sysctl 8 ¤Ë¤è¤Ã¤ÆÉ½¼¨¤µ¤ì¤ë̾Á°¤Ë¡¢ ¥¢¥ó¥À¥¹¥³¥¢¤òÁ°ÃÖ¤·¡¢Á´¤Æ¤Î¥É¥Ã¥È¤ò¥¢¥ó¥À¥¹¥³¥¢¤ÇÃÖ¤­´¹¤¨¤¿Ì¾Á°) ¤Ç¤¹¡£ .Pp ´û¸¤ÎưŪ¤Ê oid ¤ËÀܳ¤¹¤ë¤È¤­¤Ë¡¢¤³¤Î¥Ý¥¤¥ó¥¿¤Ï .Fn SYSCTL_CHILDREN ¥Þ¥¯¥í¤Ë¤è¤Ã¤Æ¼èÆÀ¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¡¢¤½¤Î .Fa oidp °ú¿ô¤Ï .Dv CTLTYPE_NODE ·¿¤Î¿Æ oid ¤ò»Ø¤·¤Þ¤¹¡£ .Pp .Fn sysctl_add_oid ´Ø¿ô¤Ï¤¢¤é¤æ¤ë·¿¤ÎÀ¸¤Î oid ¤òºîÀ®¤·¤Þ¤¹¡£ oid ¤ÎºîÀ®¤¬À®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¤³¤Î´Ø¿ô¤Ï¤½¤Î oid ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£ ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ .Dv NULL ¤òÊÖ¤·¤Þ¤¹¡£ .Fn sysctl_add_oid ¤Î¤¿¤á¤Î°ú¿ô¤Î¿¤¯¤Ï¥Þ¥¯¥í¤È¶¦Ä̤Ǥ¹¡£ °ú¿ô¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bl -tag -width handler .It Fa ctx ¥ª¥×¥·¥ç¥ó¤Î sysctl ¥³¥ó¥Æ¥­¥¹¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢¤Þ¤¿¤Ï .Dv NULL ¤Ç¤¹¡£ ¾ÜºÙ¤Ï .Xr sysctl_ctx_init 9 ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ÆÃÊ̤ʺîÀ®¤ª¤è¤Óºï½ü¤Î¥·¡¼¥±¥ó¥¹¤¬Í׵ᤵ¤ì¤ë¤Î¤Ç¤Ê¤±¤ì¤Ð¡¢ ºîÀ®¤¹¤ëưŪ¤Ê oid ¤òÁÈ¿¥¤¹¤ë¤¿¤á¤Ë¥³¥ó¥Æ¥­¥¹¥È¤ò»ÈÍѤ¹¤ë¤³¤È¤ò¡¢ ¥×¥í¥°¥é¥Þ¤Ï¶¯¤¯´«¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Fa ctx ¤¬ .Dv NULL ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¿·¤·¤¯ºîÀ®¤µ¤ì¤ë oid ¤ÏºÇ½é¤Î¥¨¥ó¥È¥ê¤È¤·¤Æ¤³¤Î¥³¥ó¥Æ¥­¥¹¥È¤Ë Äɲ䵤ì¤Þ¤¹¡£ .It Fa parent »Ò¤Î¿Æ¥ê¥¹¥È¤ÎÀèÆ¬¤Ç¤¢¤ë .Li struct sysctl_oid_list ¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¹¡£ .It Fa number ¤³¤Î oid ¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë oid ÈÖ¹æ¤Ç¤¹¡£ ËØ¤ÉÁ´¤Æ¤Î¾ì¹ç¡¢¤³¤ì¤Ï³ä¤êÅö¤Æ»þ¤Ë¼¡¤ÎÍøÍѲÄǽ¤Ê oid ÈÖ¹æ¤Ë¤Ê¤ë .Dv OID_AUTO ¤ËÀßÄꤵ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .It Fa name ¤³¤Î oid ¤Î̾Á°¤Ç¤¹¡£ ¿·¤·¤¯ºîÀ®¤µ¤ì¤¿ oid ¤Ï̾Á°¤Î¥³¥Ô¡¼¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£ .It Fa kind oid ¤Î¼ïÎà¤Ç¡¢ .Aq sys/sysctl.h ¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤ÎÃæ¤ÇÄêµÁ¤µ¤ì¤ë·¿¤È¥¢¥¯¥»¥¹ÃͤΥӥåȥޥ¹¥¯¤È¤·¤ÆÌÀ¼¨¤µ¤ì¤Þ¤¹¡£ ưŪ¤ËºîÀ®¤µ¤ì¤¿ oid ¤Ï¾ï¤Ë .Dv CTLTYPE_DYN ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ ¥¢¥¯¥»¥¹¥Õ¥é¥°¤Ï¤³¤Î oid ¤¬ÆÉ¤ß¼è¤êÀìÍѤ«ÆÉ¤ß½ñ¤­²Äǽ¤«¡¢¤ª¤è¤Ó Á´¤Æ¤Î¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¤Þ¤¿¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¤Î¤ß½¤Àµ²Äǽ¤«¤òÌÀ¼¨¤·¤Þ¤¹¡£ .It Fa arg1 oid ¤¬»²¾È¤¹¤Ù¤­¤¢¤é¤æ¤ë¥Ç¡¼¥¿¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢¤Þ¤¿¤Ï .Dv NULL ¤Ç¤¹¡£ .It Fa arg2 .Fa arg1 ¤ÎÂ礭¤µ¡¢¤Þ¤¿¤Ï .Fa arg1 ¤¬ .Dv NULL ¤Ç¤¢¤ì¤Ð 0 ¤Ç¤¹¡£ .It Fa handler ¤³¤Î oid ¤Ø¤ÎÆÉ¤ß½ñ¤­Í×µá¤ò¼è¤ê°·¤¦ÀÕǤ¤¬¤¢¤ë´Ø¿ô¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¹¡£ ¥Î¡¼¥É¡¢À°¿ô¡¢Ê¸»úÎ󡢤ª¤è¤ÓÉÔÆ©ÌÀ¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤ÎÁàºî¤ò¥µ¥Ý¡¼¥È¤¹¤ë ´ö¤Ä¤«¤Îɸ½à¥Ï¥ó¥É¥é¤¬Â¸ºß¤·¤Æ¤¤¤Þ¤¹¡£ .Fn SYSCTL_ADD_PROC ¥Þ¥¯¥í¤ò»ÈÍѤ·¤Æ¿·¤·¤¤¥Ï¥ó¥É¥é¤òÄêµÁ¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¹¡£ .It Fa format oid ¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤òµ­¹æÅª¤ËÌÀ¼¨¤¹¤ëʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¹¡£ ¤³¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢É½¼¨ÌÜŪ¤Î¤¿¤á¤ÎŬÀڤʥǡ¼¥¿¥Õ¥©¡¼¥Þ¥Ã¥È¤òŬÍѤ¹¤ë¤¿¤á¤Ë .Xr sysctl 8 ¤Ë¤è¤Ã¤Æ¥Ò¥ó¥È¤È¤·¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£ ¸½ºß»ÈÍѤµ¤ì¤Æ¤¤¤ë¥Õ¥©¡¼¥Þ¥Ã¥È̾¤Ï°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Dq N ¤Ï¥Î¡¼¥É¡¢ .Dq A ¤Ï .Li "char *" ·¿¡¢ .Dq I ¤Ï .Li "int" ·¿¡¢ .Dq IU ¤Ï .Li "unsigned int" ·¿¡¢ .Dq L ¤Ï .Li "long" ·¿¡¢ .Dq LU ¤Ï .Li "unsigned long" ·¿¡¢¤ª¤è¤Ó .Dq S,TYPE ¤Ï .Li "struct TYPE" ¹½Â¤ÂΤǤ¹¡£ .It Fa descr ¤³¤Î oid ¤Î²òÀâ¥Æ¥­¥¹¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¹¡£ .El .Pp .Fn sysctl_remove_oid ´Ø¿ô¤ÏưŪ¤ËºîÀ®¤µ¤ì¤¿ oid ¤ò¥Ä¥ê¡¼¤«¤éºï½ü¤·¡¢ ¥ª¥×¥·¥ç¥ó¤Ç¤½¤Î¥ê¥½¡¼¥¹¤ò²òÊü¤·¤Þ¤¹¡£ ¤³¤ì¤Ï°Ê²¼¤Î°ú¿ô¤ò¼è¤ê¤Þ¤¹¡£ .Bl -tag -width recurse .It Fa oidp ºï½ü¤µ¤ì¤ë¤Ù¤­Æ°Åª¤Ê oid ¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¹¡£ oid ¤¬Æ°Åª¤Ç¤Ê¤¤¡¢¤Þ¤¿¤Ï¥Ý¥¤¥ó¥¿¤¬ .Dv NULL ¤Î¾ì¹ç¤Ë¤Ï¡¢¤³¤Î´Ø¿ô¤Ï .Er EINVAL ¤òÊÖ¤·¤Þ¤¹¡£ .It Fa del 0 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢oid ¤Î»²¾È¥«¥¦¥ó¥È¤¬ 0 ¤Ë¤Ê¤Ã¤¿»þ¤Ë¡¢ .Fn sysctl_remove_oid ¤Ï oid ¤Î¥ê¥½¡¼¥¹¤ò²òÊü¤·¤è¤¦¤È¤·¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é .Fa del ¤¬ 0 ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥ë¡¼¥Á¥ó¤Ï oid ¤Î¥ê¥½¡¼¥¹¤Î²òÊü¤ò¤»¤º¤Ë ¥Ä¥ê¡¼¤«¤é oid ¤ÎÅÐÏ¿Ëõ¾Ã¤Î¤ß¤ò¹Ô¤Ê¤¤¤Þ¤¹¡£ ¤³¤Î¿¶Éñ¤¤¤Ï¡¢¸Æ¤Ó½Ð¤·Â¦¤¬¸å¤Ç (¤Ò¤ç¤Ã¤È¤¹¤ë¤ÈÉôʬŪ¤Ë¼ºÇÔ¤¹¤ë) ¿¿ô¤Î oid ¤Î ºï½ü¤Î¥í¡¼¥ë¥Ð¥Ã¥¯¤òͽ´ü¤·¤Æ¤¤¤ë»þ¤Ë¡¢Í­ÍѤǤ¹¡£ .It Fa recurse 0 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Î¡¼¥É¤È¤½¤Î»Ò¤òºï½ü¤·¤è¤¦¤È¤·¤Þ¤¹¡£ .Pa recurse ¤¬ 0 ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤¢¤é¤æ¤ë»Ò¤ò´Þ¤à¥Î¡¼¥É¤Îºï½ü¤Î»î¤ß¤Ï .Er ENOTEMPTY ¥¨¥é¡¼¤òȯÀ¸¤µ¤»¤Þ¤¹¡£ .Em ·Ù¹ð : "ºÆµ¢Åª¤Êºï½ü¤ÏÈó¾ï¤ÊÃí°Õ¤òʧ¤Ã¤Æ»ÈÍѤ¹¤ë¤³¤È" ! Ä̾¥³¥ó¥Æ¥­¥¹¥È¤¬»ÈÍѤµ¤ì¤Æ¤¤¤ì¤Ð¡¢É¬ÍפȤµ¤ì¤ë¤Ù¤­¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¥³¥ó¥Æ¥­¥¹¥È¤Ï¥Ä¥ê¡¼¤ÎÍøÍѼԴ֤ΰ͸À­¤ÎÄÉÀפËÃí°Õ¤·¤Æ¤¤¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¤¢¤ë¶Ëü¤Ê¾ì¹ç¤Ë¤Ï¡¢¤¢¤ë¾¤Î¥ê¥½¡¼¥¹¤ò²òÊü¤¹¤ë¤¿¤á¤Ë¡¢ ¤½¤ì¤¬¤É¤Î¤è¤¦¤ËºîÀ®¤µ¤ì¤¿¤â¤Î¤Ç¤¢¤ì¡¢¥µ¥Ö¥Ä¥ê¡¼¤Î°ìÉô¤òºï½ü¤¹¤ë¤³¤È¤¬ ɬÍפˤʤ뤳¤È¤¬¤¢¤ê¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¤³¤Î¤³¤È¤Ï¡¢Ê̤Υ³¡¼¥É¥»¥¯¥·¥ç¥ó¤¬ºï½ü¤µ¤ì¤¿¥µ¥Ö¥Ä¥ê¡¼¤ò »ÈÍѤ·Â³¤±¤ë¾ì¹ç¤Ë¡¢¥·¥¹¥Æ¥à¤Î .Xr panic 9 ¤ò°ú¤­µ¯¤³¤¹¤³¤È¤¬¤¢¤ë¤³¤È¤òÃΤäƤ¤¤Æ¤¯¤À¤µ¤¤¡£ .El .Pp .\" XXX sheldonh ¤Ï¤³¤³¤Þ¤Ç»Å¾å¤²¤Þ¤·¤¿¡£ ºÆÅÙ¸À¤¤¤Þ¤¹¤¬¡¢Ëؤó¤É¤Î¾ì¹ç¡¢ºîÀ®¤µ¤ì¤¿ oid ¤ò¸«¼º¤ï¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤¿¤á¡¢ ¤ª¤è¤Ó¸å¤ÇÀ°Á³¤È¤·¤¿Î®µ·¤Ç¤½¤ì¤é¤òºï½ü¤¹¤ë¤¿¤á¡¢ .Xr sysctl_ctx_init 9 ¤Ç²òÀ⤵¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢¥×¥í¥°¥é¥Þ¤Ï¥³¥ó¥Æ¥­¥¹¥È¤ò»ÈÍѤ¹¤ë¤Ù¤­¤Ç¤¹¡£ .Pp Í¿¤¨¤é¤ì¤¿·¿¤Î oid ¤ÎºîÀ®¤ò½õ¤±¤ëÄêµÁºÑ¤ß¤Î¥Þ¥¯¥í¥»¥Ã¥È¤¬¤¢¤ê¤Þ¤¹¡£ .Bl -tag -width SYSCTL_ADD_STRINGXX ¤½¤ì¤é¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_OID ¤ÏÀ¸¤Î oid ¤òºîÀ®¤·¤Þ¤¹¡£ ¤³¤Î¥Þ¥¯¥í¤Ïµ¡Ç½Åª¤Ë¤Ï .Fn sysctl_add_oid ´Ø¿ô¤ÈƱÅù¤Ç¤¹¡£ .It Fn SYSCTL_ADD_NODE ¤Ï·¿ .Dv CTLTYPE_NODE ¤Î oid ¤òºîÀ®¤·¤Þ¤¹¡£ ¤³¤Î oid ¤ËÂФ·¤Æ¡¢»Ò¤Î oid ¤òÄɲòÄǽ¤Ç¤¹¡£ .It Fn SYSCTL_ADD_STRING ¤Ï 0 ¤Ç½ªÃ¼¤µ¤ì¤¿Ê¸»úÎó¤ò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_INT ¤Ï .Li int ÊÑ¿ô¤ò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_UINT ¤Ï .Li unsigned int ÊÑ¿ô¤ò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_LONG ¤Ï .Li long ÊÑ¿ô¤ò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_ULONG ¤Ï .Li unsigned long ÊÑ¿ô¤ò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_OPAQUE ¤Ï .Li "size_t *" ¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë .Fa len °ú¿ô¤Ë¤è¤Ã¤ÆÌÀ¼¨¤µ¤ì¤¿Â礭¤µ¤Î¤¢¤é¤æ¤ëÉÔÆ©ÌÀ¤Ê¥Ç¡¼¥¿¤Î¤«¤¿¤Þ¤ê¤ò ¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .It Fn SYSCTL_ADD_STRUCT ¤Ï .Li "struct TYPE" ¹½Â¤ÂΤò¼è¤ê°·¤¦ oid ¤òºîÀ®¤·¤Þ¤¹¡£ .Fa format °ú¿ô¤Ï .Xr sysctl 8 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ø¤ÎŬÀڤʥҥó¥È¤òÄ󶡤¹¤ë¤¿¤á¤Ë .Dq S,TYPE ¤ËÀßÄꤵ¤ì¤Þ¤¹¡£ .It Fn SYSCTL_ADD_PROC ¤ÏÌÀ¼¨¤µ¤ì¤¿ .Pa handler ¥Ï¥ó¥É¥é´Ø¿ô¤ò»ý¤Ä oid ¤òºîÀ®¤·¤Þ¤¹¡£ ¥Ï¥ó¥É¥é¤Ï oid ¤ËÂФ·¤Æ¤ÎÆÉ¤ß½ñ¤­Í×µá¤ò¼è¤ê°·¤¦ÀÕǤ¤ò»ý¤Á¤Þ¤¹¡£ ¥«¡¼¥Í¥ë¥Ç¡¼¥¿¤¬´Êñ¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï¼è¤ê½Ð¤µ¤ì¤ëÁ°¤Ë½èÍý¤µ¤ì¤ë ɬÍפ¬¤¢¤ë¾ì¹ç¤Ë¡¢¤³¤Î oid ·¿¤ÏÆÃ¤ËÍ­ÍѤǤ¹¡£ .El .Sh »ÈÍÑÎ㠰ʲ¼¤Ï¡¢¤É¤Î¤è¤¦¤Ë¿·¤·¤¤¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥«¥Æ¥´¥ê¤òºîÀ®¤¹¤ë¤«¡¢¤ª¤è¤Ó ¤É¤Î¤è¤¦¤Ë´û¸¤ÎÀÅŪ¤Ê¥Î¡¼¥É¤ËÊ̤Υµ¥Ö¥Ä¥ê¡¼¤ò°ú¤Ã³Ý¤±¤ë¤« ¤ò¼¨¤¹»ÈÍÑÎã¤Ç¤¹¡£ ¤³¤Î»ÈÍÑÎã¤Ï¥³¥ó¥Æ¥­¥¹¥È¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤»¤ó¡£ ¤³¤ì¤ÏÁ´¤Æ¤Î¸å¤Ç¤½¤ì¤é¤ò²òÊü¤¹¤ë¤È¤¤¤Ã¤¿¡¢ Ãæ´Ö¤Î oid ¤ÎÂà¶þ¤Ê´ÉÍý¤ò·ë²Ì¤È¤·¤ÆÀ¸¤¸¤µ¤»¤Þ¤¹¡£ .Bd -literal #include ... /* ¿·¤·¤¯ºîÀ®¤·¤¿¥µ¥Ö¥Ä¥ê¡¼¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ï¡¢¸å¤Ç¤½¤ì¤é¤ò²òÊü¤¹¤ë¤¿¤á¤Ë * Êݸ¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£ */ struct sysctl_oid *root1, *root2, *oidp; int a_int; char *string = "dynamic sysctl"; ... root1 = SYSCTL_ADD_NODE( NULL, SYSCTL_STATIC_CHILDREN(/* tree top */), - OID_AUTO, newtree, CTFLAG_RW, 0, "new top level tree"); + OID_AUTO, "newtree", CTFLAG_RW, 0, "new top level tree"); oidp = SYSCTL_ADD_INT( NULL, SYSCTL_CHILDREN(root1), - OID_AUTO, newint, CTLFLAG_RW, &a_int, 0, "new int leaf"); + OID_AUTO, "newint", CTLFLAG_RW, &a_int, 0, "new int leaf"); ... root2 = SYSCTL_ADD_NODE( NULL, SYSCTL_STATIC_CHILDREN(_debug), - OID_AUTO, newtree, CTFLAG_RW, 0, "new tree under debug"); + OID_AUTO, "newtree", CTFLAG_RW, 0, "new tree under debug"); oidp = SYSCTL_ADD_STRING( NULL, SYSCTL_CHILDREN(root2), - OID_AUTO, newstring, CTLFLAG_R, string, 0, "new string leaf"); + OID_AUTO, "newstring", CTLFLAG_R, string, 0, "new string leaf"); .Ed .Pp ¤³¤Î»ÈÍÑÎã¤Ï°Ê²¼¤Î¥µ¥Ö¥Ä¥ê¡¼¤òºîÀ®¤·¤Þ¤¹¡£ .Bd -literal -offset indent debug.newtree.newstring newtree.newint .Ed .Pp .Em "¤³¤ì°Ê¾åɬÍפǤʤ¯¤Ê¤Ã¤¿Á´¤Æ¤Î oid ¤Ï²òÊü¤µ¤ì¤ë¤Ù¤­¤Ç¤¢¤ë¤³¤È¤ËÃí°Õ!" .Sh ´ØÏ¢¹àÌÜ .Xr sysctl 8 , .Xr sysctl_ctx_free 9 , .Xr sysctl_ctx_init 9 .Sh Îò»Ë ¤³¤ì¤é¤Î´Ø¿ô¤Ï .Fx 4.2 ¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .An Andrzej Bialecki Aq abial@FreeBSD.org .Sh ¥Ð¥° ¿¤¯¤Î¥³¡¼¥É¥»¥¯¥·¥ç¥ó´Ö¤Ç¥Î¡¼¥É¤ò¶¦Í­¤¹¤ë¤³¤È¤Ï¡¢ »þ¡¹¥ê¥½¡¼¥¹¤ò¥í¥Ã¥¯¤¹¤ë¤³¤È¤¬¤¢¤ëÁê¸ß°Í¸¤ò°ú¤­µ¯¤³¤·¤Þ¤¹¡£ Î㤨¤Ð¡¢¥â¥¸¥å¡¼¥ë B ¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿ oid ¤ËÂФ·¡¢ ¥â¥¸¥å¡¼¥ë A ¤¬¥µ¥Ö¥Ä¥ê¡¼¤ò°ú¤Ã³Ý¤±¤¿¾ì¹ç¤Ë¤Ï¡¢ ¥â¥¸¥å¡¼¥ë B ¤Ï¤½¤Î oid ¤òºï½ü¤Ç¤­¤Ê¤¤¤Ç¤·¤ç¤¦¡£ ¤³¤ì¤é¤ÎÌäÂê¤Ï sysctl ¥³¥ó¥Æ¥­¥¹¥È¤Ë¤è¤Ã¤ÆÅ¬Àڤ˼è¤ê°·¤ï¤ì¤Þ¤¹¡£ .Pp ¥Ä¥ê¡¼¾å¤Î¿¤¯¤ÎÁàºî¤Ï¥ê¥ó¥¯¥ê¥¹¥È¤ò²£Àڤ뤳¤È¤òɬÍפȤ·¤Þ¤¹¡£ ¤³¤ÎÍýͳ¤Î¤¿¤á¡¢oid ¤ÎºîÀ®¤Èºï½ü¤ÏÁêÂÐŪ¤Ë¥³¥¹¥È¤¬¤«¤«¤ê¤Þ¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/sysctl_ctx_init.9 b/ja_JP.eucJP/man/man9/sysctl_ctx_init.9 index 501625b45b..43a9cc8c1c 100644 --- a/ja_JP.eucJP/man/man9/sysctl_ctx_init.9 +++ b/ja_JP.eucJP/man/man9/sysctl_ctx_init.9 @@ -1,231 +1,232 @@ .\" .\" Copyright (c) 2000, Andrzej Bialecki .\" 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. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/sysctl_ctx_init.9,v 1.2.2.6 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/sysctl_ctx_init.9,v 1.10 2002/01/09 11:43:48 mpp Exp % .\" $FreeBSD$ .\" .Dd July 15, 2000 .Dt SYSCTL_CTX_INIT 9 .Os .Sh ̾¾Î .Nm sysctl_ctx_init , .Nm sysctl_ctx_free , .Nm sysctl_ctx_entry_add , .Nm sysctl_ctx_entry_find , .Nm sysctl_ctx_entry_del .Nd ưŪ¤ËÀ¸À®¤µ¤ì¤¿ sysctl oid ¤Î¤¿¤á¤Î sysctl ¥³¥ó¥Æ¥­¥¹¥È .Sh ½ñ¼° +.In sys/types.h .In sys/sysctl.h .Ft int .Fo sysctl_ctx_init .Fa "struct sysctl_ctx_list *clist" .Fc .Ft int .Fo sysctl_ctx_free .Fa "struct sysctl_ctx_list *clist" .Fc .Ft struct sysctl_ctx_entry * .Fo sysctl_ctx_entry_add .Fa "struct sysctl_ctx_list *clist" .Fa "struct sysctl_oid *oidp" .Fc .Ft struct sysctl_ctx_entry * .Fo sysctl_ctx_entry_find .Fa "struct sysctl_ctx_list *clist" .Fa "struct sysctl_oid *oidp" .Fc .Ft int .Fo sysctl_ctx_entry_del .Fa "struct sysctl_ctx_list *clist" .Fa "struct sysctl_oid *oidp" .Fc .Sh ²òÀâ ¤³¤ì¤é¤Î´Ø¿ô¤ÏưŪ¤ËºîÀ®¤µ¤ì¤¿ oid ¤Î´ÉÍý¤Î¤¿¤á¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤·¤Þ¤¹¡£ sysctl ¥³¥ó¥Æ¥­¥¹¥È¤ÏºîÀ®¤µ¤ì¤¿ oid ¤ÎɬÍפʻþ¤Î¸·Ì©¤Êºï½ü¤Ï¤â¤Á¤í¤ó¡¢ oid ¤ò¸«¼º¤ï¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤³¤È¤ËÂФ·¤ÆÀÕǤ¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï oid ¤Îºï½üÁàºî¤Ë´Êñ¤Ê¥È¥é¥ó¥¶¥¯¥·¥ç¥óŪ¤Ê¦Ì̤òÄɲä·¤Þ¤¹¡£ ¤¹¤Ê¤ï¤Á¡¢ÅÓÃæ¤Çºï½üÁàºî¤¬¼ºÇÔ¤·¤¿¾ì¹ç¤Ë¡¢sysctl ¥Ä¥ê¡¼¤ò°ÊÁ°¤Î¾õÂÖ¤Ë ¥í¡¼¥ë¥Ð¥Ã¥¯¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£ .Pp .Fn sysctl_ctx_init ´Ø¿ô¤Ï sysctl ¥³¥ó¥Æ¥­¥¹¥È¤ò½é´ü²½¤·¤Þ¤¹¡£ .Fa clist °ú¿ô¤Ï´û¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ëÊÑ¿ô¤ò»Ø¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¥³¥ó¥Æ¥­¥¹¥È¤Ï»ÈÍѤÎÁ°¤Ë .Em ɬ¤º ½é´ü²½¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ °ìÅÙ½é´ü²½¤µ¤ì¤ë¤È¡¢¤½¤Î¥³¥ó¥Æ¥­¥¹¥È¤Î¥Ý¥¤¥ó¥¿¤ÏÁ´¤Æ¤Î .Fa SYSCTL_ADD_* ¥Þ¥¯¥í .Xr ( sysctl_add_oid 9 »²¾È) ¤Î°ú¿ô¤È¤·¤ÆÅϤµ¤ì¤ë¤³¤È¤¬²Äǽ¤Ç¡¢¿·¤·¤¯ºîÀ®¤µ¤ì¤ë oid ¤ò»Ø¤¹¥¨¥ó¥È¥ê ¤òȼ¤Ã¤Æ¹¹¿·¤µ¤ì¤ë¤Ç¤·¤ç¤¦¡£ .Pp ÆâÉôŪ¤Ë¤Ï¡¢¥³¥ó¥Æ¥­¥¹¥È¤Ï .Xr queue 3 TAILQ ¥ê¥ó¥¯¥ê¥¹¥È¤È¤·¤ÆÉ½¸½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤½¤Î¥ê¥¹¥È¤Ï .Li struct sysctl_ctx_entry ¥¨¥ó¥È¥ê¤«¤éÀ®¤Ã¤Æ¤¤¤Þ¤¹¡£ .Bd -literal -offset indent struct sysctl_ctx_entry { struct sysctl_oid *entry; TAILQ_ENTRY(sysctl_ctx_entry) link; }; TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); .Ed .Pp ³Æ¡¹¤Î¥³¥ó¥Æ¥­¥¹¥È¥¨¥ó¥È¥ê¤Ï¡¢¤½¤ì¤¬´ÉÍý¤¹¤ë 1 ¤Ä¤ÎưŪ¤Ê oid ¤ò»Ø¤·¤Þ¤¹¡£ ¿·¤·¤¯ºîÀ®¤µ¤ì¤¿ oid ¤Ï¾ï¤Ë¥ê¥¹¥È¤ÎºÇ½é¤ËÁÞÆþ¤µ¤ì¤Þ¤¹¡£ .Pp .Fn sysctl_ctx_free ´Ø¿ô¤Ï¥³¥ó¥Æ¥­¥¹¥È¤ª¤è¤Ó¤½¤ì¤¬´ÉÍý¤¹¤ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿ oid ¤òºï½ü¤·¤Þ¤¹¡£ ¤½¤Î´Ø¿ô¤¬À®¸ù¤·¤Æ´°Î»¤·¤¿¾ì¹ç¤Ë¤Ï¡¢Á´¤Æ¤Î´ÉÍý¤µ¤ì¤Æ¤¤¤ë oid ¤Ï ÅÐÏ¿Ëõ¾Ã (¥Ä¥ê¡¼¤«¤éºï½ü) ¤µ¤ì¡¢Á´¤Æ¤Î¤½¤ì¤é¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤È¶¦¤Ë ²òÊü¤µ¤ì¡¢Æ±Íͤ˥³¥ó¥Æ¥­¥¹¥È¤Î¥¨¥ó¥È¥ê¤â²òÊü¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ .Pp ºï½üÁàºî¤Ï 2 ¥¹¥Æ¥Ã¥×¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ ºÇ½é¤Ë¡¢³Æ¡¹¤Î¥³¥ó¥Æ¥­¥¹¥È¥¨¥ó¥È¥ê¤Î¤¿¤á¤Ë¡¢¥ê¥½¡¼¥¹¤Î²òÊü¤òÍÞÀ©¤¹¤ë¥Ñ¥é¥á¡¼¥¿ .Fa del ¤ò 0 ¤ËÀßÄꤷ¤Æ¡¢´Ø¿ô .Xr sysctl_remove_oid 9 ¤¬¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥¹¥Æ¥Ã¥×¤Ç¥¨¥é¡¼¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï¡¢ .Fn sysctl_ctx_free ¤Ï¼¡¤Î¥¹¥Æ¥Ã¥×¤Ë°Ü¹Ô¤·¤Þ¤¹¡£ ºÇ½é¤Î¥¹¥Æ¥Ã¥×¤¬¼ºÇÔ¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥³¥ó¥Æ¥­¥¹¥È¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿ Á´¤Æ¤ÎÅÐÏ¿Ëõ¾Ã¤µ¤ì¤¿ oid ¤¬ºÆÅÐÏ¿¤µ¤ì¤Þ¤¹¡£ .Pp .Em Ãí°Õ : ¤Û¤È¤ó¤É¤Î¾ì¹ç¡¢¥×¥í¥°¥é¥Þ¤Ï oid ¤ÎºîÀ®»þ¤Ë oid ÈÖ¹æ¤È¤·¤Æ .Dv OID_AUTO ¤òÌÀ¼¨¤·¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¥Ä¥ê¡¼¤Ë oid ¤òÅÐÏ¿¤·¤Æ¤¤¤ë´Ö¤Ë¡¢ ¤³¤ÎÈÖ¹æ¤Ï 99 ¤è¤ê¤âÂ礭¤¤ºÇ½é¤ÎÍøÍѲÄǽ¤ÊÈÖ¹æ¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£ ¥³¥ó¥Æ¥­¥¹¥Èºï½ü¤ÎºÇ½é¤Î¥¹¥Æ¥Ã¥×¤¬¼ºÇÔ¤·¤¿¾ì¹ç¡¢ oid ¤ÎºÆÅÐÏ¿¤Ï´û¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë oid ÈÖ¹æ¤ò Êѹ¹¤·¤Þ¤»¤ó (OID_AUTO ¤È¤Ï°Û¤Ê¤ê¤Þ¤¹)¡£ ¤³¤ì¤Ï¡¢ºÆÅÐÏ¿¤µ¤ì¤¿¥¨¥ó¥È¥ê¤¬¥Ä¥ê¡¼¤ÎÃæ¤Î¸µ¤Î°ÌÃÖ¤ò°Ý»ý¤·¤Æ¤¤¤ë¤³¤È¤ò Êݾڤ·¤Þ¤¹¡£ .Pp 2 ÈÖÌܤΥ¹¥Æ¥Ã¥×¤Ï¡¢Æ°Åª¤Ê oid ¤Îºï½ü¤ò¼ÂºÝ¤Ë¼Â¹Ô¤·¤Þ¤¹¡£ .Xr sysctl_remove_oid 9 ¤ÏºÇ½é (¤¹¤Ê¤ï¤Á¡¢ºÇ¿·¤Î¥¨¥ó¥È¥ê) ¤«¤é»Ï¤á¤Æ¡¢¥³¥ó¥Æ¥­¥¹¥È¥ê¥¹¥È¤òÄ̤·¤Æ ·«¤êÊÖ¤·¤Þ¤¹¡£ .Em ½ÅÍ× : ¤³¤Î»þ¡¢¤³¤Î´Ø¿ô¤Ï¥Ä¥ê¡¼¤«¤é oid ¤òºï½ü¤¹¤ë¤À¤±¤Ç¤Ï¤Ê¤¯¡¢Á´¤Æ¤Î¥³¥ó¥Æ¥­¥¹¥È¤Î ¥á¥â¥ê¤Ï¤â¤Á¤í¤ó¡¢(oid_refcount == 0 ¤Ç¤¢¤ì¤Ð) oid ¤Î¥á¥â¥ê¤â²òÊü¤·¤Þ¤¹¡£ .Pp .Fn sysctl_ctx_entry_add ´Ø¿ô¤Ï´û¸¤ÎưŪ¤Ê oid ¤Î¥³¥ó¥Æ¥­¥¹¥È¤Ø¤ÎÄɲäò²Äǽ¤Ë¤·¤Þ¤¹¡£ .Pp .Fn sysctl_ctx_entry_del ´Ø¿ô¤Ï¥³¥ó¥Æ¥­¥¹¥È¤«¤é¥¨¥ó¥È¥ê¤ò¼è¤ê½ü¤­¤Þ¤¹¡£ .Em ½ÅÍ× : ¤³¤Î¾ì¹ç¡¢Âбþ¤¹¤ë .Li struct sysctl_ctx_entry ¤Î¤ß¤¬²òÊü¤µ¤ì¤Þ¤¹¤¬¡¢ .Fa oidp ¥Ý¥¤¥ó¥¿¤Ï¤½¤Î¤Þ¤Þ»Ä¤ê¤Þ¤¹¡£ ¤½¤Î¸å¤Ï¡¢¥×¥í¥°¥é¥Þ¤Ë¤³¤Î oid ¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥ê¥½¡¼¥¹¤Î´ÉÍý¤ÎÀÕǤ¤¬¤¢¤ê¤Þ¤¹¡£ .Pp .Fn sysctl_ctx_entry_find ´Ø¿ô¤ÏÍ¿¤¨¤é¤ì¤¿ .Fa oidp ¤ò¥³¥ó¥Æ¥­¥¹¥È¥ê¥¹¥È¤ÎÃæ¤«¤é¸¡º÷¤·¡¢¸«ÉÕ¤«¤Ã¤¿ .Fa struct sysctl_ctx_entry ¤Ø¤Î¥Ý¥¤¥ó¥¿¤Þ¤¿¤Ï .Dv NULL ¤òÊÖ¤·¤Þ¤¹¡£ .Sh »ÈÍÑÎ㠰ʲ¼¤Ï¡¢¤É¤Î¤è¤¦¤Ë¿·¤·¤¤¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥«¥Æ¥´¥ê¤òºîÀ®¤¹¤ë¤«¡¢¤ª¤è¤Ó ¤É¤Î¤è¤¦¤Ë´û¸¤ÎÀÅŪ¤Ê¥Î¡¼¥É¤ËÊ̤Υµ¥Ö¥Ä¥ê¡¼¤ò°ú¤Ã³Ý¤±¤ë¤« ¤ò¼¨¤¹»ÈÍÑÎã¤Ç¤¹¡£ ¤³¤Î»ÈÍÑÎã¤Ï oid ¤ÎÄÉÀפò°Ý»ý¤¹¤ë¤¿¤á¤Ë¥³¥ó¥Æ¥­¥¹¥È¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£ .Bd -literal #include ... struct sysctl_ctx_list clist; struct sysctl_oid *oidp; int a_int; char *string = "dynamic sysctl"; ... sysctl_ctx_init(&clist); oidp = SYSCTL_ADD_NODE( &clist, SYSCTL_STATIC_CHILDREN(/* ¥Ä¥ê¡¼¥È¥Ã¥× */), OID_AUTO, newtree, CTFLAG_RW, 0, "new top level tree"); oidp = SYSCTL_ADD_INT( &clist, SYSCTL_CHILDREN(oidp), OID_AUTO, newint, CTLFLAG_RW, &a_int, 0, "new int leaf"); ... oidp = SYSCTL_ADD_NODE( &clist, SYSCTL_STATIC_CHILDREN(_debug), OID_AUTO, newtree, CTFLAG_RW, 0, "new tree under debug"); oidp = SYSCTL_ADD_STRING( &clist, SYSCTL_CHILDREN(oidp), OID_AUTO, newstring, CTLFLAG_R, string, 0, "new string leaf"); ... /* ¤³¤³¤Ç oid ¤ò²òÊü¤Ç¤­¤Þ¤¹ */ if(sysctl_ctx_free(&clist)) { printf("¥³¥ó¥Æ¥­¥¹¥È¤ò²òÊü½ÐÍè¤Þ¤»¤ó - ¾¤Î oid ¤¬°Í¸¤·¤Æ¤¤¤Þ¤¹"); return(ENOTEMPTY); } else { printf("À®¸ù¤Ç¤¹!\\n"): return(0); } .Ed .Pp ¤³¤Î»ÈÍÑÎã¤Ï°Ê²¼¤Î¥µ¥Ö¥Ä¥ê¡¼¤òºîÀ®¤·¤Þ¤¹¡£ .Bd -literal -offset indent debug.newtree.newstring newtree.newint .Ed .Pp 1 ¤Ä¤Î .Fn sysctl_ctx_free ¤Î¸Æ¤Ó½Ð¤·¤òÄ̤·¤Æ¡¢Î¾Êý¤Î¥Ä¥ê¡¼¤¬ºï½ü¤µ¤ì¡¢ ¥ê¥½¡¼¥¹¤¬²òÊü¤µ¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ºÇ¿·¤Î¥¨¥ó¥È¥ê (ÍÕ) ¤ò²òÊü¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ»Ï¤Þ¤ê¡¢¤½¤ì¤«¤é ¸Å¤¤¥¨¥ó¥È¥ê (¤³¤Î¾ì¹ç¤Ï¥Î¡¼¥É) ¤Îºï½ü¤ò³¹Ô¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr queue 3 , .Xr sysctl 8 , .Xr sysctl_add_oid 9 , .Xr sysctl_remove_oid 9 .Sh Îò»Ë ¤³¤ì¤é¤Î´Ø¿ô¤Ï .Fx 4.2 ¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô .An Andrzej Bialecki Aq abial@FreeBSD.org .Sh ¥Ð¥° ¸½ºß¤Îºï½ü¥¢¥ë¥´¥ê¥º¥à¤Ï¿¾¯½Å¤¤¤Ç¤¹¡£ ºÇ°­¤Î¾ì¹ç¡¢Á´¤Æ¤Î oid ¤¬ÅÐÏ¿Ëõ¾Ã¤µ¤ì¡¢ºÆÅÐÏ¿¤µ¤ì¡¢¤½¤ì¤«¤éÅÐÏ¿Ëõ¾Ã¤µ¤ì¡¢ ºï½ü¤µ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢ºï½üÁàºî¤¬¥È¥é¥ó¥¶¥¯¥·¥ç¥ó¤ÎÆÃ¼Á¤ò»ý¤Ä¤³¤È¤ò¡¢ ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤ÏÊݾڤ·¤Þ¤¹¡£ .Pp ¥³¥ó¥Æ¥­¥¹¥È¾å¤ÎÁ´¤Æ¤ÎÁàºî¤Ï¥ê¥ó¥¯¥ê¥¹¥È¤ò²£Àڤ뤳¤È¤òɬÍפȤ·¤Þ¤¹¡£ ¤³¤ÎÍýͳ¤Î¤¿¤á¡¢¥¨¥ó¥È¥ê¤ÎºîÀ®¤Èºï½ü¤Ë¤ÏÁêÂÐŪ¤Ë¥³¥¹¥È¤¬¤«¤«¤ê¤Þ¤¹¡£ diff --git a/ja_JP.eucJP/man/man9/time.9 b/ja_JP.eucJP/man/man9/time.9 index 1cea43c94a..43a490676b 100644 --- a/ja_JP.eucJP/man/man9/time.9 +++ b/ja_JP.eucJP/man/man9/time.9 @@ -1,133 +1,133 @@ .\" $NetBSD: time.9,v 1.1 1995/11/25 21:24:53 perry Exp $ .\" .\" Copyright (c) 1994 Christopher G. Demetriou .\" 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 Christopher G. Demetriou .\" for the NetBSD Project. .\" 3. The name of the author may not be used to endorse or promote products .\" derived from this software without specific prior written permission .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/time.9,v 1.3.2.5 2001/08/17 13:08:54 ru Exp % +.\" %FreeBSD: src/share/man/man9/time.9,v 1.9 2001/07/14 19:41:16 schweikh Exp % .\" .\" $FreeBSD$ .Dd March 22, 1997 .Dt TIME 9 .Os .Sh ̾¾Î .Nm boottime , .Nm mono_time , .Nm runtime , .Nm time .Nd ¥·¥¹¥Æ¥à»þ¹ïÊÑ¿ô .Sh ½ñ¼° .Bl -item -compact .It .Va extern struct timeval boottime ; .It .Va extern volatile struct timeval mono_time ; .It .Va extern struct timeval runtime ; .It .Va extern struct timeval time ; .El .Sh ²òÀâ .Va time ÊÑ¿ô¤Ï¥·¥¹¥Æ¥à¤Î .Dq Ãì»þ¹ï ¥¯¥í¥Ã¥¯¤Ç¤¹¡£ ¤³¤ì¤Ï¥Ö¡¼¥È»þ¤Ë .Xr inittodr 9 ¤Ë¤è¤Ã¤ÆÀßÄꤵ¤ì¡¢ .Xr settimeofday 2 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤È¼þ´üŪ¤Ê¥¯¥í¥Ã¥¯³ä¤ê¹þ¤ß¤Ë¤è¤Ã¤Æ¹¹¿·¤µ¤ì¤Þ¤¹¡£ .Pp .Va boottime ÊÑ¿ô¤Ï¥·¥¹¥Æ¥à¤Î¥Ö¡¼¥È»þ¹ï¤òÊÝ»ý¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¥·¥¹¥Æ¥à¥Ö¡¼¥È»þ¤Ë .Va time ¤«¤éÀßÄꤵ¤ì¡¢¥·¥¹¥Æ¥à»þ¹ï¤¬ .Xr settimeofday 2 ¤ò»ÈÍѤ·¤ÆÄ´À°¤µ¤ì¤¿¤È¤­¤Ë¹¹¿·¤µ¤ì¤Þ¤¹¡£ .Pp .Va runtime ÊÑ¿ô¤Ï¥·¥¹¥Æ¥à¤¬¸½ºß¤Î¥×¥í¥»¥¹¤Ë¥¹¥¤¥Ã¥Á¤·¤¿»þ¹ï¤òÊÝ»ý¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¸Ä¡¹¤Î¥³¥ó¥Æ¥­¥¹¥È¥¹¥¤¥Ã¥Á¤Î¸å¤ËÀßÄꤵ¤ì¡¢¥·¥¹¥Æ¥à»þ¹ï¤¬ .Xr settimeofday 2 ¤ò»ÈÍѤ·¤ÆÄ´À°¤µ¤ì¤¿¤È¤­¤Ë¹¹¿·¤µ¤ì¤Þ¤¹¡£ .Va runtime ¤Ï¥·¥¹¥Æ¥à¤Î¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤Î¤¿¤á¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢ .Va time ¤«¤é¥³¥Ô¡¼¤µ¤ì¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¹âʬ²òǽ¤Ê .Xr microtime 9 ´Ø¿ô¤ò»ÈÍѤ·¤ÆÀßÄꤵ¤ì¤Þ¤¹¡£ .Pp .Va mono_time ÊÑ¿ô¤ÏñĴ¤ËÁý²Ã¤¹¤ë¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯¤Ç¤¹¡£ ¤³¤ì¤Ï¥Ö¡¼¥È»þ¤Ë .Va time ¤«¤éÀßÄꤵ¤ì¡¢¼þ´üŪ¤Ê¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤Ë¤è¤Ã¤Æ¹¹¿·¤µ¤ì¤Þ¤¹¡£ .Xr ( settimeofday 2 ¤Ë¤è¤Ã¤Æ¹¹¿·¤µ¤ì¤Þ¤»¤ó¡£) .Pp ¤³¤ì¤é¤ÎÊÑ¿ô¤ÎÁ´¤Æ¤Ï¡¢1970 ǯ 1 ·î 1 Æü¤Î¿¼Ìë (0 »þ) ¤«¤é·Ð²á¤·¤¿»þ´Ö¤ò¡¢ É䪤è¤Ó¥Þ¥¤¥¯¥íÉäÇɽ¸½¤·¤Æ¤¤¤Þ¤¹¡£ .Pp .Va time ¤Þ¤¿¤Ï .Va mono_time ¤ÎÆÉ¹þ¤ß¤Þ¤¿¤Ï½ñ¹þ¤ß»þ¤Ë¤Ï¡¢¥¯¥í¥Ã¥¯³ä¤ê¹þ¤ß¤Ï¥Ö¥í¥Ã¥¯¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ ²¿¸Î¤Ê¤é¤Ð¡¢¤³¤ì¤é¤ÎÊÑ¿ô¤Ï .Fn hardclock ¤Ë¤è¤Ã¤Æ¹¹¿·¤µ¤ì¤ë¤«¤é¤Ç¤¹¡£ .Xr gettime 9 ´Ø¿ô¤ÏÉÔ²Äʬ¤ÊÊýË¡¤Ç .Va time ÊÑ¿ô¤òÆÉ¤ß¼è¤ë¤¿¤á¤Ë»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ .Va mono_time ¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤ÎƱÅù¤Î´Ø¿ô¤Ï¤¢¤ê¤Þ¤»¤ó¡£ .Va boottime ¤ª¤è¤Ó .Va runtime ÊÑ¿ô¤ÏÆÃÊ̤ʷٲü¤Ê¤·¤ËÆÉ¤ß½ñ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ .Pp .Xr gettime 9 ¤ª¤è¤Ó .Xr microtime 9 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë»þ¹ïÃͤϹ¹¿·ÊýË¡¤¬°ã¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Î 2 ¤Ä¤Î ¥ë¡¼¥Á¥ó¤Î·ë²Ì¤òÈæ³Ó¤¹¤ë¤È¡¢ »þ´Ö¤¬µÕÌá¤ê¤¹¤ë¤è¤¦¤Ê·ë²Ì¤È¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ÎÌäÂê¤Ï¡¢°ìÊý¤Î´Ø¿ô¤Þ¤¿¤Ï¤â¤¦°ìÊý¤Î´Ø¿ô¤ò ¥³¥ó¥Æ¥­¥¹¥ÈÃæ¤Ç¼óÈø°ì´Ó¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤ê¡¢Èò¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr settimeofday 2 , .Xr gettime 9 , .\" .Xr hardclock 9 , .\" .Xr hz 9 , .Xr inittodr 9 , .Xr microtime 9 .Sh ¥Ð¥° ¥Þ¥ë¥Á¥×¥í¥»¥Ã¥µ¥·¥¹¥Æ¥à¤Ë¤ª¤¤¤ÆÃ±°ì¤Î .Va runtime ÊÑ¿ô¤ò»ý¤Ä¤È¤¤¤¦¹Í¤¨¤ÏÌÀ¤é¤«¤ËŬÀڤǤϤ¢¤ê¤Þ¤»¤ó¡£ diff --git a/ja_JP.eucJP/man/man9/tvtohz.9 b/ja_JP.eucJP/man/man9/tvtohz.9 index 630f91bc3b..4b7ab29a1e 100644 --- a/ja_JP.eucJP/man/man9/tvtohz.9 +++ b/ja_JP.eucJP/man/man9/tvtohz.9 @@ -1,60 +1,60 @@ .\" Copyright (c) 2000 Kelly Yancey .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. .\" -.\" %FreeBSD: src/share/man/man9/tvtohz.9,v 1.1.4.2 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/tvtohz.9,v 1.3 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd January 3, 2000 .Dt TVTOHZ 9 .Os .Sh ̾¾Î .Nm tvtohz .Nd »þ´Ö´Ö³Ö¤«¤é¥Æ¥£¥Ã¥¯¿ô¤Ø¤ÎÊÑ´¹ .Sh ½ñ¼° .In sys/time.h .Ft int .Fn tvtohz "struct timeval *tv" .Sh ²òÀâ .Fn tvtohz ´Ø¿ô¤Ï¡¢»þ´Ö´Ö³Ö¤ò¼¨¤¹Ã±°ì°ú¿ô .Fa tv ¤ò¼õ¤±ÉÕ¤±¤Þ¤¹¡£ ¤³¤Î»þ´Ö´Ö³ÖÃæ¤Ë¡¢¥·¥¹¥Æ¥à¥Æ¥£¥Ã¥¯¤¬²¿¸Ä·Ð²á¤¹¤ë¤«¤ò·×»»¤·¤Þ¤¹¡£ .Sh Ìá¤êÃÍ »ØÄꤵ¤ì¤¿»þ´Ö´Ö³ÖÃæ¤Ë·Ð²á¤¹¤ë¤Èͽ¬¤µ¤ì¤ë¥·¥¹¥Æ¥à¥Æ¥£¥Ã¥¯¿ô¤ò¡¢ À°¿ô¤ÇÊÖ¤·¤Þ¤¹¡£ ¤³¤Î¿ô¤Ë¤Ï¡¢¸½ºß¤Î¥Æ¥£¥Ã¥¯¤â´Þ¤Þ¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr microtime 9 , .Xr microuptime 9 , .Xr timeout 9 .Sh Îò»Ë .Nm ´Ø¿ô¤Ï¡¢ .Fx 3.0 ¤Ç½é¤á¤ÆÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Kelly Yancey Aq kbyanc@posi.net ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/uio.9 b/ja_JP.eucJP/man/man9/uio.9 index 890a67906a..7eb113da53 100644 --- a/ja_JP.eucJP/man/man9/uio.9 +++ b/ja_JP.eucJP/man/man9/uio.9 @@ -1,180 +1,178 @@ .\" .\" Copyright (c) 1997 Joerg Wunsch .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/uio.9,v 1.5.2.4 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/uio.9,v 1.13 2002/06/20 07:09:24 peter Exp % .\" .\" .\" $FreeBSD$ .Dd February 2, 1997 .Os .Dt UIO 9 .Sh ̾¾Î .Nm uio , .Nm uiomove .Nd ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥ÐÆþ½ÐÎϥ롼¥Á¥ó .Sh ½ñ¼° .In sys/types.h .In sys/uio.h .Pp .Bd -literal struct uio { struct iovec *uio_iov; int uio_iovcnt; off_t uio_offset; int uio_resid; enum uio_seg uio_segflg; enum uio_rw uio_rw; - struct proc *uio_procp; + struct thread *uio_td; }; .Ed .Ft int .Fn uiomove "caddr_t buf" "int howmuch" "struct uio *uiop" .Sh ²òÀâ .Fn uiomove ´Ø¿ô¤Ï¡¢¥æ¡¼¥¶¶õ´Ö¤È¥«¡¼¥Í¥ë¶õ´Ö¤Î¶­³¦¤ò±Û¤¨¤ë¤³¤È¤µ¤¨²Äǽ¤Ç¡¢ ¥Ð¥Ã¥Õ¥¡¤ÈÆþ½ÐÎÏ¥Ù¥¯¥¿´Ö¤Î¥Ç¡¼¥¿Å¾Á÷¤Î¼Â¹Ô¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ .Pp ʸ»ú·¿¥Ç¥Ð¥¤¥¹¤Î¥É¥é¥¤¥Ð¤ËÅϤµ¤ì¤¿¡¢¤¢¤é¤æ¤ë .Xr read 2 , .Xr write 2 , .Xr readv 2 ¤Ê¤¤¤· .Xr writev 2 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î·ë²Ì¤È¤·¤Æ¡¢Å¬Àڤʥɥ饤¥Ð¤Î .Va d_read ¤Þ¤¿¤Ï .Va d_write ¥¨¥ó¥È¥ê¤¬ .Vt "struct uio" ¹½Â¤ÂΤΥݥ¤¥ó¥¿¤òÅϤµ¤ì¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£ žÁ÷¤Î¥ê¥¯¥¨¥¹¥È¤Ï¡¢¤³¤Î¹½Â¤ÂΤÎÃæ¤Ë¥¨¥ó¥³¡¼¥É¤µ¤ì¤Þ¤¹¡£ ¥É¥é¥¤¥Ð¼«¿È¤â¤³¤Î¹½Â¤ÂΤÎÃæ¤Î¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤¹¤¿¤á¤Ë .Fn uiomove ¤ò»ÈÍѤ¹¤ë¤Ù¤­¤Ç¤¹¡£ .Pp .Vt uio ¹½Â¤ÂΤγƥե£¡¼¥ë¥É¤Ï²¼µ­¤Î¤È¤ª¤ê¤Ç¤¹¡£ .Bl -tag -width ".Va uio_iovcnt" .It Va uio_iov ½èÍý¤¹¤Ù¤­Æþ½ÐÎÏ¥Ù¥¯¥¿¤ÎÇÛÎó¤Ç¤¹¡£ »¶ºßŪ¤ÊÆþ½ÐÎϤξì¹ç¤Ë¤Ï¡¢°ì¤Ä°Ê¾å¤Î¥Ù¥¯¥¿¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£ .It Va uio_iovcnt ¸ºß¤·¤Æ¤¤¤ëÆþ½ÐÎÏ¥Ù¥¯¥¿¤Î¿ô¤ò¼¨¤·¤Þ¤¹¡£ .It Va uio_offset ¥Ç¥Ð¥¤¥¹¤Î¥ª¥Õ¥»¥Ã¥È¤Ç¤¹¡£ .It Va uio_resid ½èÍý¤¹¤Ù¤­¥Ð¥¤¥È¿ô¤Ç¤¹¡£ .It Va uio_segflg °Ê²¼¤Î¥Õ¥é¥°¤ÎÃæ¤Î°ì¤Ä¤Ç¤¹¡£ -.Bl -tag -width ".Dv UIO_USERISPACE" +.Bl -tag -width ".Dv UIO_USERSPACE" .It Va UIO_USERSPACE Æþ½ÐÎÏ¥Ù¥¯¥¿¤Ï¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£ .It Va UIO_SYSSPACE Æþ½ÐÎÏ¥Ù¥¯¥¿¤Ï¥«¡¼¥Í¥ë¤Î¥¢¥É¥ì¥¹¶õ´Ö¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£ -.It Va UIO_USERISPACE -Æþ½ÐÎÏ¥Ù¥¯¥¿¤Ï¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤ÎÌ¿ÎáÎΰè¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£ .It Va UIO_NOCOPY ¥ª¥Ö¥¸¥§¥¯¥ÈÃæ¤Ë´û¤Ë¥Ç¡¼¥¿¤¬¤¢¤ê¡¢¥³¥Ô¡¼¤·¤Þ¤»¤ó¡£ .El .It Va uio_rw Í׵ᤵ¤ì¤¿Å¾Á÷¤ÎÊý¸þ¤ò¼¨¤·¡¢ .Dv UIO_READ ¤Þ¤¿¤Ï .Dv UIO_WRITE ¤Ç¤¹¡£ .It Va uio_procp ¥¹¥ì¥Ã¥É¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿ .Vt "struct thread" ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤Ç¤¹¡£ .Dv uio_segflg ¤¬¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤È¤ÎžÁ÷¤ò¤¹¤Ù¤­¤Ç¤¢¤ë¤È¼¨¤·¤Æ¤¤¤ë¾ì¹ç¤Ë »ÈÍѤµ¤ì¤Þ¤¹¡£ .El .Sh »ÈÍÑÎ㠹ͤ¨Êý¤È¤·¤Æ¡¢¥É¥é¥¤¥Ð¤Ï¥Ç¡¼¥¿¤Î¤¿¤á¤Î¥×¥é¥¤¥Ù¡¼¥È¤Ê¥Ð¥Ã¥Õ¥¡¤ÎÊݼé¤ò¹Ô¤Ê¤¤¡¢ ¤³¤Î¥Ð¥Ã¥Õ¥¡¤ÎºÇÂ祵¥¤¥º¤Î¥Ç¡¼¥¿¤Î¤«¤¿¤Þ¤ê¤ÎÍ×µá¤ò½èÍý¤·¤Þ¤¹¡£ ²¼µ­¤Î¥Ð¥Ã¥Õ¥¡¤Î¼è¤ê°·¤¤¤Ï¤È¤Æ¤â´Êά²½¤µ¤ì¤Æ¤¤¤Æ ¶²¤é¤¯Æ°¤­¤Þ¤»¤ó(¥Ð¥Ã¥Õ¥¡¤Î¥Ý¥¤¥ó¥¿¤ÏÉôʬŪ¤ÊÆÉ¤ß¹þ¤ß¤Î¾ì¹ç¿Ê¤ß¤Þ¤»¤ó)¤·¡¢ .Nm ¤Î¼è¤ê°·¤¤¤ò¼ÂºÝ¤Ë¤ä¤Ã¤Æ¸«¤»¤Æ¤¤¤ë¤À¤±¤À¡¢¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£ .Bd -literal /* MIN() ¤ÎÄêµÁ¤Ï¤³¤ÎÃæ¤Ë¤¢¤ê¤Þ¤¹ */ #include #define BUFSIZE 512 static char buffer[BUFSIZE]; static int data_available; /* ÆÉ¤ß¹þ¤á¤ë¥Ç¡¼¥¿ÎÌ */ static int fooread(dev_t dev, struct uio *uio, int flag) { int rv, amnt; while (uio->uio_resid > 0) { if (data_available > 0) { amnt = MIN(uio->uio_resid, data_available); if ((rv = uiomove((caddr_t)buffer, amnt, uio)) != 0) goto error; data_available -= amnt; } else { tsleep(...); /* ¤è¤êÎɤ¤»þ´ü¤Þ¤ÇÂÔ¤Ä */ } } return 0; error: /* ¥¨¥é¡¼¤Î¥¯¥ê¡¼¥ó¥¢¥Ã¥×¤ò¤³¤³¤Ç¹Ô¤Ê¤¦ */ return rv; } .Ed .Sh Ìá¤êÃÍ .Fn uiomove ¤Ï ¥×¥í¥»¥¹¤Î¥¢¥É¥ì¥¹¶õ´Ö¤È¤ÎžÁ÷¤Î¾ì¹ç¤Ë¡¢ .Xr copyin 9 ¤Þ¤¿¤Ï .Xr copyout 9 ¤Ë¤è¤Ã¤Æ°ú¤­µ¯¤³¤µ¤ì¤¿ .Er EFAULT ¤òÊÖ¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr read 2 , .Xr readv 2 , .Xr write 2 , .Xr writev 2 , .Xr copyin 9 , .Xr copyout 9 , .Xr sleep 9 .Sh Îò»Ë .Nm ¤Î»ÅÁȤߤϤ¢¤ëÁá´ü¤Î¥Ð¡¼¥¸¥ç¥ó¤Î .Ux ¤ÇÅо줷¤Þ¤·¤¿¡£ .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An J\(:org Wunsch ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vget.9 b/ja_JP.eucJP/man/man9/vget.9 index 5a92df4809..2a5553af9c 100644 --- a/ja_JP.eucJP/man/man9/vget.9 +++ b/ja_JP.eucJP/man/man9/vget.9 @@ -1,73 +1,73 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/vget.9,v 1.5.2.1 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vget.9,v 1.7 2001/12/26 23:14:04 davidc Exp % .\" .\" $FreeBSD$ .Dd July 24, 1996 .Os .Dt VGET 9 .Sh ̾¾Î .Nm vget .Nd ¥Õ¥ê¡¼¥ê¥¹¥È¤«¤é vnode ¤ò¼èÆÀ .Sh ½ñ¼° .In sys/param.h .In sys/vnode.h .Ft int -.Fn vget "struct vnode *vp" "int lockflag" "struct proc *p" +.Fn vget "struct vnode *vp" "int lockflag" "struct thread *td" .Sh ²òÀ⠥ե꡼¥ê¥¹¥È¤«¤é vnode ¤ò¼èÆÀ¤·¡¢¤½¤Î»²¾È¥«¥¦¥ó¥È¤ò¥¤¥ó¥¯¥ê¥á¥ó¥È¤·¤Þ¤¹¡£ .Bl -tag -width lockflag .It Ar vp ¥Õ¥ê¡¼¥ê¥¹¥È¤«¤é¼è¤ê½ü¤¯ vnode¡£ .It Ar lockflag 0 ¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤Î vnode ¤Ï¥í¥Ã¥¯¤â¤µ¤ì¤ë¤Ç¤·¤ç¤¦¡£ .El .Pp »ÈÍѤµ¤ì¤Ê¤¯¤Ê¤Ã¤¿»þ¡¢vnode ¤Ï¥Õ¥ê¡¼¥ê¥¹¥È¤ËÊÝ»ý¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤é¤Î vnode ¤ÏÍ­¸ú¤Ê¥Õ¥¡¥¤¥ë¤ò»²¾È¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ ¤¤¤Ä¤Ç¤â¿·¤·¤¤¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¤¿¤á¤ËºÆÍøÍѤµ¤ìÆÀ¤Þ¤¹¡£ vnode ¤Ï¡¢Ì¾Á°¥­¥ã¥Ã¥·¥åÅù¤Î ¥·¥¹¥Æ¥àÃæ¤Î¥­¥ã¥Ã¥·¥å¤ÎÃæ¤Ë¤â¡¢¤·¤Ð¤·¤ÐÊÝ»ý¤µ¤ì¤Þ¤¹¡£ .Pp ¥Õ¥ê¡¼¥ê¥¹¥È¾å¤Ë¤¢¤ë vnode ¤¬ºÆÍøÍѤµ¤ì¤ë»þ¡¢Î㤨¤Ð .Xr VOP_LOOKUP 9 ¤ò¸Æ¤Ó½Ð¤·¤¿·ë²Ì̾Á°¥­¥ã¥Ã¥·¥å¤Ë¤½¤Î vnode ¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢ »²¾È¥«¥¦¥ó¥È¤Î¥¤¥ó¥¯¥ê¥á¥ó¥È¤È¥Õ¥ê¡¼¥ê¥¹¥È¤«¤é¤Îºï½ü¤Î¤¿¤á¤Ë¡¢ ¿·¤·¤¤»ÈÍÑ¼Ô¤Ï .Xr vget 9 ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤¬É¬ÍפǤ¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr vnode 9 , .Xr vput 9 , .Xr vref 9 , .Xr vrele 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vnode.9 b/ja_JP.eucJP/man/man9/vnode.9 index 61f39e7b34..74a1c0ab78 100644 --- a/ja_JP.eucJP/man/man9/vnode.9 +++ b/ja_JP.eucJP/man/man9/vnode.9 @@ -1,272 +1,274 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/vnode.9,v 1.10.2.5 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vnode.9,v 1.20 2002/10/10 00:29:22 alfred Exp % .\" .\" $FreeBSD$ .Dd June 30, 1999 .Os .Dt VNODE 9 .Sh ̾¾Î .Nm vnode .Nd ¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÉôɽ¸½ .Sh ½ñ¼° .In sys/param.h .In sys/vnode.h .Pp .Bd -literal /* * vnode ¤Î·¿¤Ç¤¹¡£VNON ¤Ï·¿¤¬Ìµ¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ */ enum vtype { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD }; /* * vnode ¤Î¥¿¥°·¿¤Ç¤¹¡£ * ³°Éô¥×¥í¥°¥é¥à (Î㤨¤Ð¡¢pstat) ¤Î¤¿¤á¤À¤±¤Ë¤¢¤ê¡¢·è¤·¤Æ¥«¡¼¥Í¥ë * ¤Ë¤è¤Ã¤Æ¸¡ºº¤µ¤ì¤ë¤Ù¤­¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ */ enum vtagtype { - VT_NON, VT_UFS, VT_NFS, VT_MFS, VT_PC, VT_LFS, VT_LOFS, VT_FDESC, + VT_NON, VT_UFS, VT_NFS, VT_UNUSED, VT_PC, VT_LFS, VT_LOFS, VT_FDESC, VT_PORTAL, VT_NULL, VT_UMAP, VT_KERNFS, VT_PROCFS, VT_AFS, VT_ISOFS, - VT_UNION, VT_MSDOSFS, VT_TFS, VT_VFS, VT_CODA, VT_NTFS + VT_UNION, VT_MSDOSFS, VT_DEVFS, VT_TFS, VT_VFS, VT_CODA, VT_NTFS, + VT_HPFS, VTNWFS, VT_PSEUDOFS }; /* * ¸Ä¡¹¤Î²¼°Ì¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¤½¤Î»äŪ¤ÊÎΰè¤ò³ä¤êÅö¤Æ¡¢¤½¤ì¤ò * v_data ¤«¤éÄߤ뤷¤Þ¤¹¡£¥Ì¥ë¤Ç¤Ê¤¤¤Ê¤é¤Ð¡¢¤³¤ÎÎΰè¤Ï getnewvnode() ¤Ç * ²òÊü¤µ¤ì¤Þ¤¹¡£ */ TAILQ_HEAD(buflists, buf); -typedef int vop_t __P((void *)); +typedef int vop_t((void *)); struct namecache; /* * ¤³¤ì¤é¤Î¹àÌÜ¤ÎÆÉ¹þ¤ß¤Þ¤¿¤Ï½ñ¹þ¤ß¤ÏŬÀڤʥí¥Ã¥¯¤ÎÊÝ»ý¤òÍ׵ᤷ¤Þ¤¹¡£ * v_freelist ¤Ï¥°¥í¡¼¥Ð¥ë vnode_free_list ñ½ã¥í¥Ã¥¯¤Ç¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ * v_mntvnodes ¤Ï¥°¥í¡¼¥Ð¥ë mntvnodes ñ½ã¥í¥Ã¥¯¤Ç¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ * v_flag, v_usecount, v_holdcount ¤ª¤è¤Ó v_writecount ¤Ï vinterlock * ñ½ã¥í¥Ã¥¯¤Ç¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ * v_pollinfo ¤Ï¤½¤ÎÃæ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¥í¥Ã¥¯¤Ç¥í¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ */ struct vnode { u_long v_flag; /* vnode ¥Õ¥é¥° (°Ê²¼»²¾È) */ int v_usecount; /* ¥æ¡¼¥¶¤Î»²¾È¥«¥¦¥ó¥È */ int v_writecount; /* ½ñ¹þ¤ß¼Ô¤Î»²¾È¥«¥¦¥ó¥È */ int v_holdcnt; /* ¥Ú¡¼¥¸ & ¥Ð¥Ã¥Õ¥¡¤Î»²¾È */ - daddr_t v_lastr; /* ºÇ¸å¤ÎÆÉ¹þ¤ß (ÀèÆÉ¤ß) */ u_long v_id; /* ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¼±ÊÌ»Ò */ struct mount *v_mount; /* º£¤¤¤ë VFS ¤Ø¤Î¥Ý¥¤¥ó¥¿ */ vop_t **v_op; /* vnode Áàºî¥Ù¥¯¥¿ */ TAILQ_ENTRY(vnode) v_freelist; /* vnode ¥Õ¥ê¡¼¥ê¥¹¥È */ LIST_ENTRY(vnode) v_mntvnodes; /* ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Î vnode */ struct buflists v_cleanblkhd; /* åºÎï¤Ê¥Ö¥í¥Ã¥¯¥ê¥¹¥ÈÀèÆ¬ */ struct buflists v_dirtyblkhd; /* ±ø¤ì¤¿¥Ö¥í¥Ã¥¯¥ê¥¹¥ÈÀèÆ¬ */ LIST_ENTRY(vnode) v_synclist; /* ±ø¤ì¤¿¥Ð¥Ã¥Õ¥¡ÉÕ¤­ vnode */ long v_numoutput; /* ½ñ¤­¹þ¤ßÃæ¤Î¿ô */ enum vtype v_type; /* vnode ¤Î·¿ */ union { struct mount *vu_mountedhere;/* ¥Þ¥¦¥ó¥È¤µ¤ì¤¿ VFS ¤Ø¤Î¥Ý¥¤¥ó¥¿ (VDIR) */ struct socket *vu_socket; /* UNIX IPC (VSOCK) */ - struct specinfo *vu_specinfo; /* ¥Ç¥Ð¥¤¥¹ (VCHR, VBLK) */ + struct { + struct specinfo *vu_specinfo; /* ¥Ç¥Ð¥¤¥¹ (VCHR, VBLK) */ + SLIST_ENTRY(vnode) vu_specnext; + } vu_spec; struct fifoinfo *vu_fifoinfo; /* FIFO (VFIFO) */ } v_un; struct nqlease *v_lease; /* Â߽Ф·¤Î¥½¥Õ¥È»²¾È */ daddr_t v_lastw; /* ºÇ¸å¤Î½ñ¹þ¤ß (¥¯¥é¥¹¥¿) */ daddr_t v_cstart; /* ¥¯¥é¥¹¥¿¤Î³«»Ï¥Ö¥í¥Ã¥¯ */ daddr_t v_lasta; /* ºÇ¸å¤Î³äÅö¤Æ */ int v_clen; /* ¸½ºß¤Î¥¯¥é¥¹¥¿Ä¹ */ - int v_maxio; /* ºÇÂç I/O ¥¯¥é¥¹¥¿¥µ¥¤¥º */ struct vm_object *v_object; /* VM ¥ª¥Ö¥¸¥§¥¯¥È¤ÎÊݸ¾ì½ê */ struct simplelock v_interlock; /* »ÈÍÑ¥«¥¦¥ó¥È¤È¥Õ¥é¥°¤Î¥í¥Ã¥¯ */ struct lock *v_vnlock; /* Èó¥í¥Ã¥¯¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÍÑ */ enum vtagtype v_tag; /* ²¼°Ì¥Ç¡¼¥¿¤Î·¿ */ void *v_data; /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î»äŪ¥Ç¡¼¥¿ */ LIST_HEAD(, namecache) v_cache_src; /* ²æ¡¹¤«¤é¤Î¥­¥ã¥Ã¥·¥å¥¨¥ó¥È¥ê */ TAILQ_HEAD(, namecache) v_cache_dst; /* ²æ¡¹¤Ø¤Î¥­¥ã¥Ã¥·¥å¥¨¥ó¥È¥ê */ struct vnode *v_dd; /* .. ¤Î vnode */ u_long v_ddid; /* .. ¤Î¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¼±ÊÌ»Ò */ struct { struct simplelock vpi_lock; /* °Ê²¼¤òÊݸ¤ë¥í¥Ã¥¯ */ struct selinfo vpi_selinfo; /* ¥Ý¡¼¥ê¥ó¥°Â¦¤Î¼±ÊÌ */ short vpi_events; /* ²¿¤òõ¤·¤Æ¤¤¤ë¤Î¤« */ short vpi_revents; /* ²¿¤¬µ¯¤³¤Ã¤¿¤Î¤« */ } v_pollinfo; }; #define v_mountedhere v_un.vu_mountedhere #define v_socket v_un.vu_socket -#define v_specinfo v_un.vu_specinfo +#define v_rdev v_un.vu_spec.vu_specinfo +#define v_specnext v_un.vu_spec.vu_specnext #define v_fifoinfo v_un.vu_fifoinfo /* * vnode ¥Õ¥é¥°¤Ç¤¹¡£ */ #define VROOT 0x00001 /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥ë¡¼¥È */ #define VTEXT 0x00002 /* vnode ¤Ï½ã¿è¤Ê¥Æ¥­¥¹¥È¥×¥í¥È¥¿¥¤¥× */ #define VSYSTEM 0x00004 /* vnode ¤Ï¥«¡¼¥Í¥ë¤¬»ÈÍÑÃæ */ #define VISTTY 0x00008 /* vnode ¤Ï tty ¤òɽ¸½ */ #define VXLOCK 0x00100 /* vnode ¤Ï²¼°Ì¤Î·¿¤ÎÊѹ¹¤Î¤¿¤á¥í¥Ã¥¯Ãæ */ #define VXWANT 0x00200 /* ¥×¥í¥»¥¹¤¬ vnode ¤òÂԤäƤ¤¤Þ¤¹ */ #define VBWAIT 0x00400 /* ½ÐÎϤδ°Î»¤òÂԤäƤ¤¤Þ¤¹ */ -#define VALIASED 0x00800 /* vnode ¤ËÊÌ̾¤¬¤¢¤ê¤Þ¤¹ */ -#define VDIROP 0x01000 /* LFS: vnode ¤¬¥Ç¥£¥ì¥¯¥È¥êÁàºî¤Ë´ØÍ¿ */ #define VOBJBUF 0x02000 /* VM ¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥Ð¥Ã¥Õ¥¡¤ò³äÅö¤Æ */ -#define VNINACT 0x04000 /* LFS: lfs_vunref ¤Ç ufs_inactive() ¤·¤Ê¤¤ */ #define VAGE 0x08000 /* ¥Õ¥ê¡¼¥ê¥¹¥È¤ÎÀèÆ¬¤Ë vnode ¤òÁÞÆþ */ #define VOLOCK 0x10000 /* ¥ª¥Ö¥¸¥§¥¯¥È¤òÂԤĤ¿¤á¤Ë vnode ¤¬¥í¥Ã¥¯ */ #define VOWANT 0x20000 /* ¥×¥í¥»¥¹¤¬ VOLOCK ¤òÂԤäƤ¤¤Þ¤¹ */ #define VDOOMED 0x40000 /* ¤³¤Î vnode ¤ÏºÆÍøÍÑÃæ */ #define VFREE 0x80000 /* ¤³¤Î vnode ¤Ï¥Õ¥ê¡¼¥ê¥¹¥È¾å */ #define VTBFREE 0x100000 /* ¤³¤Î vnode ¤Ï¥Õ¥ê¡¼¥ê¥¹¥È¹Ô¤­ */ #define VONWORKLST 0x200000 /* syncer ºî¶È¥ê¥¹¥È¾å */ #define VMOUNT 0x400000 /* ¥Þ¥¦¥ó¥È½èÍýÃæ */ .Ed .Sh ²òÀâ -vnode ¤Ï UNIX ¤Ç¤Î¥Õ¥¡¥¤¥ë³èư¤ÎÃæ¿´¤Ç¤¹¡£ +vnode ¤Ï +.Ux +¤Ç¤Î¥Õ¥¡¥¤¥ë³èư¤ÎÃæ¿´¤Ç¤¹¡£ ¸Ä¡¹¤Î³èÆ°Ãæ¤Î¥Õ¥¡¥¤¥ë¡¢ ¸Ä¡¹¤Î¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¢¸Ä¡¹¤Î¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¢ ¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¡¢¤ª¤è¤Ó¥ë¡¼¥È¤Î¤¿¤á¤Ë³äÅö¤Æ¤é¤ì¤¿°ì°ÕŪ¤Ê vnode ¤¬¤¢¤ê¤Þ¤¹¡£ .Pp ¸Ä¡¹¤Î vnode ¤Ï 3 ¤Ä¤Î»²¾È¥«¥¦¥ó¥È¡¢ .Dv v_usecount , .Dv v_holdcnt ¤ª¤è¤Ó .Dv v_writecount ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ºÇ½é¤Î¤â¤Î¤Ï¥«¡¼¥Í¥ëÆâ¤Ç¤³¤Î vnode ¤ò»ÈÍѤ·¤Æ¤¤¤ë¥¯¥é¥¤¥¢¥ó¥È¤Î¿ô¤Ç¤¹¡£ ¤³¤Î¥«¥¦¥ó¥È¤Ï .Xr vref 9 , .Xr vrele 9 ¤ª¤è¤Ó .Xr vput 9 ¤Ë¤è¤Ã¤Æ´ÉÍý¤µ¤ì¤Þ¤¹¡£ 2 ÈÖÌܤΤâ¤Î¤Ï¥«¡¼¥Í¥ëÆâ¤Ç¤³¤Î vnode ¤ÎºÆÍøÍѤòµñÈݤ·¤Æ¤¤¤ë¥¯¥é¥¤¥¢¥ó¥È¤Î ¿ô¤Ç¤¹¡£ ¤³¤Î¥«¥¦¥ó¥È¤Ï .Xr vhold 9 ¤ª¤è¤Ó .Xr vdrop 9 ¤Ë¤è¤Ã¤Æ´ÉÍý¤µ¤ì¤Þ¤¹¡£ vnode ¤Î .Dv v_usecount ¤ª¤è¤Ó .Dv v_holdcnt ¤ÎξÊý¤¬ 0 ¤Ë㤹¤ë¤È¡¢¤½¤ì¤«¤é¤½¤Î vnode ¤Ï¥Õ¥ê¡¼¥ê¥¹¥È¾å¤ËÃÖ¤«¤ì¡¢ ¤³¤È¤Ë¤è¤Ã¤Æ¤ÏÊ̤Υե¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¡¢ Ê̤Υե¡¥¤¥ë¤Î¤¿¤á¤ËºÆÍøÍѤµ¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¥Õ¥ê¡¼¥ê¥¹¥È¤Ø¤Î¤ª¤è¤Ó¥Õ¥ê¡¼¥ê¥¹¥È¤«¤é¤Î°Ü¹Ô¤Ï¡¢ .Xr getnewvnode 9 , .Xr vfree 9 ¤ª¤è¤Ó .Xr vbusy 9 ¤Ë¤è¤Ã¤Æ¼è¤ê°·¤ï¤ì¤Þ¤¹¡£ 3 ÈÖÌܤΤâ¤Î¤Ï¥Õ¥¡¥¤¥ë¤Ë½ñ¹þ¤ßÃæ¤Î¥¯¥é¥¤¥¢¥ó¥È¤Î¿ô¤Î¥«¥¦¥ó¥È¤Ç¤¹¡£ ¤³¤ì¤Ï .Xr open 2 ¤ª¤è¤Ó .Xr close 2 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ë¤è¤Ã¤Æ´ÉÍý¤µ¤ì¤Þ¤¹¡£ .Pp vnode ¤òÊÖ¤¹¤¢¤é¤æ¤ë¸Æ¤Ó½Ð¤· (Î㤨¤Ð .Xr VFS_GET 9 , .Xr VOP_LOOKUP 9 ¤Ê¤É) ¤Ï vnode ¤Î .Dv v_usecount ¤ò 1 ¤º¤ÄÁý¤ä¤·¤Þ¤¹¡£ ¸Æ¤Ó½Ð¤·Â¦¤¬ vnode ¤ÎÍøÍѤò´°Î»¤·¤¿¤È¤­¤Ë¤Ï¡¢¤³¤Î»²¾È¤Ï .Xr vrele 9 (¤Þ¤¿¤Ï vnode ¤¬¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤ì¤Ð .Xr vput 9 ) ¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ²òÊü¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£ .Pp ¤½¤Î¾¤Î¶¦Ä̤˻ÈÍѤµ¤ì¤ë vnode ¹½Â¤ÂΤΥá¥ó¥Ð¤Ï¡¢ ̾Á°¥­¥ã¥Ã¥·¥å¤Ç¤Î°ì´ÓÀ­¤ò´ÉÍý¤¹¤ë¤¿¤á¤Ë»ÈÍѤµ¤ì¤ë .Dv v_id ¤È¡¢¤½¤Î vnode ¤ò½êÍ­¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò»Ø¤¹ .Dv v_mount ¤È¡¢¤½¤Î vnode ¤¬É½¸½¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Î·¿¤ò´Þ¤à .Dv v_type ¤È¡¢¤½¤Î vnode ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆÃÍ­¤Î¥Ç¡¼¥¿¤òÊݸ¤¹¤ë¤¿¤á¤Ë ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤ë .Dv v_data ¤¬¤¢¤ê¤Þ¤¹¡£ .Dv v_op ¥Õ¥£¡¼¥ë¥É¤Ï vnode ¤Îµ¡Ç½¤ò¼ÂÁõ¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÆâ¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤¿¤á¤Î .Dv VOP_* ¥Þ¥¯¥í¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤Þ¤¹¡£ .Sh VNODE ¤Î·¿ .Bl -tag -width VSOCK .It Dv VNON ·¿¤Ê¤·¤Ç¤¹¡£ .It Dv VREG Ä̾ï¥Õ¥¡¥¤¥ë¤Ç¤¹¡£ VM ¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ù»ý¤¬Í­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·Ìµ¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ɬ¤º»Ù»ý¥ª¥Ö¥¸¥§¥¯¥È¤ò¼èÆÀ¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢ .Xr vfs_object_create 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .It Dv VDIR ¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¹¡£ .It Dv VBLK ¥Ö¥í¥Ã¥¯·¿¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ VM ¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ù»ý¤¬Í­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤·Ìµ¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ɬ¤º»Ù»ý¥ª¥Ö¥¸¥§¥¯¥È¤ò¼èÆÀ¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢ .Xr vfs_object_create 9 ¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£ .It Dv VCHR ʸ»ú·¿¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ .It Dv VLNK ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¹¡£ .It Dv VSOCK ¥½¥±¥Ã¥È¤Ç¤¹¡£ ÄÌÃÎ¥í¥Ã¥¯¤Ïưºî¤·¤Ê¤¤¤Ç¤·¤ç¤¦¡£ .It Dv VFIFO FIFO (̾Á°ÉÕ¤­¥Ñ¥¤¥×) ¤Ç¤¹¡£ ÄÌÃÎ¥í¥Ã¥¯¤Ïưºî¤·¤Ê¤¤¤Ç¤·¤ç¤¦¡£ .It Dv VBAD ¸Å¤¤·Á¼°¤Î¥Ð¥Ã¥É¥»¥¯¥¿¥Þ¥Ã¥×¤Ç¤¹¡£ .El .Sh Ãí VFIFO ¤Ï .Pa /sys/kern/sys_pipe.c ¤Î "struct fileops" ¤ò»ÈÍѤ·¤Þ¤¹¡£ VSOCK ¤Ï .Pa /sys/kern/sys_socket.c ¤Î "struct fileops" ¤ò»ÈÍѤ·¤Þ¤¹¡£ ¤½¤Î¾¤ÎÁ´¤Æ¤Ï .Pa /sys/kern/vfs_vnops.c ¤Î "struct fileops" ¤ò»ÈÍѤ·¤Þ¤¹¡£ .Pp VFIFO/VSOCK ¤Î¥³¡¼¥É¤Ë¤Ê¤¼¤« "struct fileops" ¤¬»ÈÍѤµ¤ì¤Æ¤¤¤ëÍýͳ¤Ï¡¢ ¥«¡¼¥Í¥ë¤Ø¤Î VFS ¥³¡¼¥É¤ÎÉÔ´°Á´¤ÊÅý¹ç¤Îʸ²½°ä»º¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr VFS 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vput.9 b/ja_JP.eucJP/man/man9/vput.9 index ecb830a363..8306ca2de8 100644 --- a/ja_JP.eucJP/man/man9/vput.9 +++ b/ja_JP.eucJP/man/man9/vput.9 @@ -1,65 +1,65 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/vput.9,v 1.6.2.3 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vput.9,v 1.9 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd July 24, 1996 .Os .Dt VPUT 9 .Sh ̾¾Î .Nm vput .Nd vnode ¤Î»ÈÍÑ¥«¥¦¥ó¥È¤Î¥Ç¥¯¥ê¥á¥ó¥È¤È¥í¥Ã¥¯²ò½ü .Sh ½ñ¼° .In sys/param.h .In sys/vnode.h .Ft void .Fn vput "struct vnode *vp" .Sh ²òÀâ vnode ¤Î .Dv v_usecount ¥Õ¥£¡¼¥ë¥É¤ò¥Ç¥¯¥ê¥á¥ó¥È¤·¡¢¤½¤Î vnode ¤Î¥í¥Ã¥¯¤ò²ò½ü¤·¤Þ¤¹¡£ .Bl -tag -width 2n .It Ar vp ¥Ç¥¯¥ê¥á¥ó¥È¤µ¤ì¤ë vnode¡£ .El .Pp ¤³¤ÎÁàºî¤Ï¡¢ .Xr vrele 9 ¤¬Â³¤¯ .Xr VOP_UNLOCK 9 ¤Î¸Æ¤Ó½Ð¤·¤È¡¢µ¡Ç½Åª¤ËƱÅù¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr vnode 9 , .Xr VOP_UNLOCK 9 , .Xr vref 9 , .Xr vrele 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vref.9 b/ja_JP.eucJP/man/man9/vref.9 index 43432eaaad..79d5df65fb 100644 --- a/ja_JP.eucJP/man/man9/vref.9 +++ b/ja_JP.eucJP/man/man9/vref.9 @@ -1,70 +1,70 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/vref.9,v 1.6.2.2 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vref.9,v 1.8 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd July 24, 1996 .Os .Dt VREF 9 .Sh ̾¾Î .Nm vref .Nd vnode ¤Î»ÈÍÑ¥«¥¦¥ó¥È¤Î¥¤¥ó¥¯¥ê¥á¥ó¥È .Sh ½ñ¼° .In sys/param.h .In sys/vnode.h .Ft void .Fn vref "struct vnode *vp" .Sh ²òÀâ vnode ¤Î .Dv v_usecount ¥Õ¥£¡¼¥ë¥É¤ò¥¤¥ó¥¯¥ê¥á¥ó¥È¤·¤Þ¤¹¡£ .Bl -tag -width 2n .It Ar vp ¥¤¥ó¥¯¥ê¥á¥ó¥È¤µ¤ì¤ë vnode¡£ .El .Pp ¸Ä¡¹¤Î vnode ¤Ï¡¢¥·¥¹¥Æ¥à¤Î²¿¸Ä¤ÎÉôʬ¤Ç¤½¤Î vnode ¤¬»ÈÍÑÃæ¤Ç¤¢¤ë¤«¤ò¼¨¤¹ »²¾È¥«¥¦¥ó¥È¤ò°Ý»ý´ÉÍý¤·¤Þ¤¹¡£ ¤³¤ì¤Ë¤è¤ê¡¢ vnode ¤¬¤â¤Ï¤ä»È¤ï¤ì¤Ê¤¯¤Ê¤Ã¤ÆÊ̤Υե¡¥¤¥ëÍѤ˰ÂÁ´¤ËºÆÍøÍѲÄǽ¤Ê¤³¤È¤ò¡¢ ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¸¡ÃβÄǽ¤È¤Ê¤ê¤Þ¤¹¡£ .Pp vnode ¤ò»ÈÍÑÃæ¤Î¥·¥¹¥Æ¥àÃæ¤ÎÁ´¤Æ¤Î¥³¡¼¥É (Î㤨¤Ð¡¢ ¤¢¤ë¥¢¥ë¥´¥ê¥º¥à¤ÎÁàºîÃæ¤ä¡¢¥Ç¡¼¥¿¹½Â¤¤Î³ÊǼ»þ) ¤Ï¡¢ .Xr vref 9 ¤ò¸Æ¤Ó½Ð¤¹¤Ù¤­¤Ç¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr vget 9 , .Xr vnode 9 , .Xr vput 9 , .Xr vrele 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vrele.9 b/ja_JP.eucJP/man/man9/vrele.9 index 9665752c6d..e13137c90e 100644 --- a/ja_JP.eucJP/man/man9/vrele.9 +++ b/ja_JP.eucJP/man/man9/vrele.9 @@ -1,67 +1,67 @@ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson .\" .\" All rights reserved. .\" .\" This program is free software. .\" .\" 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. .\" .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``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 DEVELOPERS 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. .\" -.\" %FreeBSD: src/share/man/man9/vrele.9,v 1.6.2.2 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vrele.9,v 1.9 2001/10/01 16:09:25 ru Exp % .\" .\" $FreeBSD$ .Dd July 24, 1996 .Os .Dt VRELE 9 .Sh ̾¾Î .Nm vrele .Nd vnode ¤Î»ÈÍÑ¥«¥¦¥ó¥È¤Î¥Ç¥¯¥ê¥á¥ó¥È .Sh ½ñ¼° .In sys/param.h .In sys/vnode.h .Ft void .Fn vrele "struct vnode *vp" .Sh ²òÀâ vnode ¤Î .Dv v_usecount ¥Õ¥£¡¼¥ë¥É¤ò¥Ç¥¯¥ê¥á¥ó¥È¤·¤Þ¤¹¡£ .Bl -tag -width 2n .It Ar vp ¥Ç¥¯¥ê¥á¥ó¥È¤µ¤ì¤ë vnode¡£ .El .Pp vnode ¤ò»ÈÍÑÃæ¤Î¥·¥¹¥Æ¥àÃæ¤ÎÁ´¤Æ¤Î¥³¡¼¥É¤Ï¡¢ ¤½¤Î vnode ¤ò»È¤¤½ª¤¨¤¿»þ¤Ë¤Ï¡¢ .Xr vrele 9 ¤ò¸Æ¤Ó½Ð¤¹¤Ù¤­¤Ç¤¹¡£ ¤½¤Î vnode ¤Î .Dv v_usecount ¥Õ¥£¡¼¥ë¥É¤¬ 0 ¤Ë㤷¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤Î vnode ¤Ï¥Õ¥ê¡¼¥ê¥¹¥È¤ËÃÖ¤«¤ì¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr vget 9 , .Xr vnode 9 , .Xr vput 9 , .Xr vref 9 .Sh ºî¼Ô ¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï .An Doug Rabson ¤¬½ñ¤­¤Þ¤·¤¿¡£ diff --git a/ja_JP.eucJP/man/man9/vslock.9 b/ja_JP.eucJP/man/man9/vslock.9 index dfc378136b..1bcf62541f 100644 --- a/ja_JP.eucJP/man/man9/vslock.9 +++ b/ja_JP.eucJP/man/man9/vslock.9 @@ -1,74 +1,75 @@ .\" %NetBSD: vslock.9,v 1.1 1996/06/15 20:47:29 pk Exp % .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation .\" by Paul Kranenburg. .\" .\" 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 NetBSD .\" Foundation, Inc. and its contributors. .\" 4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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. .\" -.\" %FreeBSD: src/share/man/man9/vslock.9,v 1.4.2.3 2001/12/17 11:30:19 ru Exp % +.\" %FreeBSD: src/share/man/man9/vslock.9,v 1.9 2001/12/26 23:14:04 davidc Exp % .\" .\" $FreeBSD$ .Dd June 15, 1996 .Dt VSLOCK 9 .Os .Sh ̾¾Î .Nm vslock , .Nm vsunlock .Nd ¥æ¡¼¥¶¡¼¶õ´Ö¤Î¥¢¥É¥ì¥¹¤Î¥á¥â¥ê¤Ø¤Î¥í¥Ã¥¯¤È¥¢¥ó¥í¥Ã¥¯ .Sh ½ñ¼° -.In sys/types.h +.In sys/param.h +.In sys/proc.h .In vm/vm.h .In vm/vm_extern.h .Ft void .Fn vslock "caddr_t addr" "u_int len" .Ft void .Fn vsunlock "caddr_t addr" "u_int len" .Sh ²òÀâ .Fn vslock ¤ª¤è¤Ó .Fn vsunlock ´Ø¿ô¤Ï¸½ºß¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤Ë°¤¹¤ë¥¢¥É¥ì¥¹¤ÎÈϰϤò ¥á¥â¥êÃæ¤Ë¤½¤ì¤¾¤ì¥í¥Ã¥¯¤·¤¿¤ê¥¢¥ó¥í¥Ã¥¯¤·¤¿¤ê¤·¤Þ¤¹¡£ ¥í¥Ã¥¯¤µ¤ì¤ë¼ÂºÝ¤Î¥á¥â¥êÎ̤ϥޥ·¥ó¤Î¥Ú¡¼¥¸¥µ¥¤¥º¤ÎÇÜ¿ô¤Ë¤Ê¤ê¤Þ¤¹¡£ ³«»Ï¥Ú¡¼¥¸¥Ê¥ó¥Ð¡¼¤Ï .Fa addr ¤ò¤¹¤°Á°¤Î¥Ú¡¼¥¸¶­³¦¤ËÀÚ¤ê¤Ä¤á¤é¤ì¡¢½ªÎ»¥Ú¡¼¥¸¤Ï .Fa addr + .Fa len ¤Î¼¡¤Î¥Ú¡¼¥¸¶­³¦¤ËÀÚ¤ê¾å¤²¤é¤ì¤Æ·×»»¤µ¤ì¤Þ¤¹¡£ ¤³¤ÎÁàºî¤Ë»ÈÍѤµ¤ì¤ë¥×¥í¥»¥¹¤Î¥³¥ó¥Æ¥­¥¹¥È¤Ï¥°¥í¡¼¥Ð¥ëÊÑ¿ô .Va curproc ¤ò»²¾È¤·¤Þ¤¹¡£ .Sh ´ØÏ¢¹àÌÜ .Xr physio 9 .Sh ¥Ð¥° °ú¿ô¤È¤·¤Æ¥×¥í¥»¥¹¤Î¥Ý¥¤¥ó¥¿¤òÅϤ¹¤Ù¤­¤Ç¤¹¡£