From nobody Tue Oct 18 14:10:26 2022 X-Original-To: dev-commits-src-all@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 4MsG3Q4z87z4ftgb; Tue, 18 Oct 2022 14:10:26 +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 4MsG3Q4PWGz3GMR; Tue, 18 Oct 2022 14:10:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666102226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ii2XRcLiKcY9vVwHk1WC80ZoZrvQFLTq7WC4A/UGNNw=; b=nOvc/EAHqlSClO25kgkvuAOX+KyEn9l+q7Uvt4vIUCdljPTyri3AeQnjXvNVlgi7PlMeTT rfB/lSy4s0Bn/1VguDTeM9lopa59ggsB6N5uWGlD7W5l+qviJE03EM0w2Ik+rijbljFUHl yI3rcI4HaBk8mfBAd8AO+vesyPnOiPJFNdfL7fr3CYSMfwT2y8oTBVe/FVCvXPy5CDDlSA ZnkGMlNxsNC8G0VIiPS1BUsRa4FA9iytPw20e9a3xdR1zMAwkUtkmn7yLCxAeZs/MnXRHk YsjRCpa4liExEIRaTFfPWL7bghrASXxG2F2O+B/eYGSURcivFAExocnQOzorQQ== 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 4MsG3Q3Rwtz1BrK; Tue, 18 Oct 2022 14:10:26 +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 29IEAQ5q001724; Tue, 18 Oct 2022 14:10:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29IEAQR9001723; Tue, 18 Oct 2022 14:10:26 GMT (envelope-from git) Date: Tue, 18 Oct 2022 14:10:26 GMT Message-Id: <202210181410.29IEAQR9001723@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: abd68709a99d - stable/13 - EVENTHANDLER(9): drop the list of event handlers List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: abd68709a99d95fb500754a2b7f2e5bd16d334af Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666102226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ii2XRcLiKcY9vVwHk1WC80ZoZrvQFLTq7WC4A/UGNNw=; b=DvTmOteG5TMZz6FPRAKgsntLd8jCPN0w3AdWXn2jDFmknpsDLzlPZXOs66VJw1qlGpCDk7 DHn2yOunefSEbKcw7zSVZtheGHmmwsC9JxPDGa4iqXLlcCRB8mWOSPJe7cdhmQVJmfiRnz i5pUKhCtxndBff1YJexZRY0GE1IRbwsAxbiX5JAKvN08EJuI5G+yWqxzDO6DHfA5XOZhST Swalo1d8ExSX8uyoR4o+e8uN4YW9Dy52Gux0aiS2766DWuA77ZUYnh4w1qaoJQaoiu8bKD EO2zfZAXKi3nBOrbGTmYFzMPk8tRvAwRR/rRxn6CxJ6c2E6nJd8WIVEtNUWk5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666102226; a=rsa-sha256; cv=none; b=qftaMvyKQxXMyBCfhNIaD00FuJr5d6fclY/vYb5F69ce6G0qP7QKmhQt549nqAZM/Q7tSf Ji75OIw4NP3T5ieag3bZe5kTFPifjM70KWLAE22eVNRl3Jd3rRpc8JXsK5yEhxNI6pnSqW 4B7/XWQWmw0T+ilYATCPq17AwboCDOs0wNSVwtAcUPuMhWOzpdHAP/rPWxZ7r276Zp0gi2 Mvf4lnf2jU22IghydfP2dFeP2I+O9yLNkY+bn5Pyes+fTDwRXRHTEcI9Sg0VEcWiEQ/pyk w1m+JIlcyCFJC+y2sWRriiFHrZ9QUxVCmm4Zhp/YxML8vfFTfggC/lAzhhbcHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=abd68709a99d95fb500754a2b7f2e5bd16d334af commit abd68709a99d95fb500754a2b7f2e5bd16d334af Author: Mitchell Horne AuthorDate: 2022-10-07 22:25:12 +0000 Commit: Mitchell Horne CommitDate: 2022-10-18 14:08:21 +0000 EVENTHANDLER(9): drop the list of event handlers Maintaining a comprehensive list of event handlers in this man page is a futile endeavor. It is entirely detached from the source code, and therefore requires that anyone adding/removing an event handler have prior knowledge of the list. Many do not, so it will naturally become stale (and is). This is demonstrated by the fact that there are currently 88 instances of EVENTHANDLER_DECLARE() in the source tree, but the list contains 66 items. Many of the descriptions do not offer much detail that could not be gleaned from the handler name alone. It is a more effective strategy to document the purpose/details of the event handler in a comment alongside its declaration. Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36895 (cherry picked from commit 34aac98e3511d90df9209204df6772935a2b7617) --- share/man/man9/EVENTHANDLER.9 | 146 +----------------------------------------- 1 file changed, 1 insertion(+), 145 deletions(-) diff --git a/share/man/man9/EVENTHANDLER.9 b/share/man/man9/EVENTHANDLER.9 index b369e2f03258..82480ce1dc71 100644 --- a/share/man/man9/EVENTHANDLER.9 +++ b/share/man/man9/EVENTHANDLER.9 @@ -23,7 +23,7 @@ .\" SUCH DAMAGE. .\" $FreeBSD$ .\" -.Dd September 17, 2020 +.Dd October 7, 2022 .Dt EVENTHANDLER 9 .Os .Sh NAME @@ -258,150 +258,6 @@ The function removes all deregistered callbacks from the event list .Fa list . .El -.Ss Kernel Event Handlers -The following event handlers are present in the kernel: -.Bl -tag -width indent -.It Vt acpi_sleep_event -Callbacks invoked when the system is being sent to sleep. -.It Vt acpi_wakeup_event -Callbacks invoked when the system is being woken up. -.It Vt app_coredump_start -Callbacks invoked at start of application core dump. -.It Vt app_coredump_progress -Callbacks invoked during progress of application core dump. -.It Vt app_coredump_finish -Callbacks invoked at finish of application core dump. -.It Vt app_coredump_error -Callbacks invoked on error of application core dump. -.It Vt bpf_track -Callbacks invoked when a BPF listener attaches to/detaches from network interface. -.It Vt cpufreq_levels_changed -Callback invoked when cpu frequency levels have changed. -.It Vt cpufreq_post_change -Callback invoked after cpu frequency has changed. -.It Vt cpufreq_pre_change -Callback invoked before cpu frequency has changed. -.It Vt dcons_poll -Callback invoked to poll for dcons changes. -.It Vt device_attach -Callback invoked after a device has attached. -.It Vt device_detach -Callbacks invoked before and after a device has detached. -.It Vt dev_clone -Callbacks invoked when a new entry is created under -.Pa /dev . -.It Vt group_attach_event -Callback invoked when an interfance has been added to an interface group. -.It Vt group_change_event -Callback invoked when an change has been made to an interface group. -.It Vt group_detach_event -Callback invoked when an interfance has been removed from an interface group. -.It Vt ifaddr_event -Callbacks invoked when an address is set up on a network interface. -.It Vt ifaddr_event_ext -Callback invoked when an address has been added or removed from an interface. -.It Vt if_clone_event -Callbacks invoked when an interface is cloned. -.It Vt iflladdr_event -Callback invoked when an if link layer address event has happened. -.It Vt ifnet_arrival_event -Callbacks invoked when a new network interface appears. -.It Vt ifnet_departure_event -Callbacks invoked when a network interface is taken down. -.It Vt ifnet_link_event -Callback invoked when an interfance link event has happened. -.It Vt kld_load -Callbacks invoked after a linker file has been loaded. -.It Vt kld_unload -Callbacks invoked after a linker file has been successfully unloaded. -.It Vt kld_unload_try -Callbacks invoked before a linker file is about to be unloaded. -These callbacks may be used to return an error and prevent the unload from -proceeding. -.It Vt livedumper_start -Callback invoked before beginning a kernel dump of the live system. -.It Vt livedumper_dump -Callback invoked for each dumped block of data during a live kernel dump. -.It Vt livedumper_finish -Callback invoked once a live kernel dump has completed. -.It Vt lle_event -Callback invoked when a link layer event has happened. -.It Vt nmbclusters_change -Callback invoked when the number of mbuf clusters has changed. -.It Vt nmbufs_change -Callback invoked when the number of mbufs has changed. -.It Vt maxsockets_change -Callback invoked when the maximum number of sockets has changed. -.It Vt mountroot -Callback invoked when root has been mounted. -.It Vt power_profile_change -Callbacks invoked when the power profile of the system changes. -.It Vt power_resume -Callback invoked when the system has resumed. -.It Vt power_suspend -Callback invoked just before the system is suspended. -.It Vt process_ctor -Callback invoked when a process is created. -.It Vt process_dtor -Callback invoked when a process is destroyed. -.It Vt process_exec -Callbacks invoked when a process performs an -.Fn exec -operation. -.It Vt process_exit -Callbacks invoked when a process exits. -.It Vt process_fini -Callback invoked when a process memory is destroyed. -This is never called. -.It Vt process_fork -Callbacks invoked when a process forks a child. -.It Vt process_init -Callback invoked when a process is initialized. -.It Vt random_adaptor_attach -Callback invoked when a new random module has been loaded. -.It Vt register_framebuffer -Callback invoked when a new frame buffer is registered. -.It Vt route_redirect_event -Callback invoked when a route gets redirected to a new location. -.It Vt shutdown_pre_sync -Callbacks invoked at shutdown time, before file systems are synchronized. -.It Vt shutdown_post_sync -Callbacks invoked at shutdown time, after all file systems are synchronized. -.It Vt shutdown_final -Callbacks invoked just before halting the system. -.It Vt tcp_offload_listen_start -Callback invoked for TCP Offload to start listening for new connections. -.It Vt tcp_offload_listen_stop -Callback invoked ror TCP Offload to stop listening for new connections. -.It Vt thread_ctor -Callback invoked when a thread object is created. -.It Vt thread_dtor -Callback invoked when a thread object is destroyed. -.It Vt thread_init -Callback invoked when a thread object is initialized. -.It Vt thread_fini -Callback invoked when a thread object is deinitalized. -.It Vt usb_dev_configured -Callback invoked when a USB device is configured -.It Vt unregister_framebuffer -Callback invoked when a frame buffer is deregistered. -.It Vt vfs_mounted -Callback invoked when a file system is mounted. -.It Vt vfs_unmounted -Callback invoked when a file system is unmounted. -.It Vt vlan_config -Callback invoked when the vlan configuration has changed. -.It Vt vlan_unconfig -Callback invoked when a vlan is destroyed. -.It Vt vm_lowmem -Callbacks invoked when virtual memory is low. -.It Vt vxlan_start -Callback invoked when a vxlan interface starts. -.It Vt vxlan_stop -Callback invoked when a vxlan interface stops. -.It Vt watchdog_list -Callbacks invoked when the system watchdog timer is reinitialized. -.El .Sh RETURN VALUES The macro .Fn EVENTHANDLER_REGISTER