mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
This also - merges basic/linux and shared/linux, - moves BPF_JUMP_A() to basic/missing_bpf.h, - copies from usrspace kernel headers directory generated by 'make headers', rather than copying from kernel tree, - copies const.h into our tree to reduce change in ethtool.h, - copies auto_fs.h into our tree to reduce change in auto_dev-ioctl.h.
15 lines
588 B
C
15 lines
588 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include <linux/bpf.h>
|
|
|
|
/* defined in linux/filter.h */
|
|
/* Unconditional jumps, goto pc + off16 */
|
|
#define BPF_JMP_A(OFF) \
|
|
((struct bpf_insn) { \
|
|
.code = BPF_JMP | BPF_JA, \
|
|
.dst_reg = 0, \
|
|
.src_reg = 0, \
|
|
.off = OFF, \
|
|
.imm = 0 })
|