Lines Matching refs:prev_key
693 /* Scan one element forward from prev_key's position in @tbl.
694 * Returns first rhash_head whose bucket > prev_key's bucket, or the
695 * element immediately after prev_key inside prev_key's bucket.
696 * Returns the first element if prev_key is NULL, NULL when @tbl is
697 * exhausted, or ERR_PTR(-ENOENT) if prev_key is not found in @tbl.
701 const void *prev_key)
703 struct rhashtable_compare_arg arg = { .ht = ht, .key = prev_key };
709 if (prev_key) {
710 b = rht_key_hashfn(ht, tbl, prev_key, params);
738 * @prev_key: pointer to previous key, or NULL for the first element
749 * Pass @prev_key == NULL to obtain the first element. To iterate, set
750 * @prev_key to the key of the previously returned element on each call,
766 * - If prev_key was concurrently deleted and is not present in any
770 * or ERR_PTR(-ENOENT) if prev_key is not found, or
773 void *rhashtable_next_key(struct rhashtable *ht, const void *prev_key)
783 he = __rhashtable_next_in_table(ht, tbl, prev_key);
787 prev_key = NULL;