Skip to main content

scx_mlfq/
bpf_intf.rs

1// SPDX-License-Identifier: GPL-2.0
2//
3// Copyright (c) 2026 Galih Tama <galpt@v.recipes>
4//
5// This software may be used and distributed according to the terms of the
6// GNU General Public License version 2.
7
8// Bindgen output from src/bpf/intf.h follows C naming and contains
9// helpers without safety docs. Like fair.c's helpers, the naming is
10// kept as-is from the header; allow those lints only for the
11// generated file so an unused intf.h constant still warns.
12#![allow(non_upper_case_globals)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(dead_code)]
16#![allow(clippy::missing_safety_doc)]
17
18include!(concat!(env!("OUT_DIR"), "/bpf_intf.rs"));