summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Ignore the statically configured vfs type numbers and assign vfsbde1998-09-051-2/+10
| | | | | | | | | | | type numbers in vfs attach order (modulo incomplete reuse of old numbers after vfs LKMs are unloaded). This requires reinitializing the sysctl tree (or at least the vfs subtree) for vfs's that support sysctls (currently only nfs). sysctl_order() already handled reinitialization reasonably except it checked for annulled self references in the wrong place. Fixed sysctls for vfs LKMs.
* Fixed bogotification of pseudocode for syscall args by rev.1.53 ofbde1998-09-051-2/+2
| | | | syscalls.master.
* Change various syscalls to use size_t arguments instead of u_int.dfr1998-08-241-13/+73
| | | | | | | | | | Add some overflow checks to read/write (from bde). Change all modifications to vm_page::flags, vm_page::busy, vm_object::flags and vm_object::paging_in_progress to use operations which are not interruptable. Reviewed by: Bruce Evans <bde@zeta.org.au>
* Make COMPAT_43 and COMPAT_SUNOS new-style options.eivind1997-12-161-1/+3
|
* Move the "retval" (3rd) parameter from all syscall functions and putphk1997-11-061-4/+4
| | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-2/+2
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Distribute and statizice a lot of the malloc M_* types.phk1997-10-111-1/+3
| | | | Substantial input from: bde
* Include <sys/buf.h> instead of <sys/vnode.h>. kern_sysctl.c nobde1997-04-091-2/+2
| | | | | | | longer has anything to do with vnodes and never had anything to do with buffers, but it needs the definitions of B_READ and B_WRITE for use with the bogus useracc() interface and was getting them bogusly due to excessive cleanups in rev.1.49.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fixed garbage being returned for constant int values, e.g., forbde1996-12-151-2/+2
| | | | | | | | | KERN_SAVED_IDS. Should be in 2.2. Reviewed by: phk Found by: NIST-PCTS
* Fixed bogus casts (const on the wrong `*' in `**') in a qsort-comparisionbde1996-09-031-4/+5
| | | | function.
* Don't depend in the kernel on the gcc feature of doing arithmetic onbde1996-08-311-5/+6
| | | | pointers of type `void *'. Warn about this in future.
* Implemented 'kern_sysctl', which differs from 'userland_sysctl' in thatnate1996-06-101-5/+63
| | | | | | | | | | | | it assumes all of the data exists in the kernel. Also, fix sysctl_new-kernel (unused until now) which had reversed operands to bcopy(). Reviewed by: phk Poul writes: ... actually the lock/sleep/wakeup cruft shouldn't be needed in the kernel version I think, but just leave it there for now.
* If handler function returns EAGAIN, restart operation.phk1996-06-061-3/+7
|
* Fix a longstanding bug and a buglet of no significance.phk1996-04-131-23/+18
| | | | | | Now net.ipx works. Noticed by: John Hay -- John.Hay@csir.co.za
* Move the "mib" variables out to their own file.phk1996-04-071-136/+6
|
* From Lite2: rename fs to vfs.hsu1996-03-111-2/+2
| | | | Reviewed by: davidg & bde
* Fix the reversed source and dest args to bcopy() in the kernel spacepeter1996-01-011-2/+2
| | | | | | | | sysctl handler (ouch!) Add a "const" qualifier to the source of the copyin() and copyout() functions - the other const warning in kern_sysctl.c was silenced when copyout was declared as having a const source.. (which it is)
* Add an obscure feature, needed for debugging.phk1995-12-171-9/+11
|
* A Major staticize sweep. Generates a couple of warnings that I'll dealphk1995-12-141-3/+3
| | | | | | with later. A number of unused vars removed. A number of unused procs removed or #ifdefed.
* Untangled the vm.h include file spaghetti.dg1995-12-071-1/+4
|
* A couple of minor tweaks to the sysctl stuff.phk1995-12-061-12/+48
|
* Include <vm/vm.h> or <vm/vm_page.h> explicitly to avoid breaking whenbde1995-12-051-1/+3
| | | | vnode_if.h doesn't include vm stuff.
* A major sweep over the sysctl stuff.phk1995-12-041-80/+332
| | | | | | | | | | | | | Move a lot of variables home to their own code (In good time before xmas :-) Introduce the string descrition of format. Add a couple more functions to poke into these marvels, while I try to decide what the correct interface should look like. Next is adding vars on the fly, and sysctl looking at them too. Removed a tine bit of defunct and #ifdefed notused code in swapgeneric.
* Mega commit for sysctl.phk1995-11-201-366/+107
| | | | | | Convert the remaining sysctl stuff to the new way of doing things. the devconf stuff is the reason for the large number of files. Cleaned up some compiler warnings while I were there.
* All net.* sysctl converted now.phk1995-11-161-4/+1
|
* Do what is generally belived to be the right thing, though it may not be :-)phk1995-11-141-5/+2
|
* Final part of this bunch of sysctl commits: cleanup.phk1995-11-141-9/+1
|
* Get rid of the last debug sysctl variables of the old style.phk1995-11-141-50/+1
|
* Get rid of hostnamelen variable.phk1995-11-141-13/+3
|
* Move all the VM sysctl stuff home where it belongs.phk1995-11-141-4/+1
|
* A couple of nitpicks.phk1995-11-141-8/+5
|
* Convert dumpdev & securelevel.phk1995-11-141-20/+35
|
* KERN_MAXFILESPERPROC, KERN_MAXFILES went to another file.phk1995-11-141-6/+1
|
* Get rid of domainnamelen.phk1995-11-141-14/+3
|
* Move KERN_NTP to a more suitable file.phk1995-11-141-4/+1
|
* Move the process-table stuff to a more suitable file.phk1995-11-141-213/+1
| | | | Remove filetable stuff from kern_sysctl.c
* Try to make my new scheme work more along the lines of the manual.phk1995-11-131-48/+67
| | | | There are still some gray areas here and there.
* The entire sysctl callback to read/write version. I havn't tested this asphk1995-11-121-113/+160
| | | | | | | | much as I'd like to, but the malloc stunt I tried for an interim for sure does worse. Now we can read and write from any kind of address-space, not only user and kernel, using callbacks. This may be over-generalization for now, but it's actually simpler.
* Included <sys/sysproto.h> to get central declarations for syscall argsbde1995-11-121-1/+6
| | | | | | | | | | structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
* Fixed type of sysctl_order_cmp().bde1995-11-111-8/+11
| | | | | KNFized sysctl_order_cmp(). Staticized definition of kern_sysctl() to match its declaration.
* Fix a minor buglet.phk1995-11-101-3/+4
|
* convert more sysctl variables.phk1995-11-101-4/+3
|
* Make the old compat functions use the sysctl front door, rather thanphk1995-11-091-75/+110
| | | | | crashing through the walls. This should save Peters blood pressure and netscapes uname call.
* Fix some of the sysctl broke, and add a lot more to it.phk1995-11-081-22/+112
|
* On working the new sysctl vars a bit I realized that I needed more generality.phk1995-11-061-179/+224
| | | | | | | This is here now. We can now access (the new) sysctl variables from the kernel too and using functions to handle access is more sane now. I will now attack sysctl variables in the rest of the kernel and get them all converted to newspeak.
* Sorry, the last commit screwed up for me, this is the right one (I hope!)phk1995-10-281-112/+65
| | | | Please refer to the previous commit message about sysctl variables.
* Rewamp the way we make sysctl variables to be easier to cope with.phk1995-10-281-71/+313
| | | | | | | | | The goal is to make them "user-friendly" :-) In the end this will allow a SNMP style "getnext" function, sysctl editing in the boot-editor and/or debugger, LKMs can define sysctl vars when they get loaded, and remove them when unloaded and other interesting uses for dynamic sysctl variables.
* Fix the sysctl string routines to return as much of thempp1995-07-311-13/+25
| | | | | | | | | | | | string as possible and return ENOMEM if the entire string cannot be returned. This brings the routines in line with how the man page says they work, and how the calling routines are expecting them to work. This allows the dummy uname() routine in libc to obtain the version string, since the kernel version string is longer than that normally returned by the uname() routine. This is 3/4 of the fix for PR# 462. Reviewed by: Bruce Evans
OpenPOWER on IntegriCloud