From: Greg KH <gregkh@linuxfoundation.org>
To: Antonio Hickey <antoniohickey99@gmail.com>
Cc: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com,
boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com,
benno.lossin@proton.me, a.hindborg@samsung.com,
aliceryhl@google.com, rust-for-linux@vger.kernel.org
Subject: Re: [PATCH] rust: task: add `as_raw()` to `Task`
Date: Tue, 16 Jan 2024 08:20:32 +0100 [thread overview]
Message-ID: <2024011656-acetone-canine-fed8@gregkh> (raw)
In-Reply-To: <20240116022823.64058-1-antoniohickey99@gmail.com>
On Mon, Jan 15, 2024 at 09:28:22PM -0500, Antonio Hickey wrote:
> Added new function `Task::as_raw()` which returns the raw pointer
> for the underlying task struct. I also refactored `Task` to instead
> use the newly created function instead of `self.0.get()` as I feel
> like `self.as_raw()` is more intuitive.
Nit, this says _what_ you are doing, but not _why_ you are doing it.
Why do you need "as_raw"? Who is going to use it? What is it good for?
thanks,
greg k-h
next prev parent reply other threads:[~2024-01-16 7:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 2:28 [PATCH] rust: task: add `as_raw()` to `Task` Antonio Hickey
2024-01-16 2:28 ` [PATCH] rust: task: use safe `current!` macro Antonio Hickey
2024-01-16 8:57 ` Alice Ryhl
2024-01-16 7:20 ` Greg KH [this message]
2024-01-16 7:29 ` [PATCH] rust: task: add `as_raw()` to `Task` Wedson Almeida Filho
2024-01-16 8:53 ` Alice Ryhl
2024-01-16 18:24 ` Boqun Feng
2024-01-16 19:03 ` Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2024011656-acetone-canine-fed8@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=a.hindborg@samsung.com \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=antoniohickey99@gmail.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=gary@garyguo.net \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=wedsonaf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox