From nobody Sun Nov 14 06:38:21 2021 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CEA041841F5C; Sun, 14 Nov 2021 06:38:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HsN1n5SQpz3Cpl; Sun, 14 Nov 2021 06:38:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 96F2121CB3; Sun, 14 Nov 2021 06:38:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AE6cLZ6090495; Sun, 14 Nov 2021 06:38:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AE6cLpL090494; Sun, 14 Nov 2021 06:38:21 GMT (envelope-from git) Date: Sun, 14 Nov 2021 06:38:21 GMT Message-Id: <202111140638.1AE6cLpL090494@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Guangyuan Yang Subject: git: 109330155000 - stable/13 - module(9): Document that evhand can be NULL List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 109330155000bfec215ee39148254d2a0b628798 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by ygy (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=109330155000bfec215ee39148254d2a0b628798 commit 109330155000bfec215ee39148254d2a0b628798 Author: Felix Johnson AuthorDate: 2021-11-11 06:28:45 +0000 Commit: Guangyuan Yang CommitDate: 2021-11-14 06:37:20 +0000 module(9): Document that evhand can be NULL PR: 192250 Reported by: ngie (cherry picked from commit c5e0492ae81e4b0d7946ccfbedb434a9c4071256) --- share/man/man9/module.9 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/man/man9/module.9 b/share/man/man9/module.9 index 2ba7b3d6c621..5bd9a13c6925 100644 --- a/share/man/man9/module.9 +++ b/share/man/man9/module.9 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 12, 2018 +.Dd November 11, 2021 .Dt MODULE 9 .Os .Sh NAME @@ -42,6 +42,9 @@ The structure contains the name of the device, a unique ID number, a pointer to an event handler function and to an argument, which is given to the event handler, as well as some kernel internal data. +If the event handler function is +.Dv NULL , +the module will use a no-operation function handler instead. .Pp The .Xr DECLARE_MODULE 9