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 Mon, Sep 17, 2012 at 10:19:59PM +0700, Robert Elz wrote:
>     Date:        Mon, 17 Sep 2012 09:21:23 -0400
>     From:        christos%zoulas.com@localhost (Christos Zoulas)
>     Message-ID:  <20120917132123.BCBB797124%rebar.astron.com@localhost>
> 
>   | devsw_name2{blk,chr}("mfi", NULL, 0),
> 
> That's like driving round the wrong block - backwards...
> 
> There's no need to know which particular major(dev) is mfi,
> what is needed is to know whether the dev you have is the one
> that gets to mfi, which is going at the problem the other way
> around.
> 
> With suitable error checking added, just use
> 
>       cdevsw_lookup(dev)->d_ioctl == mfiioctl
> 
> (or whatever its ioctl function is named).

But this assumes that the mfi driver is compiled in. it doesn't
look right, especially in the context of modules.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index