Generalize /proc/fs/kernel/max-thread

Jean-Michel VANSTEENE (Jean-Michel.Vansteene@bull.net)
Mon, 21 Dec 1998 13:33:40 +0100


I would like to propose to generalize the idea of ingo MOLNAR.
In his patch, he created a /proc/fs/kernel/max-thread.

The value returned is the current max number of tasks, let say,
NR_TASKS (or DEFAULT_MAX_THREADS in his patch).
I think it is a good idea and could be generalized to standard
kernel.

So procps utilities could open this "file" to read the current
NR_TASK and malloc the internal table with to the right size.

This will improve procps tools and make them really "exportable".
Agree?

-- 
*--* mailto:Jean-Michel.Vansteene@bull.net  (Bull)
*--* mailto:vanstee@worldnet.fr             (Home)
*--* http://www.worldnet.fr/~vanstee        (Jean GABIN)
-------------------------------------------------------------
- - - - - U n   L i n u x   s i n o n   r i e n - - - - - - -

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/