opnsense-src/sys
Marcel Moolenaar c6dfea0ebd Add sysctl variables for the Linuxulator. These reside under `compat.linux' as
discussed on current.

The following variables are defined (for now):

    osname (defaults to "Linux")
        Allow users to change the name of the OS as returned by uname(2),
        specially added for all those Linux Netscape users and statistics
        maniacs :-) We now have what we all wanted!

    osrelease (defaults to "2.2.5")
        Allow users to change the version of the OS as returned by uname(2).
        Since -current supports glibc2.1 now, change the default to 2.2.5
        (was 2.0.36).

    oss_version (defaults to 198144 [0x030600])
        This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I
        can commit now that we have the MIB. The default version number is the
        lowest version possible with the current 'encoding'.

A note about imprisoned processes (see jail(2)):
  These variables are copy-on-write (as suggested by phk). This means that
  imprisoned processes will use the system wide value unless it is written/set
  by the process. From that moment on, a copy local to the prison will be
  used.

A note about the implementation:
  I choose to add a single pointer to struct prison, because I didn't like the
  idea of changing struct prison every time I come up with a new variable. As
  a side effect, the extra storage is only needed when a variable is set from
  within the prison. This also minimizes kernel bloat when the Linuxulator is
  not used; both compiled in or as a module.

Reviewed by: bde (first version only) and phk
1999-08-27 19:47:41 +00:00
..
alpha Fix the child's return path from fork so that fork will return 0 1999-08-27 14:47:23 +00:00
amd64 Reference the correct gdt[] entry on SMP. Remove the `generation' flag, 1999-08-27 19:39:20 +00:00
boot Fix a bunch of broken cross-references 1999-08-18 05:55:22 +00:00
cam Cast pointers to uintptr_t instead of casting them to u_long. Don't 1999-08-24 00:04:45 +00:00
coda Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
compat Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
compile
conf Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
contrib SMP: Release the giant lock while we work the flash array 1999-08-15 14:30:09 +00:00
ddb Merge the cons.c and cons.h to the best of my ability. alpha may or 1999-08-09 10:35:05 +00:00
dev Add miibus drivers for the ThunderLAN internal PHY and the Micro Linear 1999-08-27 18:33:36 +00:00
fs Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
geom Initialize the dev->si_bsize fields. 1999-08-26 14:46:10 +00:00
gnu Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness. 1999-08-25 12:24:39 +00:00
i4b Add PHK's make_dev() into more places where DEVFS used to be 1999-08-27 07:26:26 +00:00
i386 Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
isa Add PHK's make_dev() into more places where DEVFS used to be 1999-08-27 07:26:26 +00:00
isofs/cd9660 Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
kern Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
libkern Use the latest version of these files from OpenBSD. 1999-08-10 05:58:58 +00:00
miscfs Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
modules Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
msdosfs Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness. 1999-08-25 12:24:39 +00:00
net Hopefully make IFMEDIA_DEBUG compile. if_xname[] is a NetBSD addition, 1999-08-18 13:13:01 +00:00
netatalk Change suser_xxx() to suser() where it applies. 1999-04-27 12:21:16 +00:00
netatm Clean up after removing sys/eventhandler.h from sys/systm.h at the last 1999-08-21 22:10:49 +00:00
netinet Add readonly OID ``net.inet.tcp.tcbhashsize'' so it is possible to 1999-08-26 19:52:17 +00:00
netipx Suser() simplification: 1999-04-27 11:18:52 +00:00
netkey Fix a printf(3) formatter to match its variable. 1999-08-17 22:11:02 +00:00
netnatm Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
netns Make INET a proper option. 1998-01-08 23:42:31 +00:00
nfs Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
nfsclient Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
nfsserver Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
ntfs Introduce vn_isdisk(struct vnode *vp) function, and use it to test for diskness. 1999-08-25 12:24:39 +00:00
pc98 Remove some vestiges of devfs direct calls. 1999-08-27 08:31:20 +00:00
pccard Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
pci Convert the ThunderLAN driver to miibus. This took me a while because I 1999-08-27 18:58:27 +00:00
posix4 Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
powerpc Fix the child's return path from fork so that fork will return 0 1999-08-27 14:47:23 +00:00
rpc Resolve conflicts. 1997-05-28 04:45:15 +00:00
svr4 Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
sys Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
tools This commit adds support for the NetBSD MII abstraction layer and 1999-08-21 17:40:53 +00:00
ufs Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
vm Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
Makefile Use MACHINE_ARCH instead of MACHINE to check x86 architecture. 1999-06-03 10:38:07 +00:00