From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 13 01:12:11 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC6CC106566B for ; Tue, 13 Apr 2010 01:12:11 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 3A0EE8FC21 for ; Tue, 13 Apr 2010 01:12:10 +0000 (UTC) Received: from Gypsy.mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o3D0wLSe006393 for ; Mon, 12 Apr 2010 17:58:21 -0700 (PDT) (envelope-from mahan@mahan.org) Message-ID: <4BC3C145.3080206@mahan.org> Date: Mon, 12 Apr 2010 17:56:37 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: KLM unloading on error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 01:12:11 -0000 All, I have a requirement that when a KLM I am building fails during MOD_LOAD, it should be unloaded. Currently, I am seeing even if I return an error (eg. EINVAL or ENOSYS) the KLM is still shown as loaded (using kldstat). Instead, I would like it to fail and be removed. Does FreeBSD support this? Thanks, Patrick