sysctl_ctx_init.9 (214673) | sysctl_ctx_init.9 (233648) |
---|---|
1.\" 2.\" Copyright (c) 2000, Andrzej Bialecki <abial@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" | 1.\" 2.\" Copyright (c) 2000, Andrzej Bialecki <abial@FreeBSD.org> 3.\" All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" |
28.\" $FreeBSD: head/share/man/man9/sysctl_ctx_init.9 214673 2010-11-02 12:40:13Z jhb $ | 28.\" $FreeBSD: head/share/man/man9/sysctl_ctx_init.9 233648 2012-03-29 05:02:12Z eadler $ |
29.\" 30.Dd July 15, 2000 31.Dt SYSCTL_CTX_INIT 9 32.Os 33.Sh NAME 34.Nm sysctl_ctx_init , 35.Nm sysctl_ctx_free , 36.Nm sysctl_ctx_entry_add , --- 93 unchanged lines hidden (view full) --- 130all unregistered oids associated with the context are registered again. 131.Pp 132.Em Note : 133in most cases, the programmer specifies 134.Dv OID_AUTO 135as the oid number when creating an oid. 136However, during registration of the oid in the tree, 137this number is changed to the first available number | 29.\" 30.Dd July 15, 2000 31.Dt SYSCTL_CTX_INIT 9 32.Os 33.Sh NAME 34.Nm sysctl_ctx_init , 35.Nm sysctl_ctx_free , 36.Nm sysctl_ctx_entry_add , --- 93 unchanged lines hidden (view full) --- 130all unregistered oids associated with the context are registered again. 131.Pp 132.Em Note : 133in most cases, the programmer specifies 134.Dv OID_AUTO 135as the oid number when creating an oid. 136However, during registration of the oid in the tree, 137this number is changed to the first available number |
138greater than or equal to | 138greater than or equal to |
139.Dv CTL_AUTO_START . 140If the first step of context deletion fails, 141re-registration of the oid does not change the already assigned oid number 142(which is different from OID_AUTO). 143This ensures that re-registered entries 144maintain their original positions in the tree. 145.Pp 146The second step actually performs the deletion of the dynamic oids. --- 101 unchanged lines hidden --- | 139.Dv CTL_AUTO_START . 140If the first step of context deletion fails, 141re-registration of the oid does not change the already assigned oid number 142(which is different from OID_AUTO). 143This ensures that re-registered entries 144maintain their original positions in the tree. 145.Pp 146The second step actually performs the deletion of the dynamic oids. --- 101 unchanged lines hidden --- |