From owner-freebsd-questions@FreeBSD.ORG Wed Feb 1 15:22:40 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B569E16A420 for ; Wed, 1 Feb 2006 15:22:40 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 177EA43D6E for ; Wed, 1 Feb 2006 15:22:37 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id k11FMSwu008088; Wed, 1 Feb 2006 09:22:28 -0600 (CST) (envelope-from dan) Date: Wed, 1 Feb 2006 09:22:28 -0600 From: Dan Nelson To: Joel Hatton Message-ID: <20060201152228.GD38470@dan.emsphone.com> References: <200602010843.k118heKQ099193@app.auscert.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602010843.k118heKQ099193@app.auscert.org.au> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: How does FreeBSD handle devices under /compat/linux? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 15:22:40 -0000 In the last episode (Feb 01), Joel Hatton said: > I've gone ahead and installed linux_base-8 on 6.0 RELEASE. What I'd > like to know is how are devices handled? For example, and this is > crucial to my application, is it possible for a linux application to > talk to /dev/st0, and if so how is this accomplished with no > /compat/linux/dev directory and with devfs in operation? I'd make a symlink from /compat/linux/dev/st0 to /dev/sa0 . That'll work if you just want to read/write a tape. You can't do any fancy stuff like setting densities or block positioning, since the ioctls are different between FreeBSD and Linux and I don't see any translation code for MTIOCTOP in /sys/compat/linux/linux_ioctl.c . -- Dan Nelson dnelson@allantgroup.com