[okl4-developer] purpose of vmalloc

Christophe Augier christophe.augier at gmail.com
Wed May 30 00:14:21 EST 2007


(sorry i replied directly and not to all)

thanks, that may be helpful.  At the moment I added the following  in
projects/iguana/SConstruct

# adding a second linux

wombat2 = ig_env.Package("linux/kernel2")
# vmalloc area.  Must be within 23-bits of wombat.
vmalloc2 = linux_env.IguanaMemSection(
    env_name = iguana_object_env['wombat2_vmalloc'],
    owner = 'iguana',
    base = linux_env.LAYOUT_MEMSECTION,
    size = 4 * 1024 * 1024,
    flags = 0x10 | 0x02, # MEM_USER | MEM_FIXED
    attr = 0 # DEFAULT_MEMORY
    )
apps.append(wombat2)

but i must copy and modify a bit the kernel tree (linux/kernel2).

- Christophe

On 5/29/07, Carl van Schaik <carl at ok-labs.com> wrote:
> Hi Christophe,
>
> Its fairly easy to mod the build system to run two or more instances of
> Linux (if you know the build system :) ).
> I don't have patches for the public release tree, I'll have to see if I
> can get some to you.
>
> regards,
> Carl
>
> Christophe Augier wrote:
> > ok, so if i want to run two instances of linux, i need two vmalloc
> > memsections?
> >
> > thanks,
> >
> > - Christophe
> >
> > On 5/26/07, Carl van Schaik <carl at ok-labs.com> wrote:
> >> Hi  Christophe,
> >>
> >> The vmalloc memsection is a user-mapped memsection, meaning it is a
> >> range of virtual memory where the application itself can chose which
> >> pages to map there. The application can only use pages it already owns
> >> in other memsections.
> >>
> >> We use this for providing Linux's virtual memory area. This is the area
> >> where vmalloc allocates memory as well as where some IO memory is
> >> mapped. Note, this virtual memory is inside the Linux kernel address
> >> space and not the Linux user processes.
> >>
> >> regards,
> >> Carl
> >>
> >> Christophe Augier wrote:
> >> > Hi,
> >> >
> >> > I was wondering what is the purpose of the vmalloc memsection in
> >> > wombat? I couldn't find any reference to it later in the code.
> >> >
> >> > best regards,
> >> >
> >> > - Christophe
> >> >
> >> > _______________________________________________
> >> > Developer mailing list
> >> > Developer at okl4.org
> >> > https://lists.okl4.org/mailman/listinfo/developer
> >> >
> >> >
> >>
> >>
> >
>
>



More information about the Developer mailing list