How to best overload the fileops ?

John Baldwin jhb at freebsd.org
Thu Aug 29 14:58:10 UTC 2013


On Friday, August 23, 2013 6:18:40 pm Yuri wrote:
> On 08/23/2013 13:36, Ian Lepore wrote:
> > I think the point is that devfs_ops_f provides several devfs-specific
> > methods and then "inherits" the rest by referencing the standard
> > vn_whatever functions.  Since John recommended that you expose the
> > fo_whatever methods, I think he's suggesting you build your ops table by
> > providing your own close method and fill in the rest of the table with
> > the now-exposed kqueue ops methods.
> 
> So you are suggesting to just make kqueue fileops public? This was my 
> first suggestion, and this was rejected by Roman Divacky (who was 
> supposed to check it in) as very ugly. I did this through the method 
> kqueue_ops(), not directly though.
> 
> So can we agree on way to be used here?

Making the individual kqueue methods public is more consistent with other
uses in the tree (notably devfs), so I think that is the best way.

-- 
John Baldwin


More information about the freebsd-current mailing list