io_uring/bpf_filter.h
Source file repositories/reference/linux-study-clean/io_uring/bpf_filter.h
File Facts
- System
- Linux kernel
- Corpus path
io_uring/bpf_filter.h- Extension
.h- Size
- 1172 bytes
- Lines
- 49
- Domain
- Kernel Services
- Bucket
- io_uring
- Inferred role
- Kernel Services: implementation source
- Status
- source implementation candidate
Why This File Exists
Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
uapi/linux/io_uring/bpf_filter.h
Detected Declarations
function io_uring_run_bpf_filtersfunction io_register_bpf_filterfunction io_uring_run_bpf_filtersfunction io_put_bpf_filters
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
#ifndef IO_URING_BPF_FILTER_H
#define IO_URING_BPF_FILTER_H
#include <uapi/linux/io_uring/bpf_filter.h>
#ifdef CONFIG_IO_URING_BPF
int __io_uring_run_bpf_filters(struct io_bpf_filter __rcu **filters, struct io_kiocb *req);
int io_register_bpf_filter(struct io_restriction *res,
struct io_uring_bpf __user *arg);
void io_put_bpf_filters(struct io_restriction *res);
void io_bpf_filter_clone(struct io_restriction *dst, struct io_restriction *src);
static inline int io_uring_run_bpf_filters(struct io_bpf_filter __rcu **filters,
struct io_kiocb *req)
{
if (filters)
return __io_uring_run_bpf_filters(filters, req);
return 0;
}
#else
static inline int io_register_bpf_filter(struct io_restriction *res,
struct io_uring_bpf __user *arg)
{
return -EINVAL;
}
static inline int io_uring_run_bpf_filters(struct io_bpf_filter __rcu **filters,
struct io_kiocb *req)
{
return 0;
}
static inline void io_put_bpf_filters(struct io_restriction *res)
{
}
static inline void io_bpf_filter_clone(struct io_restriction *dst,
struct io_restriction *src)
{
}
#endif /* CONFIG_IO_URING_BPF */
#endif
Annotation
- Immediate include surface: `uapi/linux/io_uring/bpf_filter.h`.
- Detected declarations: `function io_uring_run_bpf_filters`, `function io_register_bpf_filter`, `function io_uring_run_bpf_filters`, `function io_put_bpf_filters`.
- Atlas domain: Kernel Services / io_uring.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.