rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on Box<T> smart pointer
@ 2021-04-27 15:20 Fabio Aiuto
  2021-04-27 15:22 ` Alex Gaynor
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Aiuto @ 2021-04-27 15:20 UTC (permalink / raw)
  To: rust-for-linux

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-27 15:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 15:20 Question on Box<T> smart pointer Fabio Aiuto
2021-04-27 15:22 ` Alex Gaynor
2021-04-27 15:33   ` Fabio Aiuto
2021-04-27 15:35     ` Alex Gaynor

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).