[haiku-gsoc] Re: Implementation Queries

  • From: Vivek Roy <vivekroyandroid@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Wed, 28 Jun 2017 02:42:50 +0530

Hamish,

Linux's kobject used a kzalloc and if I understand everything correctly, it
doesn't have to be physically contiguous memory, right?

Thanks

On Fri, Jun 23, 2017 at 10:49 AM, Vivek Roy <vivekroyandroid@xxxxxxxxx>
wrote:

Implementing linux/slab.h
<http://xref.plausible.coop/source/xref/freebsd-current/sys/compat/linuxkpi/common/include/linux/slab.h>

I am using src/system/kernel/slab
<http://xref.plausible.coop/source/xref/haiku/src/system/kernel/slab/>
for reference.

Hamish told me that Linux's kmalloc calls expect continuous memory
address. But not every call to kmalloc has to return a continuous memory.
So I need to figure out which calls actually require a continuous memory
and which do not. Though I am not very sure how I will go about doing that
(except for reading the code and trying to figure out what it does), I will
do that.

Anything else I need to understand/keep in mind before moving ahead from
here?

Thanks

-----
Vivek

Other related posts: