Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2006 09:22:28 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Joel Hatton <freebsd-questions@auscert.org.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How does FreeBSD handle devices under /compat/linux?
Message-ID:  <20060201152228.GD38470@dan.emsphone.com>
In-Reply-To: <200602010843.k118heKQ099193@app.auscert.org.au>
References:  <200602010843.k118heKQ099193@app.auscert.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060201152228.GD38470>