> Does the __get_free_pages() function eventually call the kmalloc() function? > Or does the kmalloc() function eventually call the __get_free_pages() > function? Or are these two totally separate functions for different > purposes? kmalloc() will eventually call get_free_pages(), but you really shouldn't ever need to know that, unless you're fiddling with the implementations of either function.
Note that, even though kmalloc() uses get_free_pages() to allocate memory, it performs various other bookkeeping tasks, and so the two types of memory allocations really can't be mixed. > Which of these functions can be called by user process for the purpose of > allocating memory for that user process? Neither; use malloc() in userspace. (Or the new operator if you're using C++) Steven Smith, [EMAIL PROTECTED]
msg02708/pgp00000.pgp
Description: PGP signature
