knotes: kqueue: handle copy for trivial filters

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D52045
This commit is contained in:
Konstantin Belousov
2025-10-17 01:32:45 +03:00
parent 7a72e88781
commit 3613896984
39 changed files with 77 additions and 9 deletions
+2 -1
View File
@@ -206,7 +206,8 @@ static struct cdevsw pass_cdevsw = {
static const struct filterops passread_filtops = {
.f_isfd = 1,
.f_detach = passreadfiltdetach,
.f_event = passreadfilt
.f_event = passreadfilt,
.f_copy = knote_triv_copy,
};
static MALLOC_DEFINE(M_SCSIPASS, "scsi_pass", "scsi passthrough buffers");
+1
View File
@@ -108,6 +108,7 @@ static const struct filterops targread_filtops = {
.f_isfd = 1,
.f_detach = targreadfiltdetach,
.f_event = targreadfilt,
.f_copy = knote_triv_copy,
};
static struct cdevsw targ_cdevsw = {