process: add name getter
This commit is contained in:
parent
ee42ba1350
commit
2359cf2744
@ -164,6 +164,10 @@ int processSetName(struct process *proc, char *name)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *processGetName(struct process *proc){
|
||||||
|
return proc->name;
|
||||||
|
}
|
||||||
|
|
||||||
struct mmu_context *processGetMMUContext(struct process *proc)
|
struct mmu_context *processGetMMUContext(struct process *proc)
|
||||||
{
|
{
|
||||||
return uAddrSpaceGetMMUContext(proc->addrSpace);
|
return uAddrSpaceGetMMUContext(proc->addrSpace);
|
||||||
|
@ -12,6 +12,7 @@ void processListPrint();
|
|||||||
int processRef(struct process *proc);
|
int processRef(struct process *proc);
|
||||||
int processUnref(struct process *proc);
|
int processUnref(struct process *proc);
|
||||||
int processSetName(struct process *proc, char *name);
|
int processSetName(struct process *proc, char *name);
|
||||||
|
char *processGetName(struct process *proc);
|
||||||
int processAddThread(struct process *proc, struct thread *th);
|
int processAddThread(struct process *proc, struct thread *th);
|
||||||
int processRemoveThread(struct thread *th);
|
int processRemoveThread(struct thread *th);
|
||||||
struct mmu_context *processGetMMUContext(struct process *th);
|
struct mmu_context *processGetMMUContext(struct process *th);
|
||||||
|
Loading…
Reference in New Issue
Block a user