diff options
| author | Björn Roy Baron <[email protected]> | 2023-07-30 01:29:04 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-08-07 09:33:34 +0000 |
| commit | 0beaf546b4f198dd767b5a01a73f24db269ff6e2 (patch) | |
| tree | 3e2140a0f3fbe42b45a981150736c8ea8b578508 /scripts/generate_rust_analyzer.py | |
| parent | rust: allocator: Use krealloc_aligned() in KernelAllocator::alloc (diff) | |
| download | kernel-0beaf546b4f198dd767b5a01a73f24db269ff6e2.tar.gz kernel-0beaf546b4f198dd767b5a01a73f24db269ff6e2.zip | |
rust: alloc: Add realloc and alloc_zeroed to the GlobalAlloc impl
While there are default impls for these methods, using the respective C
api's is faster. Currently neither the existing nor these new
GlobalAlloc method implementations are actually called. Instead the
__rust_* function defined below the GlobalAlloc impl are used. With
rustc 1.71 these functions will be gone and all allocation calls will go
through the GlobalAlloc implementation.
Link: https://github.com/Rust-for-Linux/linux/issues/68
Signed-off-by: Björn Roy Baron <[email protected]>
[boqun: add size adjustment for alignment requirement]
Signed-off-by: Boqun Feng <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
