git: b3a714652ff0 - main - kqueue(9): sweep references to knlist_remove_inevent()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Aug 2023 19:12:40 UTC
The branch main has been updated by rew:
URL: https://cgit.FreeBSD.org/src/commit/?id=b3a714652ff00f83b2072caaa1fd8b9699c93789
commit b3a714652ff00f83b2072caaa1fd8b9699c93789
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2023-08-26 19:11:50 +0000
Commit: Robert Wing <rew@FreeBSD.org>
CommitDate: 2023-08-26 19:11:50 +0000
kqueue(9): sweep references to knlist_remove_inevent()
knlist_remove_inevent() gone in 9e590ff04b687e910579a5851d95cedf9eb10bfd
---
ObsoleteFiles.inc | 3 +++
share/man/man9/Makefile | 1 -
share/man/man9/kqueue.9 | 17 ++---------------
3 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
index 47709c00667d..c2780a84eb6d 100644
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -51,6 +51,9 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20230826:
+OLD_FILES+=usr/share/man/man9/knlist_remove_inevent.9.gz
+
# 20230825: caroot bundle updated
OLD_FILES+=usr/share/certs/trusted/E-Tugra_Certification_Authority.pem
OLD_FILES+=usr/share/certs/trusted/E-Tugra_Global_Root_CA_ECC_v3.pem
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index eb670c924077..07a107b4bd7d 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1394,7 +1394,6 @@ MLINKS+=kqueue.9 knlist_add.9 \
kqueue.9 knlist_init.9 \
kqueue.9 knlist_init_mtx.9 \
kqueue.9 knlist_remove.9 \
- kqueue.9 knlist_remove_inevent.9 \
kqueue.9 knote_fdclose.9 \
kqueue.9 KNOTE_LOCKED.9 \
kqueue.9 KNOTE_UNLOCKED.9 \
diff --git a/share/man/man9/kqueue.9 b/share/man/man9/kqueue.9
index 28a948481e3e..ddd834bb1807 100644
--- a/share/man/man9/kqueue.9
+++ b/share/man/man9/kqueue.9
@@ -30,7 +30,7 @@
.Nm kqfd_register ,
.Nm knote_fdclose ,
.Nm knlist_init , knlist_init_mtx ,
-.Nm knlist_add , knlist_remove , knlist_remove_inevent , knlist_empty ,
+.Nm knlist_add , knlist_remove , knlist_empty ,
.Nm knlist_clear , knlist_delete , knlist_destroy ,
.Nm KNOTE_LOCKED , KNOTE_UNLOCKED
.Nd "event delivery subsystem"
@@ -58,8 +58,6 @@
.Fn knlist_add "struct knlist *knl" "struct knote *kn" "int islocked"
.Ft void
.Fn knlist_remove "struct knlist *knl" "struct knote *kn" "int islocked"
-.Ft void
-.Fn knlist_remove_inevent "struct knlist *knl" "struct knote *kn"
.Ft int
.Fn knlist_empty "struct knlist *knl"
.Ft void
@@ -157,8 +155,7 @@ function will be called to detach the
if the
.Vt knote
has not already been detached by a call to
-.Fn knlist_remove ,
-.Fn knlist_remove_inevent
+.Fn knlist_remove
or
.Fn knlist_delete .
The list
@@ -186,16 +183,6 @@ The
.Va kn_data
value should be updated as necessary to reflect the current value, such as
number of bytes available for reading, or buffer space available for writing.
-If the note needs to be removed,
-.Fn knlist_remove_inevent
-must be called.
-The function
-.Fn knlist_remove_inevent
-will remove the note from the list, the
-.Va f_detach
-function will not be called and the
-.Vt knote
-will not be returned as an event.
.Pp
Locks
.Em must not