From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 30 19:13:32 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 231143D9; Wed, 30 Apr 2014 19:13:32 +0000 (UTC) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C76041A36; Wed, 30 Apr 2014 19:13:31 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id x13so2424980qcv.29 for ; Wed, 30 Apr 2014 12:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=CS74NVYD3jNmnrRpYdQqnImbBVuzkNCzufQm1jjjPP4=; b=FlJ52sqHN3RytlaHep+Hm9rDuXYT2l63tzvbhwX2MSWQiua6Y7vNhtUySqimVP+Tia lxYaVx1bqkPxJAMbhn8EJx2mk5aGdmxFODP0SUOhmk89DBFFhCQxRbi+wBS7hQCmBCuH Q93bV2+seL4ewS93k42T/Ycpi5k0hhpXmSuTZLhaDI03kf1kfJMeI7YGf9TLW5ZBtsrF V3O1BzCUPn8yKtIrpE242byZk9W2y1u0wTASZocG2goFUdaUOFuivLZPpaPmcr7nWQlg TTYcUp0Pr1hQr7zWlyDGL788O5/FAxGEqFEm0Gr3NCod12YywAbWNX9oKVicZ4HR5V6K mKUw== MIME-Version: 1.0 X-Received: by 10.140.98.116 with SMTP id n107mr7444853qge.93.1398885210780; Wed, 30 Apr 2014 12:13:30 -0700 (PDT) Sender: carpeddiem@gmail.com Received: by 10.140.49.239 with HTTP; Wed, 30 Apr 2014 12:13:30 -0700 (PDT) In-Reply-To: <7A221B2C-6439-46E7-8343-51945B5626A7@FreeBSD.org> References: <6a7255a1fdfc41c79e38532bf267a06f@BL2PR03MB210.namprd03.prod.outlook.com> <7A221B2C-6439-46E7-8343-51945B5626A7@FreeBSD.org> Date: Wed, 30 Apr 2014 15:13:30 -0400 X-Google-Sender-Auth: uL-DRMxEtOmIYjc-nXlyVg6_e-U Message-ID: Subject: Re: Duplicating code from NetBSD From: Ed Maste To: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 19:13:32 -0000 On 17 April 2014 09:00, Edward Tomasz Napiera=C5=82a wr= ote: > Wiadomo=C5=9B=C4=87 napisana przez Abhishek Gupta (LIS) w dniu 17 kwi 201= 4, o godz. 03:01: >> Hi folks, >> >> Newbie question so please excuse the naivety. If someone were to copy a = few functions from NetBSD in to their FreeBSD kernel mode drivers then is i= t still possible to submit the code in to the FreeBSD tree under the FreeBS= D license? If not then would the community accept the copied code cleanly s= eparated out in a file and licensed under the NetBSD license? Please let me= know if there is an acceptable procedure to do this or if this is a comple= te NONO. > > It all depends on the license. If the code is licensed under standard BS= D > license, then it's perfectly ok to commit it to FreeBSD. In fact, a lot = of things > got ported from NetBSD, just grep for it in sources. It sounds to me as if Abhishek is proposing copying functions from NetBSD into a FreeBSD source file for their driver. While there's probably an acceptable way to do this (while maintaining the copyright / license text), it seems like it would be more awkward and confusing, and also make future updates more difficult. I'd recommend leaving the code in separate files. Abhishek, do you have a pointer to the functions you're interested in using= ?