Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2008 12:31:00 +0200
From:      "Martin Laabs" <martin.laabs@mailbox.tu-dresden.de>
To:        freebsd-emulation@freebsd.org
Subject:   How to implement a new linuxulator ioctl
Message-ID:  <op.ujkstybn724k7f@localhost>

next in thread | raw e-mail | index | archive | help
Hi,

as I wrote recently on -hackers I hacked libusb in a 
way that it is a linux binary but uses the bsd interface
for low-level usb communication. I need this for a linux binary
program which uses libusb. I'd like to run this with the 
linuxulator.
However - I realized, that the ioctls of the linuxulator are
wrapped. So I have to add some ioctls to the linuxulator module
in that way that they are just executed as normal (nativ)
system ioctls.
Libusb uses only a small number of different ioctl so that
it should not be very hard. However I have not found any
documentation how the ioctl mapping works. (data structures,
initilisation calls and so on.)
So can you give me a short guideline what I have to do/add to
the linuxulator?
And maybe also how I can call a nativ system ioctl out of
the kernel context.

Thank you,
 Martin L.



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