Modular Kernel

Modular Kernel - Modular Kernel Modern Operating Systems...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Modular Kernel Modern Operating Systems have a modular architecture The modern kernels only gives a small functionality such as scheduling and inter-process communication. Other functionality is added with modules loaded at boot time or later in the execution called “Loadable Modules”. Loadable modules allow experimenting with the kernel without the need to recompile the whole OS. In contrast, early OSs where monolithic, where all the features where compiled into a single executable.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Kernel Loadable Modules Kernel Loadable modules are shared libraries that are loaded into the kernel to run in kernel mode. You compile them like a shared library but you are limited in the library dependencies that it can have. Also you need to define some specific entry functions: _ini –Runs when the loadable module is loaded _fini – Runs when the loadable is unloaded _info – Gives information about the loadable module
Background image of page 2
Kernel Loadable Modules Example of Kernel Loadable modules are: New schedulers TCP/IP stacks or other network stacks Interprocess communication System Call Interception Device Drivers
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Kernel Loadable Modules The commands to manage loadable modules in Solaris are: modload – Loads a loadable module modunload – Unloads a loadable module modinfo – Gives information about the currently loaded modules.
Background image of page 4
Kernel Modules in Solaris brastius 691 % modinfo Id Loadaddr Size Info Rev Module Name 6 10156000 45cb 1 1 specfs (filesystem for specfs) 8 1015beb0 333c 1 1 TS (time sharing sched class)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

Modular Kernel - Modular Kernel Modern Operating Systems...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online