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:
@@ -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");
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user