htop/freebsd/FreeBSDProcessList.h

59 lines
1.3 KiB
C
Raw Normal View History

2014-11-27 16:27:34 -02:00
#ifndef HEADER_FreeBSDProcessList
#define HEADER_FreeBSDProcessList
/*
2014-11-27 17:44:55 -02:00
htop - FreeBSDProcessList.h
2014-11-27 16:27:34 -02:00
(C) 2014 Hisham H. Muhammad
Released under the GNU GPLv2+, see the COPYING file
2014-11-27 16:27:34 -02:00
in the source distribution for its full text.
*/
2014-11-27 17:44:55 -02:00
#include <kvm.h>
2020-11-18 15:12:18 +01:00
#include <stdbool.h>
#include <sys/types.h>
#include "Hashtable.h"
#include "ProcessList.h"
#include "UsersTable.h"
#include "zfs/ZfsArcStats.h"
typedef struct CPUData_ {
2016-01-31 17:41:55 +01:00
double userPercent;
double nicePercent;
double systemPercent;
double irqPercent;
double systemAllPercent;
double frequency;
double temperature;
} CPUData;
2014-11-27 17:44:55 -02:00
typedef struct FreeBSDProcessList_ {
ProcessList super;
kvm_t* kd;
2016-01-31 17:41:55 +01:00
unsigned long long int memWire;
unsigned long long int memActive;
ZfsArcStats zfs;
2016-01-31 17:41:55 +01:00
CPUData* cpus;
2020-10-31 23:28:02 +01:00
unsigned long* cp_time_o;
unsigned long* cp_time_n;
2016-01-31 17:41:55 +01:00
2020-10-31 23:28:02 +01:00
unsigned long* cp_times_o;
unsigned long* cp_times_n;
2016-01-31 17:41:55 +01:00
2014-11-27 17:44:55 -02:00
} FreeBSDProcessList;
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* dynamicColumns, Hashtable* pidMatchList, uid_t userId);
2014-11-27 18:31:39 -02:00
void ProcessList_delete(ProcessList* this);
2015-03-16 23:01:48 -03:00
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
2014-11-27 16:27:34 -02:00
2021-06-12 22:04:37 +02:00
bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id);
2014-11-27 16:27:34 -02:00
#endif