On Mon, Sep 17, 2012 at 03:02:56PM -0400, Christos Zoulas wrote: > On Sep 17, 8:42pm, [email protected] (Manuel Bouyer) wrote: > -- Subject: Re: pass-through linux ioctl for mfi(4) > > | On Mon, Sep 17, 2012 at 02:31:35PM -0400, Christos Zoulas wrote: > | > On Sep 17, 6:08pm, [email protected] (Manuel Bouyer) wrote: > | > -- Subject: Re: pass-through linux ioctl for mfi(4) > | > > | > | Sorry but I can't see how a kernel with COMPAT_LINUX but without > | > | mfi would compile. > | > > | > You you get the major by name using "mfi"... > | > | I was talking about Robert's solution, which needs the mfiioctl address. > | > | I looked a bit at this and it's really not straitforward. We need to > | get the vp to have the informations we need, so we're basically re-writing > | some of sys/kern's code ... > | Do you have a better way to get the file's type and major ? > > file's f_type should be DTYPE_VNODE, then f_data points to the vnode... > This whole thing is too complicated. Perhaps add dlsym() in the kernel > to do dlsym("mfiioctl")? :-)
I agree it's too complicated. Couldn't we just keep the dispatch based on com then ? -- Manuel Bouyer <[email protected]> NetBSD: 26 ans d'experience feront toujours la difference --
