9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e19076abd5ed5c07456e07bc181692588ed862a6
parent 0e01341d11d51601f3d776a78df8ae447e9dec55
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Thu, 17 Nov 2022 06:37:31 +0100

os9: Remove name field from Task

Diffstat:
Minclude/os9/os9.h | 5-----
Msrc/os9/dev/devproc.c | 2--
Msrc/os9/proc.c | 1-
3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/include/os9/os9.h b/include/os9/os9.h @@ -158,7 +158,6 @@ struct mpoint { }; /** - * @name: Name of the task. * @entry: Entry point for the task. * @prio: * @baseprio: @@ -187,7 +186,6 @@ struct task { int pid; int ppid; - char *name; void *entry; int prio; @@ -213,9 +211,6 @@ struct task { Context ctx; Ptable ptable; void *kstack; - /* communication ports */ - /* healt monitor table */ - /* Task *errhdl; */ Map *text; Map *data; diff --git a/src/os9/dev/devproc.c b/src/os9/dev/devproc.c @@ -96,7 +96,6 @@ taskattrread(Chan *c, void *buf, int n) len = ksnprint(tmp, sizeof(tmp), - "name: %s\n" "pid: %d\n" "entry: %p\n" "stack size: %zd\n" @@ -104,7 +103,6 @@ taskattrread(Chan *c, void *buf, int n) "period: %ld\n" "capacity: %ld\n" "deadline: %ld\n", - tp->name, tp->pid, tp->entry, tp->stack, diff --git a/src/os9/proc.c b/src/os9/proc.c @@ -444,7 +444,6 @@ kproc(void *fn) tp->pid = 1; tp->ppid = -1; - tp->name = "init"; tp->entry = fn; tp->prio = 0;