summaryrefslogtreecommitdiffstats
path: root/dragonflybsd/DragonFlyBSDMachine.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-01-19 20:57:33 +0100
committercgzones <cgzones@googlemail.com>2024-01-20 11:51:47 +0100
commit7639d62459b306af0ba2f1f6d1cc549c6982944d (patch)
treea27b44b0e55f2804ceba0077476033334eec753a /dragonflybsd/DragonFlyBSDMachine.c
parent91990b1a34927a4136a85e4ff9adcdbfa500286a (diff)
DragonFlyBSD: build fixes
Diffstat (limited to 'dragonflybsd/DragonFlyBSDMachine.c')
-rw-r--r--dragonflybsd/DragonFlyBSDMachine.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/dragonflybsd/DragonFlyBSDMachine.c b/dragonflybsd/DragonFlyBSDMachine.c
index fd5b58b6..d71778fa 100644
--- a/dragonflybsd/DragonFlyBSDMachine.c
+++ b/dragonflybsd/DragonFlyBSDMachine.c
@@ -119,7 +119,7 @@ Machine* Machine_new(UsersTable* usersTable, uid_t userId) {
}
void Machine_delete(Machine* super) {
- const DragonFlyBSDMachine* this = (const DragonFlyBSDMachine*) super;
+ DragonFlyBSDMachine* this = (DragonFlyBSDMachine*) super;
Machine_done(super);
@@ -223,7 +223,7 @@ static void DragonFlyBSDMachine_scanCPUTime(Machine* super) {
}
static void DragonFlyBSDMachine_scanMemoryInfo(Machine* super) {
- DragonFlyBSDMachine* this = (DragonFlyBSDProcessTable*) super;
+ DragonFlyBSDMachine* this = (DragonFlyBSDMachine*) super;
// @etosan:
// memory counter relationships seem to be these:
@@ -319,7 +319,7 @@ retry:
free(jails);
}
-char* DragonFlyBSDMachine_readJailName(DragonFlyBSDMachine* host, int jailid) {
+char* DragonFlyBSDMachine_readJailName(const DragonFlyBSDMachine* host, int jailid) {
char* hostname;
char* jname;
@@ -339,3 +339,11 @@ void Machine_scan(Machine* super) {
DragonFlyBSDMachine_scanCPUTime(super);
DragonFlyBSDMachine_scanJails(this);
}
+
+bool Machine_isCPUonline(const Machine* host, unsigned int id) {
+ assert(id < host->existingCPUs);
+ (void)host; (void)id;
+
+ // TODO: Support detecting online / offline CPUs.
+ return true;
+}

© 2014-2024 Faster IT GmbH | imprint | privacy policy