process: add name getter

This commit is contained in:
Mathieu Maret 2024-01-26 22:23:58 +01:00 committed by Mathieu Maret
parent ee42ba1350
commit 2359cf2744
2 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,10 @@ int processSetName(struct process *proc, char *name)
return 0;
}
char *processGetName(struct process *proc){
return proc->name;
}
struct mmu_context *processGetMMUContext(struct process *proc)
{
return uAddrSpaceGetMMUContext(proc->addrSpace);

View File

@ -12,6 +12,7 @@ void processListPrint();
int processRef(struct process *proc);
int processUnref(struct process *proc);
int processSetName(struct process *proc, char *name);
char *processGetName(struct process *proc);
int processAddThread(struct process *proc, struct thread *th);
int processRemoveThread(struct thread *th);
struct mmu_context *processGetMMUContext(struct process *th);