]> Zhao Yanbai Git Server - minix.git/commit
Add MIB service, sysctl(2) support 38/3238/2
authorDavid van Moolenbroek <david@minix3.org>
Tue, 13 Oct 2015 22:43:53 +0000 (22:43 +0000)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Wed, 13 Jan 2016 19:32:37 +0000 (20:32 +0100)
commite4e21ee1b2710f3d411514741ce10d80156f4b5d
tree851b3d4bcd0c1993c20e066da6649b1589e1f4f9
parenteba14763897bb8f353c4e7471898788596a26ba5
Add MIB service, sysctl(2) support

The new MIB service implements the sysctl(2) system call which, as
we adopt more NetBSD code, is an increasingly important part of the
operating system API.  The system call is implemented in the new
service rather than as part of an existing service, because it will
eventually call into many other services in order to gather data,
similar to ProcFS.  Since the sysctl(2) functionality is used even
by init(8), the MIB service is added to the boot image.

MIB stands for Management Information Base, and the MIB service
should be seen as a knowledge base of management information.

The MIB service implementation of the sysctl(2) interface is fairly
complete; it incorporates support for both static and dynamic nodes
and imitates many NetBSD-specific quirks expected by userland.  The
patch also adds trace(1) support for the new system call, and adds
a new test, test87, which tests the fundamental operation of the
MIB service rather thoroughly.

Change-Id: I4766b410b25e94e9cd4affb72244112c2910ff67
39 files changed:
distrib/sets/lists/minix-base/mi
distrib/sets/lists/minix-comp/mi
distrib/sets/lists/minix-kernel/mi
distrib/sets/lists/minix-tests/mi
etc/rc
etc/system.conf
lib/libc/gen/Makefile.inc
lib/libc/gen/sysctl.c
minix/fs/procfs/service.c
minix/include/minix/Makefile
minix/include/minix/com.h
minix/include/minix/ipc.h
minix/include/minix/sysctl.h [new file with mode: 0644]
minix/kernel/table.c
minix/lib/libc/sys/Makefile.inc
minix/lib/libc/sys/__sysctl.c [new file with mode: 0644]
minix/lib/libminc/Makefile
minix/servers/Makefile
minix/servers/mib/Makefile [new file with mode: 0644]
minix/servers/mib/kern.c [new file with mode: 0644]
minix/servers/mib/main.c [new file with mode: 0644]
minix/servers/mib/mib.h [new file with mode: 0644]
minix/servers/mib/minix.c [new file with mode: 0644]
minix/servers/mib/tree.c [new file with mode: 0644]
minix/servers/rs/table.c
minix/tests/Makefile
minix/tests/run
minix/tests/test87.c [new file with mode: 0644]
minix/usr.bin/trace/Makefile
minix/usr.bin/trace/call.c
minix/usr.bin/trace/proc.h
minix/usr.bin/trace/proto.h
minix/usr.bin/trace/service/mib.c [new file with mode: 0644]
releasetools/Makefile
releasetools/arm_sdimage.sh
releasetools/gen_uEnv.txt.sh
releasetools/release.functions
releasetools/x86_cdimage.sh
sys/sys/sysctl.h