Home
last modified time | relevance | path

Searched hist:f2dba9c6ff0d9a515b4c3f1b037cd65c8b2a868c (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Drhashtable.hdiff f2dba9c6ff0d9a515b4c3f1b037cd65c8b2a868c Tue Feb 03 21:33:23 CET 2015 Herbert Xu <herbert@gondor.apana.org.au> rhashtable: Introduce rhashtable_walk_*

Some existing rhashtable users get too intimate with it by walking
the buckets directly. This prevents us from easily changing the
internals of rhashtable.

This patch adds the helpers rhashtable_walk_init/exit/start/next/stop
which will replace these custom walkers.

They are meant to be usable for both procfs seq_file walks as well
as walking by a netlink dump. The iterator structure should fit
inside a netlink dump cb structure, with at least one element to
spare.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
/linux/lib/
H A Drhashtable.cdiff f2dba9c6ff0d9a515b4c3f1b037cd65c8b2a868c Tue Feb 03 21:33:23 CET 2015 Herbert Xu <herbert@gondor.apana.org.au> rhashtable: Introduce rhashtable_walk_*

Some existing rhashtable users get too intimate with it by walking
the buckets directly. This prevents us from easily changing the
internals of rhashtable.

This patch adds the helpers rhashtable_walk_init/exit/start/next/stop
which will replace these custom walkers.

They are meant to be usable for both procfs seq_file walks as well
as walking by a netlink dump. The iterator structure should fit
inside a netlink dump cb structure, with at least one element to
spare.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>