From owner-freebsd-questions@FreeBSD.ORG Sun Jun 14 19:48:20 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C436FE38 for ; Sun, 14 Jun 2015 19:48:20 +0000 (UTC) (envelope-from jason.unovitch@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C3DA84B for ; Sun, 14 Jun 2015 19:48:20 +0000 (UTC) (envelope-from jason.unovitch@gmail.com) Received: by igbiq7 with SMTP id iq7so5080290igb.1 for ; Sun, 14 Jun 2015 12:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UczRwJNCoDgWpw+GJ+yv9hbN5WHKObqDvYNEEP39T4k=; b=kpoI6BTKThQ6vHzssUD3wZTvYr39gI+5jBOiluWA4meeTu5ZzmKfTNhVbWfbX7auDN zUZBMMvT4tOIjYG+9QM85bDeuwX+Ghs6Twgxx1uieDd/Nk9JRthQMNg/lFIxwjrmpTN+ NYby5eoUU15RN3iLZ5FaGdD/gp4AwapAthk8aJQQwTVAAya+yMNt3Gj5RTgJ7Fi2nJGX bv0/a8iMp4g7v26Phg4e/NB0KGvZ8gPyS/rvAzbbosjNzkcC2KoSEFTenKG3S71TwWDf ONa7B0+fT9uRgPgATHmyjoVAk9Fa3iNuC46smCpLCDDbXKtpAhqCXynqcoUO0yoA9/9q y1Bg== MIME-Version: 1.0 X-Received: by 10.107.25.199 with SMTP id 190mr12492088ioz.11.1434311300064; Sun, 14 Jun 2015 12:48:20 -0700 (PDT) Received: by 10.36.27.13 with HTTP; Sun, 14 Jun 2015 12:48:19 -0700 (PDT) Received: by 10.36.27.13 with HTTP; Sun, 14 Jun 2015 12:48:19 -0700 (PDT) In-Reply-To: <20150614182418.56857acc.freebsd@edvax.de> References: <20150614182418.56857acc.freebsd@edvax.de> Date: Sun, 14 Jun 2015 15:48:19 -0400 Message-ID: Subject: Re: reload kernel without reboot? From: Jason Unovitch To: Polytropon Cc: tak.official@gmail.com, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2015 19:48:21 -0000 On Jun 14, 2015 12:30 PM, "Polytropon" wrote: > > On Sun, 14 Jun 2015 13:24:59 +0430, takCoder wrote: > > my question is: Is there a way to reload freebsd kernel in which i don't > > need to restart to apply the changes? > > Probably not, because the kernel is the first thing the > OS boot mechanism will load, and this is required at the > earliest stage of OS booting for the kernel to work as > intended. What you would need is to change the kernel > binary content (after source change and compile run) > both on disk and in memory, with all its location references > and dependency resolutions so the result parts will work > consistently again. I'd say that's a very hard task, nearly > impossible. > > However, if you are able to move the things you want to > "dynamically load and unload" into kernel modules - there > might be a solution for you. Kernel modules can be dealt > with easily using kldload and kldunload. However, the > kernel itself cannot be unloaded and reloaded with those > tools. > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ https://wiki.freebsd.org/Kload That is worth a read. I'm sure if it were easy it would have been implemented by now. Jason