aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/null
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2025-10-16 22:32:45 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2025-10-18 05:12:37 +0000
commit36138969847b231cd98f48272e2bdf88a8dc08dd (patch)
tree3a251180b5556e9731f915feb2a36b10122d508f /sys/dev/null
parent7a72e88781ae294aae6b97e1972cb19b2a670412 (diff)
Diffstat (limited to 'sys/dev/null')
-rw-r--r--sys/dev/null/null.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c
index 8525eb9543c3..c4f138b102c7 100644
--- a/sys/dev/null/null.c
+++ b/sys/dev/null/null.c
@@ -61,12 +61,14 @@ static int zero_ev(struct knote *kn, long hint);
static const struct filterops one_fop = {
.f_isfd = 1,
- .f_event = one_ev
+ .f_event = one_ev,
+ .f_copy = knote_triv_copy,
};
static const struct filterops zero_fop = {
.f_isfd = 1,
- .f_event = zero_ev
+ .f_event = zero_ev,
+ .f_copy = knote_triv_copy,
};
static struct cdevsw full_cdevsw = {