Module Name: src Committed By: riastradh Date: Mon Mar 13 18:12:52 UTC 2023
Modified Files: src/sys/kern: vfs_vnops.c Log Message: vn_open(9): Clarify that this returns a locked vnode. Comment only, no functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.235 -r1.236 src/sys/kern/vfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_vnops.c diff -u src/sys/kern/vfs_vnops.c:1.235 src/sys/kern/vfs_vnops.c:1.236 --- src/sys/kern/vfs_vnops.c:1.235 Sat Aug 6 21:21:10 2022 +++ src/sys/kern/vfs_vnops.c Mon Mar 13 18:12:52 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_vnops.c,v 1.235 2022/08/06 21:21:10 riastradh Exp $ */ +/* $NetBSD: vfs_vnops.c,v 1.236 2023/03/13 18:12:52 riastradh Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.235 2022/08/06 21:21:10 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.236 2023/03/13 18:12:52 riastradh Exp $"); #include "veriexec.h" @@ -150,8 +150,8 @@ const struct fileops vnops = { * * XXX shouldn't cmode be mode_t? * - * On success produces either a vnode in *ret_vp, or if that is NULL, - * a file descriptor number in ret_fd. + * On success produces either a locked vnode in *ret_vp, or NULL in + * *ret_vp and a file descriptor number in *ret_fd. * * The caller may pass NULL for ret_fd (and ret_domove), in which case * EOPNOTSUPP will be produced in the cases that would otherwise return