Split procinfo.h from procdata.h to reduce namespace pollution
authorAndrew Waterman <waterman@parcad.millennium.berkeley.edu>
Wed, 27 Jan 2010 21:46:24 +0000 (13:46 -0800)
committerAndrew Waterman <waterman@parcad.millennium.berkeley.edu>
Wed, 27 Jan 2010 21:46:24 +0000 (13:46 -0800)
kern/include/ros/procdata.h
kern/include/ros/procinfo.h [new file with mode: 0644]

index 5aaed53..220d3e9 100644 (file)
@@ -5,23 +5,9 @@
 
 #include <ros/memlayout.h>
 #include <ros/syscall.h>
-#include <ros/sysevent.h>
-#include <ros/error.h>
+#include <ros/ring_syscall.h>
 #include <ros/common.h>
-
-#define PROCINFO_MAX_ARGV_SIZE 1024
-#define PROCINFO_MAX_ENV_SIZE 1024
-
-typedef struct procinfo {
-       pid_t pid;
-       pid_t ppid;
-       size_t max_harts;
-       uint64_t tsc_freq;
-
-       char argv_buf[PROCINFO_MAX_ARGV_SIZE];
-       char env_buf[PROCINFO_MAX_ENV_SIZE];
-} procinfo_t;
-#define PROCINFO_NUM_PAGES  ((sizeof(procinfo_t)-1)/PGSIZE + 1)        
+#include <ros/procinfo.h>
 
 typedef struct procdata {
        // The actual ring buffers for communicating with user space
diff --git a/kern/include/ros/procinfo.h b/kern/include/ros/procinfo.h
new file mode 100644 (file)
index 0000000..02baf32
--- /dev/null
@@ -0,0 +1,23 @@
+/* See COPYRIGHT for copyright information. */
+
+#ifndef ROS_PROCINFO_H
+#define ROS_PROCINFO_H
+
+#include <ros/memlayout.h>
+#include <ros/common.h>
+
+#define PROCINFO_MAX_ARGV_SIZE 1024
+#define PROCINFO_MAX_ENV_SIZE 1024
+
+typedef struct procinfo {
+       pid_t pid;
+       pid_t ppid;
+       size_t max_harts;
+       uint64_t tsc_freq;
+
+       char argv_buf[PROCINFO_MAX_ARGV_SIZE];
+       char env_buf[PROCINFO_MAX_ENV_SIZE];
+} procinfo_t;
+#define PROCINFO_NUM_PAGES  ((sizeof(procinfo_t)-1)/PGSIZE + 1)        
+
+#endif // !ROS_PROCDATA_H