1 Aug 2002 01:17
Re: Add-ons/Module problems/ideas??
En réponse à Rudy Gingles <rudyatek@...>: > So, basically modules and drivers ARE the same thing? Just two ways > of interfacing with them due to Unix tradition? This still doesn't > entirely make sense, partly because I didn't know BeOS was that > influenced by tradition, and partly because it still seems redundant > to me. Is this something that will change in R2? I'm still trying to > find a reason why modules and drivers must exist as separate > entities, with the kernel treating the two differently. > No. In BeOS, only drivers are able to publish device files (/dev entries), modules aren't, they are meant to be called by kernel drivers. ( IIRC NewOS doesn't do the distinction between the too...) You can view this as a tree (not exactly, but), with modules at intersections, and drivers at the leaves. Modules can call other modules, drivers are only loaded by the kernel. François.
>
>Is it possible to have a kernel that can reboot itself? I think I posted
>this on the suggestions list, but I didn't get much of a response.
>
>1. The kernel suspends each thread, recording the priority of each thread
>as they are taken down.
>
>2. The kernel takes the entire memory space and transfers it to a
>known position on disk.
>
>3. The kernel records (whatever other critical information it needs).
>
>4. The kernel shuts down. (either shutting down the machine, also, or
>rebooting the kernel).
>
>On bootup (if say, spacebar is pressed), then it boots up normally,
>clearing out all of the previously recorded information.
>
>Otherwise, after the FS is loaded, it transfers the entire memory space
>back up to the machine from disk, and whatever other information was
>transferred. Then it one-by-one turns on each thread.
>
>I guess there are a few important things that need to be addressed (what
>to do with semaphores floating about, thread_ids, port_ids, area_ids
>needing to be conserved, et cetera)...
RSS Feed