diff options
author | Christian Brauner <[email protected]> | 2024-09-05 09:56:45 +0200 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2024-09-10 11:42:57 +0200 |
commit | 879fb3c274c12cb0892718e1e54f85fc406e3c7b (patch) | |
tree | 5488c5884f54eac47d52266e7f43d96f076cb26e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 53d3d210864e532ee5d8ae48f66168c12dd8f530 (diff) |
slab: add struct kmem_cache_args
Currently we have multiple kmem_cache_create*() variants that take up to
seven separate parameters with one of the functions having to grow an
eigth parameter in the future to handle both usercopy and a custom
freelist pointer.
Add a struct kmem_cache_args structure and move less common parameters
into it. Core parameters such as name, object size, and flags continue
to be passed separately.
Add a new function __kmem_cache_create_args() that takes a struct
kmem_cache_args pointer and port do_kmem_cache_create_usercopy() over to
it.
In follow-up patches we will port the other kmem_cache_create*()
variants over to it as well.
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Reviewed-by: Mike Rapoport (Microsoft) <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions