tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pass-through linux ioctl for mfi(4)



On Sep 17,  8:42pm, bouyer%antioche.eu.org@localhost (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, bouyer%antioche.eu.org@localhost (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")? :-)

christos


Home | Main Index | Thread Index | Old Index