Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47580ff7 authored by T.J. Mercier's avatar T.J. Mercier
Browse files

Reapply "libprocessgroup: Remove ACgroupController_getMaxActivati..."

This reverts commit aeca8793.

Change-Id: I06e7e651f0cabfd43b50a278baf36f31f6061a8f
parent c76b6ada
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -32,11 +32,6 @@ uint32_t ACgroupController_getFlags(const ACgroupController* controller) {
    return controller->flags();
}

uint32_t ACgroupController_getMaxActivationDepth(const ACgroupController* controller) {
    CHECK(controller != nullptr);
    return controller->max_activation_depth();
}

const char* ACgroupController_getName(const ACgroupController* controller) {
    CHECK(controller != nullptr);
    return controller->name();
+0 −8
Original line number Diff line number Diff line
@@ -78,14 +78,6 @@ __attribute__((warn_unused_result)) uint32_t ACgroupController_getVersion(const
__attribute__((warn_unused_result, weak)) uint32_t ACgroupController_getFlags(
        const ACgroupController*) __INTRODUCED_IN(30);

/**
 * Returns the maximum activation depth of the given controller.
 * Only applicable to cgroup v2 controllers.
 * Returns UINT32_MAX if no maximum activation depth is set.
 */
__attribute__((warn_unused_result, weak)) uint32_t ACgroupController_getMaxActivationDepth(
        const ACgroupController* controller) __INTRODUCED_IN(36);

/**
 * Returns the name of the given controller.
 * If the given controller is null, return nullptr.
+0 −7
Original line number Diff line number Diff line
@@ -16,10 +16,3 @@ LIBCGROUPRC_30 { # introduced=30
  local:
    *;
};

LIBCGROUPRC_36 { # introduced=36
  global:
    ACgroupController_getMaxActivationDepth; # llndk=202504 systemapi
  local:
    *;
};