Date: Wed, 17 Apr 2002 06:06:36 -0700 (PDT) From: Maxime Henrion <mux@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include Makefile kenv.h src/sys/alpha/alpha machdep.c src/sys/dev/acpica acpi.c acpi_timer.c src/sys/dev/mly mly.c src/sys/i386/i386 autoconf.c bios.c machdep.c src/sys/ia64/ia64 machdep.c src/sys/kern init_main.c init_sysent.c ... Message-ID: <200204171306.g3HD6aO65499@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
mux 2002/04/17 06:06:36 PDT Modified files: include Makefile sys/alpha/alpha machdep.c sys/dev/acpica acpi.c acpi_timer.c sys/dev/mly mly.c sys/i386/i386 autoconf.c bios.c machdep.c sys/ia64/ia64 machdep.c sys/kern init_main.c init_sysent.c kern_environment.c subr_hints.c syscalls.c vfs_conf.c sys/pc98/i386 machdep.c sys/sys syscall.h syscall.mk sysproto.h systm.h Added files: include kenv.h sys/sys kenv.h Log: Rework the kernel environment subsystem. We now convert the static environment needed at boot time to a dynamic subsystem when VM is up. The dynamic kernel environment is protected by an sx lock. This adds some new functions to manipulate the kernel environment : freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be called after every getenv() when you have finished using the string. testenv() only tests if an environment variable is present, and doesn't require a freeenv() call. setenv() and unsetenv() are self explanatory. The kenv(2) syscall exports these new functionalities to userland, mainly for kenv(1). Reviewed by: peter Revision Changes Path 1.168 +2 -1 src/include/Makefile 1.1 +39 -0 src/include/kenv.h (new) 1.179 +3 -0 src/sys/alpha/alpha/machdep.c 1.59 +52 -21 src/sys/dev/acpica/acpi.c 1.16 +1 -1 src/sys/dev/acpica/acpi_timer.c 1.14 +1 -1 src/sys/dev/mly/mly.c 1.167 +26 -7 src/sys/i386/i386/autoconf.c 1.52 +4 -0 src/sys/i386/i386/bios.c 1.518 +2 -1 src/sys/i386/i386/machdep.c 1.96 +4 -1 src/sys/ia64/ia64/machdep.c 1.192 +4 -1 src/sys/kern/init_main.c 1.121 +1 -0 src/sys/kern/init_sysent.c 1.21 +308 -59 src/sys/kern/kern_environment.c 1.4 +55 -19 src/sys/kern/subr_hints.c 1.108 +1 -0 src/sys/kern/syscalls.c 1.68 +8 -3 src/sys/kern/vfs_conf.c 1.279 +2 -1 src/sys/pc98/i386/machdep.c 1.1 +43 -0 src/sys/sys/kenv.h (new) 1.107 +2 -1 src/sys/sys/syscall.h 1.62 +2 -1 src/sys/sys/syscall.mk 1.99 +7 -0 src/sys/sys/sysproto.h 1.171 +9 -0 src/sys/sys/systm.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204171306.g3HD6aO65499>