FreeBSDProcessList.h 837 Bytes
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
2
3
4
5
/* Do not edit this file. It was automatically generated. */

#ifndef HEADER_FreeBSDProcessList
#define HEADER_FreeBSDProcessList
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - FreeBSDProcessList.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
8
9
10
11
12
(C) 2014 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/


Hisham Muhammad's avatar
Hisham Muhammad committed
13
14
#include <kvm.h>

15
16
17
18
19
typedef struct CPUData_ {
   unsigned long long int totalTime;
   unsigned long long int totalPeriod;
} CPUData;

Hisham Muhammad's avatar
Hisham Muhammad committed
20
21
22
typedef struct FreeBSDProcessList_ {
   ProcessList super;
   kvm_t* kd;
23
24
25

   CPUData* cpus;

Hisham Muhammad's avatar
Hisham Muhammad committed
26
27
28
} FreeBSDProcessList;


29
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
Hisham Muhammad's avatar
Hisham Muhammad committed
30

Hisham Muhammad's avatar
Hisham Muhammad committed
31
32
void ProcessList_delete(ProcessList* this);

33
34
35
char* FreeBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, int* basenameEnd);

void ProcessList_goThroughEntries(ProcessList* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
36
37

#endif