Messages in this thread | | | Date | Wed, 1 Aug 2012 15:45:56 -0700 | From | Tejun Heo <> | Subject | Re: [RFC 1/4] hashtable: introduce a small and naive hashtable |
| |
On Thu, Aug 02, 2012 at 12:41:56AM +0200, Sasha Levin wrote: > How would your DEFINE_HASHTABLE look like if we got for the simple > 'struct hash_table' approach?
I think defining a different enclosing anonymous struct which the requested number of array entries and then aliasing the actual hash_table to that symbol should work. It's rather horrible and I'm not sure it's worth the trouble.
Thanks.
-- tejun
| |