From owner-freebsd-questions@FreeBSD.ORG Thu Mar 14 21:42:47 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 11E28564 for ; Thu, 14 Mar 2013 21:42:47 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm7.bullet.mail.ird.yahoo.com (nm7.bullet.mail.ird.yahoo.com [77.238.189.21]) by mx1.freebsd.org (Postfix) with SMTP id 08B1FD86 for ; Thu, 14 Mar 2013 21:42:44 +0000 (UTC) Received: from [77.238.189.56] by nm7.bullet.mail.ird.yahoo.com with NNFMP; 14 Mar 2013 21:42:43 -0000 Received: from [217.146.189.102] by tm9.bullet.mail.ird.yahoo.com with NNFMP; 14 Mar 2013 21:42:43 -0000 Received: from [127.0.0.1] by smtp118.mail.ird.yahoo.com with NNFMP; 14 Mar 2013 21:42:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1363297363; bh=Yhp/Fgs5lcrQXKZg0MUe21tNjlCSvPma8MydmWmlB7I=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Subject:From:To:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=CBS0SfC2Cn2U0Vv8iPZQot+/50/h+7mTuJLBoeLT4U2Zt9PzZTVtAlu94lvMaMBBybePZi7Su2uq1SHv9IP/UsvG5fafXHRvv7f3U+R3YOk1asWf7jeC0PpdZeK75tjlPYvtPpAb5TjsRd8vp8g1Jkzt4j2rtB/67JLGEStHjls= X-Yahoo-Newman-Id: 475230.11619.bm@smtp118.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 0hwko1sVM1lrmCQuRfMfZpXQPpAbA_pOMX.HFzaN5GIWag4 86nkbgXpZh4vhZxj2XwU4nXM1i7lBUlO99lAUAU5x8.9mqwzengwRe8disMD YH0qCFocz0hFEX5IoUlgcS40f3U3GxA4GIqpUjuc5Z0SgrObWYgBNCjI3yBI CLBYXm6EFSmbAhQr34MpumP3S04sKxLkR1FtZSstVc2QgKNyHHfqA4zcVSod 9Phk7j0TrxnqNp8zSDIJeOSyXTgLy.smpF9inq2UIBCHsOpXgCF_YpxlsnqY 11YK_2D2S2CARlqpvg9ghNpgX0RVnzRoCl.95_ekmM6VT.qI9WtHOzehy.rG NVt8CTlaY6dBkRH3Wdu1j8c_t9oY6Nl7GUSDfS6e1_JzZQaGl_sMaxduR2IV 8HJze7JXck1gT8LAvlVZvvqIUAwS6A6bkU08.tppK_yAT X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- X-Rocket-Received: from [85.182.24.140] (ralf.mardorf@85.182.24.140 with login) by smtp118.mail.ird.yahoo.com with SMTP; 14 Mar 2013 14:42:43 -0700 PDT Message-ID: <1363297361.3685.32.camel@archlinux> Subject: Re: linux program with kernel module From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Thu, 14 Mar 2013 22:42:41 +0100 In-Reply-To: <5100adb0.7659bc7d.5142366e.438ea@lajt.hu> References: <5100adb0.7659bc7d.5142366e.438ea@lajt.hu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 21:42:47 -0000 On Thu, 2013-03-14 at 21:43 +0100, Istvan Gabor wrote: > Can it run linux programs that have their own (linux) kernel module? > If yes, how can I install such program, and how can I load the kernel module? > > (If I know correctly nvidia drivers have their own kernel modules, and FreeBSD can > run linux nvidia drivers). Yesno. You need to compile kernel modules to fit to the version of FreeBSD or Linux. I also call user space "FreeBSD" and "Linux", but it's _not_ correct to do it. FreeBSD is a kernel and Linux is a kernel, not the whole system is called Linux or FreeBSD and both kernels are available in different versions. To compile a module you need to install the kernel headers of the same version as the kernel. The module quasi is the driver.