rhashtable.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | rhashtable.c (9dbbc3b9d09d6deba9f3b9e1d5b355032ed46a75) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Resizable, Scalable, Concurrent Hash Table 4 * 5 * Copyright (c) 2015 Herbert Xu <herbert@gondor.apana.org.au> 6 * Copyright (c) 2014-2015 Thomas Graf <tgraf@suug.ch> 7 * Copyright (c) 2008-2014 Patrick McHardy <kaber@trash.net> 8 * --- 689 unchanged lines hidden (view full) --- 698 * @iter: Hash table iterator 699 * 700 * Start a hash table walk at the current iterator position. Note that we take 701 * the RCU lock in all cases including when we return an error. So you must 702 * always call rhashtable_walk_stop to clean up. 703 * 704 * Returns zero if successful. 705 * | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Resizable, Scalable, Concurrent Hash Table 4 * 5 * Copyright (c) 2015 Herbert Xu <herbert@gondor.apana.org.au> 6 * Copyright (c) 2014-2015 Thomas Graf <tgraf@suug.ch> 7 * Copyright (c) 2008-2014 Patrick McHardy <kaber@trash.net> 8 * --- 689 unchanged lines hidden (view full) --- 698 * @iter: Hash table iterator 699 * 700 * Start a hash table walk at the current iterator position. Note that we take 701 * the RCU lock in all cases including when we return an error. So you must 702 * always call rhashtable_walk_stop to clean up. 703 * 704 * Returns zero if successful. 705 * |
706 * Returns -EAGAIN if resize event occured. Note that the iterator | 706 * Returns -EAGAIN if resize event occurred. Note that the iterator |
707 * will rewind back to the beginning and you may use it immediately 708 * by calling rhashtable_walk_next. 709 * 710 * rhashtable_walk_start is defined as an inline variant that returns 711 * void. This is preferred in cases where the caller would ignore 712 * resize events and always continue. 713 */ 714int rhashtable_walk_start_check(struct rhashtable_iter *iter) --- 527 unchanged lines hidden --- | 707 * will rewind back to the beginning and you may use it immediately 708 * by calling rhashtable_walk_next. 709 * 710 * rhashtable_walk_start is defined as an inline variant that returns 711 * void. This is preferred in cases where the caller would ignore 712 * resize events and always continue. 713 */ 714int rhashtable_walk_start_check(struct rhashtable_iter *iter) --- 527 unchanged lines hidden --- |