Beck M., Bohme H., Dziadzka M. - Linux kernel internals (1997).pdf

(5948 KB) Pobierz
Linux kernel internails
-1-
Linux kernel internails
-2-
Linux kernel internails
-3-
In
memoriam,
Dirk Verwomer
Linux kernel internails
-4-
PREFACE
This is the second edition of our book about the
LINUX
kernel. The book has been
updated to cover the 2.0 version of the kernel, which is a milestone in the
development of
LINUX
.
LINUX
2.0 is now the standard
UNIX
desktop operating system,
giving you all the power of free
UNIX
software which has been developed over more
than 25 years, together with a growing number of commercial applications. It is both
stable and open. There are no hidden secrets. If you want to solve a problem, you can
get the source code. Such a philosophy is exactly what this book is about. We tell you
about the
LINUX
kernel so, you, the experienced computer user, are always in control.
It seems that a lot of early
LINUX
hackers, like ourselves, are now professional
software developers. As such, it is always helpful to know something about operating
systems. At least you will have seen some pieces of really good code. When we started
to play with
LINUX
, we did it for fun. Now there is a real return. Seen in this light, this
book is a good investment.
Recently some hackers told us that
LINUX
is boring. They want to have the
excitement of something really cool and new, and the joy of seeing something grow from
scratch. To us, though, developments such as a project to develop a
LINUX
graphical user
interface supporting a unique look-and-feel still seem very exciting. Such developments
will make
LINUX
usable for the famous 'rest of us'. For a lot of people
LINUX
is a better
UNIX
than
UNIX
. We would really love to use a better Windows than Windows. Or to put
it another way:
simply make
LINUX
more like the Macintosh.
As in every preface, we want to thank all the people who made this edition
possible. We have to mention here Fiona Kinnear from Addison Wesley Longman. This
edition would not have been published without her commitment.
Linux kernel internails
-5-
Contents
Foreword
Preface
1
LINUX
- the operating system
1.1 Main characteristics
1.2 Linux distributions
2 Compiling the kernel
2.1 Where is everything?
2.2 Compiling
2.3 Additional configuration facilities
3 Introduction to the kernel
3.1 Important data structures
3.1.1 The task structure
3.1.2 The process table
3.1.3 Files and inodes
3.1.4 Dynamic memory management 33
3.1.5 Queues and semaphores
3.1.6 System time and timers
3.2 Main algorithms
3.2.1 Signals
3.2.2 Interrupts
3.2.3 Booting the system
3.2.4 Timer interrupt
3.2.5 The scheduler
vii
ix
1
3
5
6
6
9
11
15
20
20
29
31
34
36
37
37
39
41
44
47
Zgłoś jeśli naruszono regulamin