You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please take this issue only if you are new to the kernel development process and you would like to use it as a test to submit your first patch to the kernel.
Note that there currently are no instances of ARefs getting manually forgotten. I created this issue, while reviewing [PATCH 4/7] rust: file: add FileDescriptorReservation. So depending on which thing makes it first into upstream you will or won't have to adjust other stuff.
Yes @Redhawk18, I've the patch ready here, which I'm planning to submit in couple of days once I complete testing of changes in rust/kernel/net/filter.rs and rust/kernel/file.rs files.
@Kartik1397 We are thinking of using NonNull as the return type -- Alice sent an alternative patch (unaware of yours), and I think ideally we would get a combined approach with the best of both, i.e. an example like yours but returning NonNull like she did. Would you be OK to be the primary author of that approach? (i.e. with NonNull)?
Activity
Kartik1397 commentedon Dec 3, 2023
I'll take this one.
BennoLossin commentedon Dec 3, 2023
Sure!
Note that there currently are no instances of
ARefs getting manually forgotten. I created this issue, while reviewing [PATCH 4/7] rust: file: addFileDescriptorReservation. So depending on which thing makes it first into upstream you will or won't have to adjust other stuff.Redhawk18 commentedon Jan 14, 2024
Are you currently working on it?
Kartik1397 commentedon Jan 14, 2024
Yes @Redhawk18, I've the patch ready here, which I'm planning to submit in couple of days once I complete testing of changes in
rust/kernel/net/filter.rsandrust/kernel/file.rsfiles.Kartik1397 commentedon Jan 15, 2024
Hi @y86-dev, I've drafted a PR for initial review. Please take a look when you can.
I'll send the patch to the mailing list after that.
rust: kernel: types: Add `ARef::into_raw`
rust: kernel: types: Add `ARef::into_raw`
vincenzopalazzo commentedon Mar 29, 2024
The PR is sent upstream through ML https://lore.kernel.org/all/20240324231236.145086-1-vincenzopalazzodev@gmail.com/
rust: kernel: types: Add `ARef::into_raw`
rust: kernel: types: Add `ARef::into_raw`
rust: kernel: types: Add `ARef::into_raw`
ojeda commentedon Aug 20, 2024
@Kartik1397 We are thinking of using
NonNullas the return type -- Alice sent an alternative patch (unaware of yours), and I think ideally we would get a combined approach with the best of both, i.e. an example like yours but returningNonNulllike she did. Would you be OK to be the primary author of that approach? (i.e. withNonNull)?https://lore.kernel.org/rust-for-linux/20240801-aref-into-raw-v1-1-33401e2fbac8@google.com/
https://lore.kernel.org/rust-for-linux/20240324231236.145086-1-vincenzopalazzodev@gmail.com/
Alice is happy sending the patch (with you as the primary author), but if you want to send it yourself, that is also fine.
Thanks!
ojeda commentedon Aug 20, 2024
Something like (from Alice):
ojeda commentedon Aug 20, 2024
By the way, I think @vincenzopalazzo did not change the code when he sent @Kartik1397 patch to the mailing list. But if Vincenzo contributed to the patch and should have a
Co-developed-by, then please let us know (https://lore.kernel.org/rust-for-linux/CANiq72==OBG+KVJuzW0S5aYowAZ4oq91pk=phRgtedUrGYeHAg@mail.gmail.com/). Thanks!vincenzopalazzo commentedon Aug 20, 2024
@ojeda you are right, I did not change the code I just push it to the finish line through the ML :)
Kartik1397 commentedon Aug 21, 2024
@ojeda I'm OK with using
NonNullas the return type.I'm also fine with Alice sending the patch with me as the primary author.
Thanks considering my patch!
rust: add `ARef::into_raw`
rust: add `ARef::into_raw`
rust: add `ARef::into_raw`
rust: add `ARef::into_raw`
rust: add `ARef::into_raw`
rust: add `ARef::into_raw`
rust: types: add `ARef::into_raw`
ojeda commentedon Aug 25, 2024
Applied to
rust-next-- thanks everyone!