From owner-freebsd-current@freebsd.org Fri Jan 6 10:04:13 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0636CA2536 for ; Fri, 6 Jan 2017 10:04:13 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (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 3A3C31C27 for ; Fri, 6 Jan 2017 10:04:13 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-lf0-x233.google.com with SMTP id x140so43695089lfa.3 for ; Fri, 06 Jan 2017 02:04:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=w38exS9EAJBPbA1gERpN0vzyM7eB1iynqKuoBstv2RM=; b=Xs6BbViKp8HpKls4TzCuo0gGbTgZ9nKfe3OVAxzbD4osapjJNt9dStaFPv4C+md6ES mMQJO6xatLMuQ09oEEEHcOoFgc3yc2aZ3OGDoCD4jU4FGNpYcpSJ2BzThlWHSEqdIBey SaQbdtkJ9a1NG2TNep5+/s03twIcczWcpI8DXU18Tk3k8OhUrAqQ3Nqfpta/8Y6m6NUP UXUvg18Lg1f2TXWPUUC8hSQswG5WP1UuRi7H2qihcbvzD7GdGRL5LmPFE50VfpH7UtBd mjr59ChGirVARMaroPzPLf9xAK7m1n1yibH0si1lkhMAQcJvfqeNmG9sevaGrmU3YlZj bw2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=w38exS9EAJBPbA1gERpN0vzyM7eB1iynqKuoBstv2RM=; b=j6dlLS7gVlVPRoSs45u09aqIa8JJ8sxKscbmgBxKQzVqJl/iBpGeeeoNiElRQvmkL4 405iHTRLXEx/3CDJl8BC/79XH5Rf4W5zfqzkgtYfB/Tc/EZ9pmCeFl9os4vIYLh7+sT3 0gcuYcl2HjH24bQIs9ZCIpjGvt2ZlSg8e0q9ASrozYyrxs/90tpAEJv/nR/yLWCAfuwm 0TnvczbPnZF9dwv+BmvNb+4GbHZgERHQEdbAjjMNmojOSnv7QLEnI3SPcPVnmmMNAt9l aVsPj0t1hxHsq0mx2l6OUrT7RDzYMlTR+TuhbwV3OzY1KcMgDMzGm6sPSdXY+Hake6/8 s0yg== X-Gm-Message-State: AIkVDXIBhMbzMpuXnqKj244qrgYs9Y2tGxLIyrUH38960iCyGrIeMEdkR5jDni38U9StWE+fuSR4CqNiTOGL5g== X-Received: by 10.25.216.214 with SMTP id r83mr21862103lfi.3.1483697051216; Fri, 06 Jan 2017 02:04:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.79.88 with HTTP; Fri, 6 Jan 2017 02:04:10 -0800 (PST) From: blubee blubeeme Date: Fri, 6 Jan 2017 18:04:10 +0800 Message-ID: Subject: linuxkpi To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 10:04:13 -0000 I was looking at the linuxkpi source code in /sys/compat/linuxkpi and I had a question. A lot of those files just look like linux files brought over to FreeBSD, is there any reason why those files couldn't be implemented in BSD w/o the dependencies on the other Linux headers? For example this header file: sys/compat/linuxkpi/common/include/linux/workqueue.h the workqueue.h, there doesn't seem to be anything special in there that couldn't be implemented in BSD without relying on the Linux import statements. Maybe I'm missing something but why can't these files and functions be implemented directly with their BSD equivalents? Best, Owen