diff options
| author | Jason A. Harmening <jah@FreeBSD.org> | 2025-10-16 15:25:51 +0000 |
|---|---|---|
| committer | Jason A. Harmening <jah@FreeBSD.org> | 2025-10-17 18:24:33 +0000 |
| commit | 8a1d6d6da5cfe0b69c08f20e52817aa9920efe87 (patch) | |
| tree | ab27f1d3a9233d307d3d0b446145a2f9446d69cd | |
| parent | 6812958929245d7226b75aae4541d39d53948f3c (diff) | |
VOP_OPENCLOSE.9: note that td may be NULL for VOP_CLOSE
MFC after: 3 days
Reviewed by: asomers, olce
Differential Revision: https://reviews.freebsd.org/D53137
| -rw-r--r-- | share/man/man9/VOP_OPENCLOSE.9 | 13 |
1 files changed, 12 insertions, 1 deletions
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 expects |
