| /* SPDX-License-Identifier: GPL-2.0-only */ | |
| // Copyright (c) 2026 Jarkko Sakkinen | |
| #ifndef UCELLS_SYSCTL_H | |
| #define UCELLS_SYSCTL_H | |
| #include "notify.h" | |
| #include "uapi.h" | |
| struct sysctl { | |
| int writer_fd; | |
| struct file_identity writer_id; | |
| }; | |
| int sysctl_create(struct sysctl *sysctl); | |
| void sysctl_destroy(struct sysctl *sysctl); | |
| int sysctl_dispatch(const struct sysctl *sysctl, int listener, | |
| const struct seccomp_notif *notif, uint16_t *quota, | |
| struct dispatch_outcome *out); | |
| #endif |