cvs commit: src/sys/kern subr_hints.c

Anish Mistry mistry.7 at osu.edu
Mon Aug 1 14:04:23 GMT 2005


On Sunday 31 July 2005 06:46 am, Alexander Leidinger wrote:
> netchild    2005-07-31 10:46:55 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             subr_hints.c
>   Log:
>   The resource_xxx routines in subr_hints.c are called before and
> after the kenv environment in kern_environment.c switches to
> dynamic kenv. The prior call sets the static variable hintp to the
> static hints in subr_hints.c (hintmode==0).
>
>   However, changes to the environment are not detected by the
> resource_xxx lookups after the change to dynamic kernel
> environment, so the lookup routines only report the old stuff of
> hintmode==0, even after the change to the dynamic kenv. This causes
> kenv users to see a different environment than the kernel routines.
>
>   This is a problem in the mixer.c code that looks up initial mixer
> volume settings from the hints: If the hints are dynamic and not
> from the device.hints file, mixer.c doesn't see them, but kenv
> does.
>
>   The patch from the PR (modified to comply to the style of the
> function) solves this.
>
>   PR:             83686
>   Submitted by:   Harry Coin <harrycoin at qconline.com>
>
>   Revision  Changes    Path
>   1.12      +2 -0      src/sys/kern/subr_hints.c

These 2 PR can also be closed:
http://www.freebsd.org/cgi/query-pr.cgi?pr=84033
http://www.freebsd.org/cgi/query-pr.cgi?pr=84034

-- 
Anish Mistry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20050801/1771bf68/attachment.bin


More information about the cvs-all mailing list