[PATCH] VFS KPI/API versioning

John Baldwin jhb at freebsd.org
Mon Aug 31 11:31:53 UTC 2009


On Friday 28 August 2009 10:04:55 pm Attilio Rao wrote:
> Often I found as it would have been useful to verify, mostly at
> run-time, of a feature of the VFS was supported and I quickly thought
> that having a run-time check for VFS versioning would not be a bad
> idea.
> In order to do that, I made the following patch:
> http://www.freebsd.org/~attilio/vfs_modload.diff

You don't have to have an actual DECLARE_MODULE() to use MODULE_VERSION().  
Given that, you can simplify this patch down to a single line that just adds 
the MODULE_VERSION().

-- 
John Baldwin


More information about the freebsd-arch mailing list