Date: Mon, 3 Nov 2025 05:31:45 GMT From: "Jason A. Harmening" <jah@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3c1fad12ee6d - stable/15 - VOP_OPENCLOSE.9: note that td may be NULL for VOP_CLOSE Message-ID: <202511030531.5A35Vj6j071161@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by jah: URL: https://cgit.FreeBSD.org/src/commit/?id=3c1fad12ee6dd0d4906ddb6c5695d93821b641f3 commit 3c1fad12ee6dd0d4906ddb6c5695d93821b641f3 Author: Jason A. Harmening <jah@FreeBSD.org> AuthorDate: 2025-10-16 15:25:51 +0000 Commit: Jason A. Harmening <jah@FreeBSD.org> CommitDate: 2025-11-03 04:34:04 +0000 VOP_OPENCLOSE.9: note that td may be NULL for VOP_CLOSE Reviewed by: asomers, olce Differential Revision: https://reviews.freebsd.org/D53137 (cherry picked from commit 8a1d6d6da5cfe0b69c08f20e52817aa9920efe87) --- share/man/man9/VOP_OPENCLOSE.9 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/share/man/man9/VOP_OPENCLOSE.9 b/share/man/man9/VOP_OPENCLOSE.9 index 9a4f7069962d..672f9faa92f5 100644 --- a/share/man/man9/VOP_OPENCLOSE.9 +++ b/share/man/man9/VOP_OPENCLOSE.9 @@ -26,7 +26,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd December 2, 2009 +.Dd October 17, 2025 .Dt VOP_OPEN 9 .Os .Sh NAME @@ -78,6 +78,17 @@ The access mode is a set of flags, including .Dv FWRITE , .Dv O_NONBLOCK , .Dv O_APPEND . +.Pp +The thread +.Fa td +passed to +.Fn VOP_CLOSE +may be +.Ql NULL +if the last reference to the open file is released from a kernel context, e.g., +the destruction of a socket buffer containing the file reference in a +.Dv SCM_RIGHTS +message. .Sh LOCKS .Fn VOP_OPEN expectshome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511030531.5A35Vj6j071161>
