Re: How to best overload the fileops ?

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 29 Aug 2013 10:36:39 -0400
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
Received on Thu Aug 29 2013 - 12:58:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:40 UTC