DragonFly BSD
DragonFly kernel List (threaded) for 2003-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

anonymous storage and execve()

From: "David P. Reese, Jr." <daver@xxxxxxxxxxxx>
Date: Fri, 7 Nov 2003 03:45:20 -0800

I've spent the week trying to understand the source for execve() and the
image activators.  I think I'm ready to split execve().  Before I do,
I have some questions about how I should allocate memory for the separate

The string and image_header buffer is going to be split into a couple of
pieces.  For the strings, I need to create at least two buffers.  One
will be for the arg and env strings at least ARG_MAX in length.  Another
will be for the path name of the executable which should be PATH_MAX in

In what cases should I be using the kmem allocator versus the slab

   David P. Reese, Jr.                                     daver@xxxxxxxxxxxx

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]