freebsd_amp_hwpstate/sys/kern
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
..
Make.tags.inc
Makefile
bus_if.m
device_if.m
imgact_aout.c Don't follow symlinks on coredumps. 1999-08-26 17:32:48 +00:00
imgact_elf.c Don't follow symlinks on coredumps. 1999-08-26 17:32:48 +00:00
imgact_gzip.c
imgact_shell.c
inflate.c
init_main.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
init_sysent.c
kern_acct.c
kern_clock.c
kern_conf.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
kern_descrip.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
kern_environment.c
kern_exec.c
kern_exit.c Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
kern_fork.c
kern_intr.c
kern_jail.c
kern_kthread.c
kern_ktrace.c
kern_linker.c Cast pointers to uintptr_t instead of casting them to u_long. They 1999-08-24 00:38:52 +00:00
kern_lock.c
kern_lockf.c
kern_malloc.c
kern_mib.c Add sysctl variables for the Linuxulator. These reside under `compat.linux' as 1999-08-27 19:47:41 +00:00
kern_module.c Implement a new generic mechanism for attaching handler functions to 1999-08-21 06:24:40 +00:00
kern_ntptime.c
kern_physio.c Use more compiler friendly test for overflow. 1999-08-21 18:22:44 +00:00
kern_proc.c
kern_prot.c
kern_random.c
kern_resource.c
kern_shutdown.c Use devtoname() to print dev_t's instead of casting them to long or u_long 1999-08-23 20:35:21 +00:00
kern_sig.c Fix a mistake in my last SA_SIGINFO commit. Processes could block 1999-08-23 13:53:25 +00:00
kern_subr.c
kern_switch.c
kern_synch.c
kern_syscalls.c
kern_sysctl.c
kern_tc.c
kern_threads.c
kern_time.c
kern_timeout.c
kern_xxx.c
ksched.c
link_aout.c
link_elf.c Cast pointers to uintptr_t instead of casting them to u_long, and/or vice 1999-08-24 00:56:50 +00:00
link_elf_obj.c Cast pointers to uintptr_t instead of casting them to u_long, and/or vice 1999-08-24 00:56:50 +00:00
makedevops.pl 1) Add HEADER section. Similar to CODE. 1999-08-22 16:21:29 +00:00
makesyscalls.sh
md5c.c
p1003_1b.c
posix4_mib.c
subr_autoconf.c
subr_blist.c
subr_bus.c
subr_clist.c
subr_devstat.c
subr_disklabel.c
subr_diskmbr.c
subr_diskslice.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
subr_dkbad.c
subr_eventhandler.c Implement a new generic mechanism for attaching handler functions to 1999-08-21 06:24:40 +00:00
subr_log.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
subr_module.c
subr_param.c
subr_prf.c
subr_prof.c
subr_rman.c
subr_scanf.c Cast pointers to uintptr_t instead of casting them to u_long, and/or vice 1999-08-24 00:56:50 +00:00
subr_smp.c
subr_trap.c
subr_xxx.c
sys_generic.c
sys_pipe.c
sys_process.c
sys_socket.c
syscalls.c
syscalls.master
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty.c
tty_compat.c
tty_conf.c
tty_cons.c
tty_pty.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
tty_snoop.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
tty_subr.c
tty_tb.c
tty_tty.c Convert DEVFS hooks in (most) drivers to make_dev(). 1999-08-23 20:59:21 +00:00
uipc_domain.c
uipc_mbuf.c
uipc_proto.c
uipc_sockbuf.c
uipc_socket.c
uipc_socket2.c
uipc_syscalls.c
uipc_usrreq.c
vfs_aio.c
vfs_bio.c Cast pointers to uintptr_t instead of casting them to u_long, and/or vice 1999-08-24 00:56:50 +00:00
vfs_cache.c
vfs_cluster.c
vfs_conf.c
vfs_default.c
vfs_export.c Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
vfs_extattr.c Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
vfs_init.c
vfs_lookup.c
vfs_mount.c
vfs_subr.c Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
vfs_syscalls.c Simplify the handling of VCHR and VBLK vnodes using the new dev_t: 1999-08-26 14:53:31 +00:00
vfs_vnops.c Add FIODTYPE ioctl for getting d_flags (type) info on a device. 1999-08-27 16:35:37 +00:00
vnode_if.pl
vnode_if.sh
vnode_if.src