| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
When `Ref` was first introduced, we still had `alloc`'s `Arc` being used
in the codebase, so we chose a different name. Now that `Arc` is gone,
we can reclaim the name, which is desirable because it is consistent
with userspace.
This is a pure refactor with no functional changes intended.
Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unify `Guard` and `GuardMut` into a single type parametrised by a
marker. The new guard implementation is the same as the existing `Guard`
except that if the marker is `WriteLock`, it also implements `DerefMut`
(which was only implemented by `GuardMut` previously).
This is in preparation for adding abstractions for read/write locks,
which means that a single lock primitive needs to implement the `Lock`
primitive in both shared and mutable modes, which is enabled by this
change as well.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
| |
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This is in preparation for the introduction of `Guard`, which won't
implement `DerefMut`. It will be used in sequence locks where the
protected data cannot be directly modified because it can be accessed
concurrently by readers.
This is a pure refactor with no functional changes intended.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
|
|
| |
This allows `Arc` to be removed from the `kernel` and `alloc` crates.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
| |
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
|
|
|
|
|
|
|
| |
These were originally disabled for drivers, enabling them caused
warnings to be issued for binder. This commit fixes them.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
| |
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
|
|
|
|
|
|
|
| |
This prevents initialising synchronisation primitives when there are
multiple references to them.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
| |
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
|
|
|
|
|
|
|
| |
We'll need these flags to determine if a node allows file descriptors to
be transferred through them.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
|
|
|
| |
This is just a rename followed by `rustfmt`, no functional change is
intended.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
|
|
|
|
|
|
|
|
| |
It abstracts buffers involved in IO. This is in preparation for allowing
drivers to implement `write_iter` and `read_iter`.
No behaviour change is intended, this is a pure refactor.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
|
| |
|
|
|