Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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.