From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 19 13:15:11 2013 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F178E6F2 for ; Tue, 19 Mar 2013 13:15:11 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 30DA220A for ; Tue, 19 Mar 2013 13:15:10 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA12653 for ; Tue, 19 Mar 2013 15:15:09 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1UHwNh-000If0-1N for freebsd-hackers@FreeBSD.org; Tue, 19 Mar 2013 15:15:09 +0200 Message-ID: <514864DA.2060503@FreeBSD.org> Date: Tue, 19 Mar 2013 15:15:06 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Subject: SI_SUB_DTRACE_PROVIDER X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 13:15:12 -0000 Does anyone know what is the point of SYSINIT(SI_SUB_DTRACE_PROVIDER)? Specifically, as opposed to normal MOD_LOAD/MOD_UNLOAD handling. I am thoroughly confused about DTrace modules using DEV_MODULE() with the dummy handlers and then using SYSINIT/SYSUNINIT when they could use DECLARE_MODULE(SI_SUB_DTRACE_PROVIDER). Especially this is concerning because return values from SYSUNINIT functions are ignored. Unlike MOD_UNLOAD. -- Andriy Gapon