diff options
| author | 2022-03-16 13:24:07 +0100 | |
|---|---|---|
| committer | 2022-03-17 20:17:18 -0700 | |
| commit | a0019cd7d41a191253859349535d76ee28ab7d96 (patch) | |
| tree | 7bb57e20da6fb84f931f6f62396148da53539136 /include/linux/types.h | |
| parent | Merge branch 'fprobe: Introduce fprobe function entry/exit probe' (diff) | |
| download | linux-dev-a0019cd7d41a191253859349535d76ee28ab7d96.tar.xz linux-dev-a0019cd7d41a191253859349535d76ee28ab7d96.zip | |
lib/sort: Add priv pointer to swap function
Adding support to have priv pointer in swap callback function.
Following the initial change on cmp callback functions [1]
and adding SWAP_WRAPPER macro to identify sort call of sort_r.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/bpf/20220316122419.933957-2-jolsa@kernel.org
[1] 4333fb96ca10 ("media: lib/sort.c: implement sort() variant taking context argument")
Diffstat (limited to 'include/linux/types.h')
| -rw-r--r-- | include/linux/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index ac825ad90e44..ea8cf60a8a79 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -226,6 +226,7 @@ struct callback_head { typedef void (*rcu_callback_t)(struct rcu_head *head); typedef void (*call_rcu_func_t)(struct rcu_head *head, rcu_callback_t func); +typedef void (*swap_r_func_t)(void *a, void *b, int size, const void *priv); typedef void (*swap_func_t)(void *a, void *b, int size); typedef int (*cmp_r_func_t)(const void *a, const void *b, const void *priv); |
