usb: getting string descriptors, minor improvements
[quarnos.git] / docs / Services.tex
blobbb3f43294b508e69fdcb50aa511e92ad7742846b
1 \documentclass[a4paper,10pt]{article}
3 \begin{document}
5 \title{\textbf{Services}}
6 \author{Pawel Dziepak}
7 \date{\textit{June 05, 2008}}
8 \maketitle
10 \section{Introduction}
11 \paragraph{}Manes, when running, needs to do a lot of different things. As a core of the
12 kernel, its task is to control almost everything. To make organisation of the
13 code easier, there were created things such as services.
15 \paragraph{}Their task is to provide elemental functions for Manes. Good choosen set of
16 services will effect with better performance and functionallity. The difference
17 between modules and services is that the last ones are statically compiled
18 with the Manes and do not need as advanced runtime environment as modules. It
19 means that Manes can use them to manage modules and the whole system.
21 \section{Services manager}
22 \paragraph{}There is a service manager which provides an easy to use interface which help
23 Manes to manage services. It creates services, stores them and give back to
24 Manes when it need them. Everything is connected with the dynamic types control.
26 \paragraph{}In general there can be only one service of specific type registered (cases
27 such as \texttt{early\_logger} and \texttt{tty\_logger} counts as two different types). If Manes
28 registers another service of the same type, service manager always will give
29 back the first one.
31 \end{document}