Merge branch 'master' into net-dev (with code changes listed below besides normal...
[akaros.git] / kern / include / ros / procdata.h
1 /* See COPYRIGHT for copyright information. */
2
3 #ifndef ROS_PROCDATA_H
4 #define ROS_PROCDATA_H
5
6 #include <ros/memlayout.h>
7 #include <ros/syscall.h>
8 #include <ros/sysevent.h>
9 #include <ros/error.h>
10
11 typedef int32_t pid_t;
12
13 typedef struct procinfo {
14         pid_t id;
15 } procinfo_t;
16 #define PROCINFO_NUM_PAGES  ((sizeof(procinfo_t)-1)/PGSIZE + 1) 
17
18 typedef struct procdata {
19         // The actual ring buffers for communicating with user space
20         syscall_sring_t  syscallring;  // Per-process ring buffer for async syscalls
21         sysevent_sring_t syseventring; // Per-process ring buffer for async sysevents
22 } procdata_t;
23 #define PROCDATA_NUM_PAGES  ((sizeof(procdata_t)-1)/PGSIZE + 1)
24
25 #endif // !ROS_PROCDATA_H