From owner-freebsd-current@freebsd.org Sun Jun 4 13:26:50 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 2F2C5B7BD33; Sun, 4 Jun 2017 13:26:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EBAB476764; Sun, 4 Jun 2017 13:26:49 +0000 (UTC) (envelope-from julian@elischer.org) Received: from Julian-MBP3.local (125-209-137-153.dyn.iinet.net.au [125.209.137.153]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id v54DQfuf086920 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 4 Jun 2017 06:26:47 -0700 (PDT) (envelope-from julian@elischer.org) Subject: Re: [Help] Linux low level data structures < - > FreeBSD low level data structures To: blubee blubeeme , FreeBSD current , freebsd-ports@freebsd.org References: From: Julian Elischer Message-ID: <16f2c369-2758-9bd8-9dcb-5e1b400d2336@elischer.org> Date: Sun, 4 Jun 2017 21:26:36 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailman-Approved-At: Sun, 04 Jun 2017 20:18:13 +0000 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: Sun, 04 Jun 2017 13:26:50 -0000 On 4/6/17 7:07 pm, blubee blubeeme wrote: > Hello > > Is there anyone on either of these lists that have experience with both > linux low level data structures and their equivalents on FreeBSD? > > For instance the linux header file: > > > which includes the header file: > > > Then looking at that file: > > > > > You are going to have to be a lot more specific about this. I have worked in several places where they use s shim layer to make Linux basic services work on freeBSD. usually a mix of functions, macros and inlines. However you need to narrow down your questions a bit as the POSSIBLE scope of your question is too large for anyone to attempt an answer. Remember that both systems are POSIX inspired so outside the kernel there are many more simlarities than one might be led to expect, but you need to be way more specific. It's even possible to write kernel code to run on both, but it is usually domain specific. > > I'll be doing a lot of work trying to find these FreeBSD equivalent of > these types of files to port some code. > > Does anyone here have experience with something like this? Is there any > other projects that maps these low level data structures from > Linux <-> FreeBSD, etc? > > Best, > Owen > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"