Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2014 15:07:30 +0800 (CST)
From:      btw@mail.ustc.edu.cn
To:        freebsd-hackers@freebsd.org
Subject:   What's the difference between kmem_arena and kernel_arena?
Message-ID:  <1473289.768021411196850376.JavaMail.coremail@mailweb>

next in thread | raw e-mail | index | archive | help
Hi All,

There are two similar variables declared in vm/vm_kern.h, they are kernel_arena
and kmem_arena. Both of them are used in kmem_malloc():

        rv = kmem_back((vmem == kmem_arena) ? kmem_object : kernel_object,

I'm wondering what's the difference between them. Why both of them are needed?
I have done a lot of searching, but I still can not find an answer.

Thanks in advance!

- twb



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1473289.768021411196850376.JavaMail.coremail>