FreeBSD Bugzilla – Attachment 15762 Details for
Bug 29131
Current hungs in sysctl -a while booting + patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysctl-auto-start.patch
sysctl-auto-start.patch (text/plain; charset=us-ascii), 1.31 KB, created by
Peter Pentchev
on 2001-07-22 21:59:34 UTC
(
hide
)
Description:
sysctl-auto-start.patch
Filename:
MIME Type:
Creator:
Peter Pentchev
Created:
2001-07-22 21:59:34 UTC
Size:
1.31 KB
patch
obsolete
>Index: src/sys/kern/kern_sysctl.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/kern_sysctl.c,v >retrieving revision 1.110 >diff -u -r1.110 kern_sysctl.c >--- src/sys/kern/kern_sysctl.c 2001/06/22 19:54:38 1.110 >+++ src/sys/kern/kern_sysctl.c 2001/07/22 20:46:50 >@@ -113,11 +113,13 @@ > * 100 to leave space for pre-assigned oid numbers. > */ > if (oidp->oid_number == OID_AUTO) { >- static int newoid = 100; >+ static int newoid = CTL_AUTO_START; > > oidp->oid_number = newoid++; > if (newoid == 0x7fffffff) > panic("out of oids"); >+ } else if (oidp->oid_number >= CTL_AUTO_START) { >+ panic("static sysctl oid too high: %d", oidp->oid_number); > } > > /* >Index: src/sys/sys/sysctl.h >=================================================================== >RCS file: /home/ncvs/src/sys/sys/sysctl.h,v >retrieving revision 1.97 >diff -u -r1.97 sysctl.h >--- src/sys/sys/sysctl.h 2001/06/22 06:35:19 1.97 >+++ src/sys/sys/sysctl.h 2001/07/22 20:46:55 >@@ -95,6 +95,12 @@ > */ > #define OID_AUTO (-1) > >+/* >+ * The starting number for dynamically-assigned entries. WARNING! >+ * ALL static sysctl entries should have numbers LESS than this! >+ */ >+#define CTL_AUTO_START 0x100 >+ > #ifdef _KERNEL > #define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, int arg2, \ > struct sysctl_req *req
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29131
:
15760
|
15761
| 15762