minix/lib/sysutil
Cristiano Giuffrida d1fd04e72a Initialization protocol for system services.
SYSLIB CHANGES:
- SEF framework now supports a new SEF Init request type from RS. 3 different
callbacks are available (init_fresh, init_lu, init_restart) to specify
initialization code when a service starts fresh, starts after a live update,
or restarts.

SYSTEM SERVICE CHANGES:
- Initialization code for system services is now enclosed in a callback SEF will
automatically call at init time. The return code of the callback will
tell RS whether the initialization completed successfully.
- Each init callback can access information passed by RS to initialize. As of
now, each system service has access to the public entries of RS's system process
table to gather all the information required to initialize. This design
eliminates many existing or potential races at boot time and provides a uniform
initialization interface to system services. The same interface will be reused
for the upcoming publish/subscribe model to handle dynamic 
registration / deregistration of system services.

VM CHANGES:
- Uniform privilege management for all system services. Every service uses the
same call mask format. For boot services, VM copies the call mask from init
data. For dynamic services, VM still receives the call mask via rs_set_priv
call that will be soon replaced by the upcoming publish/subscribe model.

RS CHANGES:
- The system process table has been reorganized and split into private entries
and public entries. Only the latter ones are exposed to system services.
- VM call masks are now entirely configured in rs/table.c
- RS has now its own slot in the system process table. Only kernel tasks and
user processes not included in the boot image are now left out from the system
process table.
- RS implements the initialization protocol for system services.
- For services in the boot image, RS blocks till initialization is complete and
panics when failure is reported back. Services are initialized in their order of
appearance in the boot image priv table and RS blocks to implements synchronous
initialization for every system service having the flag SF_SYNCH_BOOT set.
- For services started dynamically, the initialization protocol is implemented
as though it were the first ping for the service. In this case, if the
system service fails to report back (or reports failure), RS brings the service
down rather than trying to restart it.
2010-01-08 01:20:42 +00:00
..
asynsend.c Merge of David's ptrace branch. Summary: 2009-09-30 09:57:22 +00:00
env_get_prm.c Initialization protocol for system services. 2010-01-08 01:20:42 +00:00
env_panic.c potential buffer overruns in env_* routines 2009-05-10 16:54:37 +00:00
env_parse.c potential buffer overruns in env_* routines 2009-05-10 16:54:37 +00:00
env_prefix.c potential buffer overruns in env_* routines 2009-05-10 16:54:37 +00:00
fkey_ctl.c Fixed 'bug' in log driver that caused kernel messages not to be displayed. 2005-08-03 08:14:08 +00:00
get_randomness.c moved type and constants for random data to include file; 2009-04-02 15:24:44 +00:00
getidle.c Add 'getidle' CPU utilization measurement infrastructure 2009-12-02 11:52:26 +00:00
getuptime.c . rename message fields to endpoint variants 2006-03-03 09:44:55 +00:00
getuptime2.c Added getuptime2.c 2007-08-07 12:14:04 +00:00
kprintf.c Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
kputc.c . new kernel call sysctl for generic unprivileged system operations; 2009-01-26 17:43:59 +00:00
Makefile.in Add 'getidle' CPU utilization measurement infrastructure 2009-12-02 11:52:26 +00:00
micro_delay.c No more HZ; move stacktrace() to library 2008-12-11 14:36:37 +00:00
profile.c Remove some GCC library warnings 2009-12-17 08:43:31 +00:00
profile_extern.c cprofile always on 2009-01-09 21:42:36 +00:00
read_tsc.s - remove unused kmalloc 2009-09-21 14:39:15 +00:00
read_tsc_64.c . let kernel use read_tsc() from sysutil library 2007-03-08 15:39:14 +00:00
report.c Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util 2005-07-19 13:21:51 +00:00
ser_putc.c prototype fix 2008-12-11 15:02:44 +00:00
stacktrace.c Fixed some warnings 2009-08-17 18:48:57 +00:00
sys_hz.c No more HZ; move stacktrace() to library 2008-12-11 14:36:37 +00:00
sysutil.h Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util 2005-07-19 13:21:51 +00:00
taskcall.c endpoint_t in syslib 2009-09-22 21:42:02 +00:00
tickdelay.c General cleanup: 2010-01-05 19:39:27 +00:00
timing.c timing library from kernel into library 2009-01-09 16:39:31 +00:00