Re: some questions...

David S. Miller (davem@caip.rutgers.edu)
Sat, 17 Feb 1996 05:47:49 -0500


Date: Fri, 16 Feb 1996 15:57:05 PST
From: "Marty Leisner" <leisner@sdsp.mc.xerox.com>

3) What's the purpose of count in files_struct? There's also a count on each
fp...

4) Is there a reason the task struct has pointers to other structs
(i.e. files_struct, mm_struct) instead of just coding them inline?

The answers to both of these questions is sys_clone(). They allow two
processes (or even more) to share the same set of files, vm space, or
similar. And they have to be hung off using pointers in order to
reference the same shared object from multiple task_structs.

Later,
David S. Miller
davem@caip.rutgers.edu