Split procinfo.h from procdata.h to reduce namespace pollution
[akaros.git] / kern / include / ros / procinfo.h
1 /* See COPYRIGHT for copyright information. */
2
3 #ifndef ROS_PROCINFO_H
4 #define ROS_PROCINFO_H
5
6 #include <ros/memlayout.h>
7 #include <ros/common.h>
8
9 #define PROCINFO_MAX_ARGV_SIZE 1024
10 #define PROCINFO_MAX_ENV_SIZE 1024
11
12 typedef struct procinfo {
13         pid_t pid;
14         pid_t ppid;
15         size_t max_harts;
16         uint64_t tsc_freq;
17
18         char argv_buf[PROCINFO_MAX_ARGV_SIZE];
19         char env_buf[PROCINFO_MAX_ENV_SIZE];
20 } procinfo_t;
21 #define PROCINFO_NUM_PAGES  ((sizeof(procinfo_t)-1)/PGSIZE + 1) 
22
23 #endif // !ROS_PROCDATA_H