rust: add `kernel` crate's `sync` module
authorWedson Almeida Filho <wedsonaf@google.com>
Fri, 11 Feb 2022 19:23:34 +0000 (20:23 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 11 Feb 2022 19:40:57 +0000 (20:40 +0100)
commita289bace34c98d622b8adceb4c041f320eec16e7
treeeb4768fb9a2a4f286769b592df20ddbf0d476306
parent2bbdaa842fa5c5102505fdcb7e590d73ab0c9133
rust: add `kernel` crate's `sync` module

This module contains the kernel APIs related to synchronisation that
have been ported or wrapped for usage by Rust code in the kernel and
is shared by all of them.

Co-developed-by: Alex Gaynor <alex.gaynor@gmail.com>
Signed-off-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-developed-by: Geoffrey Thomas <geofft@ldpreload.com>
Signed-off-by: Geoffrey Thomas <geofft@ldpreload.com>
Co-developed-by: Sven Van Asbroeck <thesven73@gmail.com>
Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
Co-developed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Gary Guo <gary@garyguo.net>
Co-developed-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Co-developed-by: Hsiang-Cheng Yang <rick68@gmail.com>
Signed-off-by: Hsiang-Cheng Yang <rick68@gmail.com>
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
Co-developed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
include/linux/spinlock.h
rust/kernel/sync/arc.rs [new file with mode: 0644]
rust/kernel/sync/condvar.rs [new file with mode: 0644]
rust/kernel/sync/guard.rs [new file with mode: 0644]
rust/kernel/sync/locked_by.rs [new file with mode: 0644]
rust/kernel/sync/mod.rs [new file with mode: 0644]
rust/kernel/sync/mutex.rs [new file with mode: 0644]
rust/kernel/sync/revocable_mutex.rs [new file with mode: 0644]
rust/kernel/sync/rwsem.rs [new file with mode: 0644]
rust/kernel/sync/seqlock.rs [new file with mode: 0644]
rust/kernel/sync/spinlock.rs [new file with mode: 0644]