From: Fabio Aiuto <fabioaiuto83@gmail.com>
To: rust-for-linux@vger.kernel.org
Subject: Question on Box<T> smart pointer
Date: Tue, 27 Apr 2021 17:20:16 +0200 [thread overview]
Message-ID: <20210427152015.GA4653@agape.jhs> (raw)
Hi all,
I have a question. There's one thing I miss.
If Box<T> smart pointer allows allocating space on the heap,
how is this behaviour overridden in linux kernel Rust?
I mean, in c we have all API's to allocate heap space,
but using "pure" Box<T> in kernel space what kind of
allocation provides?
If this question is stupid I apologize in advance,
thank you,
fabio
next reply other threads:[~2021-04-27 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-27 15:20 Fabio Aiuto [this message]
2021-04-27 15:22 ` Question on Box<T> smart pointer Alex Gaynor
2021-04-27 15:33 ` Fabio Aiuto
2021-04-27 15:35 ` Alex Gaynor
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=20210427152015.GA4653@agape.jhs \
--to=fabioaiuto83@gmail.com \
--cc=rust-for-linux@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).