tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [RFC] aftermountroothook
> some network devices require firmware to read MAC address. if such
> devices are attached before root directory is mounted, they are not
> attached as ordinary network interface.
:
> to resolv this issue, following patch introduces "aftermountroothook".
>
> http://www.naobsd.org/porting/aftermountroothook.diff
>
> use it when root directory is not mounted while attaching.
I guess the aftermountroot hook is required by devices
that need to load firmware to complete device initialization.
Is there any other possible subsystems that require such
aftermountroothook other than autoconf(9)?
If it's only required to load firmware from root file system
for devices configured during autoconf(9), I think it's better
to handle it in subr_autoconf.c rather than adding a generic hook.
Actually generic shutdownhook has been deprecated.
I think it can be implemented as well as config_interrupt().
You can register all deferred initializetions via config_mountroot()
(or so) like config_interrupt() and they could be established by
config_finalize_mountroot() (or so) from init_main.c after mountroot().
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index