]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/bpf-foreign.h
core: align table
[thirdparty/systemd.git] / src / core / bpf-foreign.h
CommitLineData
948def4a 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
5f8ba20d
JK
2
3#pragma once
4
5#include "unit.h"
6
084d0849
JK
7static inline int bpf_foreign_supported(void) {
8 return cg_all_unified();
9}
10
5f8ba20d
JK
11/*
12 * Attach cgroup-bpf programs foreign to systemd, i.e. loaded to the kernel by an entity
13 * external to systemd.
14 */
15int bpf_foreign_install(Unit *u);