Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
21da044f
Commit
21da044f
authored
Jan 31, 2016
by
Hisham
Browse files
Add generated header.
parent
6434db5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
freebsd/FreeBSDProcessList.h
View file @
21da044f
...
...
@@ -14,24 +14,48 @@ in the source distribution for its full text.
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#include <sys/resource.h>
#define JAIL_ERRMSGLEN 1024
char
jail_errmsg
[
JAIL_ERRMSGLEN
];
typedef
struct
CPUData_
{
unsigned
long
long
int
totalTime
;
unsigned
long
long
int
totalPeriod
;
double
userPercent
;
double
nicePercent
;
double
systemPercent
;
double
irqPercent
;
double
idlePercent
;
double
systemAllPercent
;
}
CPUData
;
typedef
struct
FreeBSDProcessList_
{
ProcessList
super
;
kvm_t
*
kd
;
int
zfsArcEnabled
;
unsigned
long
long
int
memWire
;
unsigned
long
long
int
memActive
;
unsigned
long
long
int
memInactive
;
unsigned
long
long
int
memFree
;
unsigned
long
long
int
memZfsArc
;
CPUData
*
cpus
;
unsigned
long
*
cp_time_o
;
unsigned
long
*
cp_time_n
;
unsigned
long
*
cp_times_o
;
unsigned
long
*
cp_times_n
;
}
FreeBSDProcessList
;
ProcessList
*
ProcessList_new
(
UsersTable
*
usersTable
,
Hashtable
*
pidWhiteList
,
uid_t
userId
);
void
ProcessList_delete
(
ProcessList
*
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment