summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hints.c
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetic tweaks. Try and keep the style more consistent, catch some straypeter2002-05-011-3/+2
| | | | whitespace and update a comment.
* Finish fixing hints. Remember the use_kenv state for the next run.peter2002-04-271-8/+10
| | | | | | | | | Otherwise we fall back to using the static hints the next time around. We still have the leftover fallback code there which meant that we skipped the use_hints checking on the second and subsequent calls. Also, be a bit more careful about walking off the end of the envp array. I've extracted this from a larger diff. I hope I didn't miss anything...
* Partial fix for hintspeter2002-04-271-2/+4
| | | | Obtained from: mux
* Rework the kernel environment subsystem. We now convert the staticmux2002-04-171-18/+54
| | | | | | | | | | | | | | | | | 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
* Fix a fatal type mismatch (char *static_env; vs char static_env[]).peter2001-09-171-2/+0
| | | | Submitted by: bde
* Go back to having either static OR dynamic hints, with fallbackpeter2001-07-141-15/+40
| | | | | | | | support. Trying to fix the merged set where dynamic overrode static was getting more and more complicated by the day. This should fix the duplicate atkbd, psm, fd* etc in GENERIC. (which paniced the alpha, but not the i386)
* Hints overhaul:peter2001-06-121-0/+304
- Replace some very poorly thought out API hacks that should have been fixed a long while ago. - Provide some much more flexible search functions (resource_find_*()) - Use strings for storage instead of an outgrowth of the rather inconvenient temporary ioconf table from config(). We already had a fallback to using strings before malloc/vm was running anyway.
OpenPOWER on IntegriCloud