summaryrefslogtreecommitdiffstats
path: root/src/core/bpf-foreign.h
blob: e387b1b1d3897a42ab065cf231685a393f6f0247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1-or-later */

#pragma once

#include "unit.h"

static inline int bpf_foreign_supported(void) {
        return cg_all_unified();
}

/*
 * Attach cgroup-bpf programs foreign to systemd, i.e. loaded to the kernel by an entity
 * external to systemd.
 */
int bpf_foreign_install(Unit *u);