April 2012
Intermediate to advanced
352 pages
8h
English

In the previous chapter we used malloc and free for the allocation and release of memory. The FreeBSD kernel, however, contains a richer set of memory allocation primitives. In this chapter we’ll look at the stock kernel memory management routines. This includes describing malloc and free in more detail and introducing the malloc_type structure. We’ll finish this chapter by describing the contiguous physical memory management routines.
The FreeBSD kernel provides four functions for non-pageable memory allocation and release: malloc, free, realloc, and reallocf. These functions can handle requests ...