Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 697 Lines • ▼ Show 20 Lines | |||||
#define p_startcopy p_endzero | #define p_startcopy p_endzero | ||||
u_int p_magic; /* (b) Magic number. */ | u_int p_magic; /* (b) Magic number. */ | ||||
int p_osrel; /* (x) osreldate for the | int p_osrel; /* (x) osreldate for the | ||||
binary (from ELF note, if any) */ | binary (from ELF note, if any) */ | ||||
uint32_t p_fctl0; /* (x) ABI feature control, ELF note */ | uint32_t p_fctl0; /* (x) ABI feature control, ELF note */ | ||||
char p_comm[MAXCOMLEN + 1]; /* (x) Process name. */ | char p_comm[MAXCOMLEN + 1]; /* (x) Process name. */ | ||||
struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */ | struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */ | ||||
struct pargs *p_args; /* (c) Process arguments. */ | struct pargs *p_args; /* (c) Process arguments. */ | ||||
vm_offset_t p_stacktop; /* (c) Top of the main process stack. */ | |||||
kib: I am not sure that this is right. Consider rfork(RFMEM), these two processes cannot have… | |||||
markjAuthorUnsubmitted Done Inline ActionsPutting it in vmspace makes sense to me, and it simplifies the MFC. markj: Putting it in vmspace makes sense to me, and it simplifies the MFC. | |||||
rlim_t p_cpulimit; /* (c) Current CPU limit in seconds. */ | rlim_t p_cpulimit; /* (c) Current CPU limit in seconds. */ | ||||
signed char p_nice; /* (c) Process "nice" value. */ | signed char p_nice; /* (c) Process "nice" value. */ | ||||
int p_fibnum; /* in this routing domain XXX MRT */ | int p_fibnum; /* in this routing domain XXX MRT */ | ||||
pid_t p_reapsubtree; /* (e) Pid of the direct child of the | pid_t p_reapsubtree; /* (e) Pid of the direct child of the | ||||
reaper which spawned | reaper which spawned | ||||
our subtree. */ | our subtree. */ | ||||
uint64_t p_elf_flags; /* (x) ELF flags */ | uint64_t p_elf_flags; /* (x) ELF flags */ | ||||
void *p_elf_brandinfo; /* (x) Elf_Brandinfo, NULL for | void *p_elf_brandinfo; /* (x) Elf_Brandinfo, NULL for | ||||
▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines |
I am not sure that this is right. Consider rfork(RFMEM), these two processes cannot have different stacktop. So wouldn't it make sense to put it either to vmspace or to vm_map (I think vmspace is better).
I understand that the value is copied on fork, but for me it looks as a wrong location to keep it.